From koffice-devel Fri Apr 14 11:53:38 2006 From: Paul Sprakes Date: Fri, 14 Apr 2006 11:53:38 +0000 To: koffice-devel Subject: Re: [Kmymoney2-developer] Charts with KOffice 1.5 Message-Id: <200604141253.38922.paul () sprakes ! co ! uk> X-MARC-Message: https://marc.info/?l=koffice-devel&m=114503320118399 Bingo! KDCHART_PROPSET_NORMAL_DATA in KDChartParams used to be a static const but is now a #define. I changed KDChartPropertySet propSetFutureValue("future value", KDChartParams::KDCHART_PROPSET_NORMAL_DATA); To KDChartPropertySet propSetFutureValue("future value", KDCHART_PROPSET_NORMAL_DATA); Another problem was an error on line 74 of kreportchartview.cpp: m_data.cell(row, col).setPropertySet(id); Strangely the cell( uint _row, uint _col ) function in the new KDChart had been commented out (KDChartVectorTable.h). Removing the comments and reinstalling KDChart fixed this. (I'm sure it's commented out for a reason but there is no explanation). So now it compiles and installs fine and everything seems to be running OK. Thanks, Paul. On Friday 14 April 2006 11:51, Paul Sprakes wrote: > I don't know much about c++ but it seems to be a problem with KOffice. As > far as I can tell KDChart was updated to the latest version in January. > > I have got past the config error by editing the include path in > kdchart_export.h see: > > http://lists.kde.org/?l=kde-commits&m=114347919120545&w=2 > > (Note that the above change went in koffice trunk but not 1.5 branch) > > However I then encountered errors while compiling regarding a non existant > KDXMLTools.h which i tracked to the following commit to the old KDChart > code: > > http://lists.kde.org/?l=kde-commits&m=108024446323273&w=2 > > I made the changes described in the above commit to my local koffice 1.5 > source and re-installed it. This got me further in the KMymoney compilation > but have now encountered this: > > /usr/qt/3/bin/moc ./knewaccountdlg.h -o knewaccountdlg.moc > if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/kde-head1/include > -I/usr/qt/3/include -I. -I../.. -I. -DQT_THREAD_SUPPORT -D_REENTRANT > -DKMM_DEBUG=0 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 > -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W > -Wpointer-arith -O2 -march=athlon-xp -O2 -pipe -Wformat-security > -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions > -fno-check-new -fno-common -fexceptions -MT knewaccountdlg.o -MD -MP -MF > ".deps/knewaccountdlg.Tpo" \ > -c -o knewaccountdlg.o `test -f 'knewaccountdlg.cpp' || echo > './'`knewaccountdlg.cpp; \ > then mv -f ".deps/knewaccountdlg.Tpo" ".deps/knewaccountdlg.Po"; \ > else rm -f ".deps/knewaccountdlg.Tpo"; exit 1; \ > fi > knewaccountdlg.cpp: In constructor `KNewAccountDlg::KNewAccountDlg(const > MyMoneyAccount&, bool, bool, QWidget*, const char*, const char*)': > knewaccountdlg.cpp:420: error: expected unqualified-id before numeric > constant > > > The offending line is: > > KDChartPropertySet propSetFutureValue("future value", > KDChartParams::KDCHART_PROPSET_NORMAL_DATA); > > Unfortunately I have no idea what to do at this point :) > > Anyway, I hope this is helpful to someone. > > Thanks, Paul. > > On Friday 14 April 2006 04:47, ace jones wrote: > > Hi, Paul. This is a new issue, thanks for reporting. Please feel free > > to post your config.log. > > > > > > > > On Thu, 2006-04-13 at 02:48, Paul Sprakes wrote: > > > Just upgraded to KOffice 1.5 and can no longer run KMymoney nor can I > > > compile it with charts enabled (up to date anon cvs). Is this something > > > already known about and if not would you like me to post relevant > > > config.log details? > > > > > > Thanks, > > > > > > Paul. > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by xPML, a groundbreaking scripting > > > language that extends applications into web and mobile media. Attend > > > the live webcast and join the prime developer group breaking into this > > > new coding territory! > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=12164 > > >2 _______________________________________________ > > > KMyMoney2-developer mailing list > > > KMyMoney2-developer@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live > webcast and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > KMyMoney2-developer mailing list > KMyMoney2-developer@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel