[Kmymoney-devel] Charts

Thomas Baumgart thb at net-bembel.de
Sun Sep 20 10:23:55 CEST 2009


Hi,

on Sunday 20 September 2009 Alvaro Soliverez wrote:


> On Sat, Sep 19, 2009 at 2:42 PM, Alvaro Soliverez 
<asoliverez at gmail.com>wrote:
> > On Sat, Sep 19, 2009 at 2:14 PM, Thomas Baumgart <thb at net-bembel.de>wrote:
> >> Hi,
> >>
> >> on Saturday 19 September 2009 Cristian Oneţ wrote:
> >> > Have you tried changing the INCLUDE_DIRECTORIES(
> >> > ${KMyMoney_SOURCE_DIR}/libkdchart) line in reports/CMakeLists.txt to
> >>
> >> point
> >>
> >> >  to the correct path where the headers are located?
> >>
> >> That's what we did. Now in SVN.
> >>
> >> --
> >
> > Thanks, Thomas. That was fast!
> > Now I will get to work fixing all the compilation due to the new version
> > of kdchart. With any luck, we will have the charts back soon.
> 
> I'm still having some problems with the subclassing. Funny thing is that it
> will compile pivottable ok, but then it gives an error like it cannot find
> the KDChart classes in kreportchartview.h.
> 
> Here is a diff with the changes I made so far. I commented a lot of code
> that is not crucial at the moment.

Applying your patch and adding another include path to the views CMakeList.txt 
file (already in SVN) I now get as far as:

thb at dollo:~/devel/kmymoney4/build> make                                          
[  0%] Built target kgpgfile_automoc                                             
[  0%] Built target kgpgfile                                                     
[  0%] Built target kmm_kdchart_automoc                                          
[ 15%] Built target kmm_kdchart                                                  
[ 15%] Built target kmymoney2_automoc                                            
[ 15%] Built target kmm_storage_automoc                                          
[ 18%] Built target kmm_storage                                                  
[ 18%] Built target kmm_mymoney_automoc                                          
[ 23%] Built target kmm_mymoney                                                  
[ 23%] Built target interfaces_automoc                                           
[ 24%] Built target interfaces                                                   
[ 24%] Built target kmm_plugin_automoc                                           
[ 25%] Built target kmm_plugin                                                   
[ 25%] Built target reports_automoc                                              
[ 27%] Built target reports                                                      
[ 27%] Built target kmymoney_base_automoc                                        
[ 34%] Built target kmymoney_base                                                
[ 34%] Built target widgets_automoc                                              
[ 45%] Built target widgets                                                      
[ 45%] Built target settings_automoc                                             
[ 50%] Built target settings                                                     
[ 50%] Built target dialogs_automoc                                              
[ 52%] Built target generate_widgets_ui_srcs
[ 70%] Built target dialogs
[ 70%] Built target views_automoc
[ 70%] Built target generate_base_ui_srcs
[ 70%] Built target generate_dialogs_ui_srcs
[ 75%] Built target views
[ 75%] Built target converter_automoc
[ 76%] Built target converter
[ 76%] Built target wizardpages_automoc
[ 77%] Built target wizardpages
[ 77%] Built target newuserwizard_automoc
[ 78%] Built target generate_wizardpages_ui_srcs
[ 80%] Built target newuserwizard
[ 80%] Built target newaccountwizard_automoc
[ 84%] Built target newaccountwizard
[ 84%] Built target kmymoney_common_automoc
[ 86%] Built target kmymoney_common
Linking CXX executable kmymoney2
../lib/libreports.a(pivottable.o): In function 
`reports::PivotTable::drawChartRowSet(int, bool, bool, 
reports::KReportChartView&, reports::PivotGridRowSet const&, 
reports::ERowType) const':
/home/thb/devel/kmymoney4/kmymoney2/reports/pivottable.cpp:2254: undefined 
reference to `KDChart::Widget::setDataCell(int, int, double)'
/home/thb/devel/kmymoney4/kmymoney2/reports/pivottable.cpp:2246: undefined 
reference to `KDChart::Widget::setDataCell(int, int, double)'
/home/thb/devel/kmymoney4/kmymoney2/reports/pivottable.cpp:2244: undefined 
reference to `KDChart::Widget::setDataCell(int, int, double)'
/home/thb/devel/kmymoney4/kmymoney2/reports/pivottable.cpp:2256: undefined 
reference to `KDChart::Widget::setDataCell(int, int, double)'
../lib/libreports.a(pivottable.o): In function `.L2172':
/home/thb/devel/kmymoney4/kmymoney2/reports/pivottable.cpp:1997: undefined 
reference to `KDChart::Widget::setType(KDChart::Widget::ChartType, 
KDChart::Widget::SubType)'
../lib/libreports.a(pivottable.o): In function `.L2176':
/home/thb/devel/kmymoney4/kmymoney2/reports/pivottable.cpp:2005: undefined 
reference to `KDChart::Widget::setType(KDChart::Widget::ChartType, 
KDChart::Widget::SubType)'
../lib/libreports.a(pivottable.o): In function `.L2175':
/home/thb/devel/kmymoney4/kmymoney2/reports/pivottable.cpp:2016: undefined 
reference to `KDChart::Widget::setType(KDChart::Widget::ChartType, 
KDChart::Widget::SubType)'
../lib/libreports.a(pivottable.o): In function `.L2173':
/home/thb/devel/kmymoney4/kmymoney2/reports/pivottable.cpp:2001: undefined 
reference to `KDChart::Widget::setType(KDChart::Widget::ChartType, 
KDChart::Widget::SubType)'
../lib/libreports.a(pivottable.o): In function `.L2174':
/home/thb/devel/kmymoney4/kmymoney2/reports/pivottable.cpp:2009: undefined 
reference to `KDChart::Widget::setType(KDChart::Widget::ChartType, 
KDChart::Widget::SubType)'
collect2: ld returned 1 exit status
make[2]: *** [kmymoney2/kmymoney2] Error 1
make[1]: *** [kmymoney2/CMakeFiles/kmymoney2.dir/all] Error 2
make: *** [all] Error 2

-- 


Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
Having trouble with Windows? Reboot!
Having trouble with Linux? Be root!
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 224 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kmymoney-devel/attachments/20090920/60f49d9b/attachment.sig 


More information about the KMyMoney-devel mailing list