[Kmymoney-devel] kmymoney 1.0.5 building with clang fails

mk-lists at email.de mk-lists at email.de
Wed Nov 28 08:01:11 UTC 2012


Hi devs,

I know that kmymoney 1.0.5 is not supported anymore…

Still, in case someone of you has an idea how to fix this problem [1] when trying to build it on Mountain Lion using clang: 
---
:info:build /bin/sh ../../libtool --silent --tag=CXX   --mode=compile /usr/bin/clang++ -DHAVE_CONFIG_H -I. -I../.. -I/opt/local/include -I/opt/local/lib/qt3/include    -I../.. -I.  -DQT_THREAD_SUPPORT -I/opt/local/include -L/opt/local/lib -DKMM_DEBUG=0  -Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 -pipe -O2 -arch x86_64 -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_MAC -no-cpp-precomp -fexceptions  -MT viewinterface.lo -MD -MP -MF .deps/viewinterface.Tpo -c -o viewinterface.lo viewinterface.cpp
1812	:info:build clang: warning: argument unused during compilation: '-L/opt/local/lib'
1813	:info:build clang: warning: argument unused during compilation: '-fno-check-new'
1814	:info:build In file included from viewinterface.cpp:27:
1815	:info:build In file included from ./viewinterface.h:28:
1816	:info:build In file included from /opt/local/lib/qt3/include/qobject.h:45:
1817	:info:build In file included from /opt/local/lib/qt3/include/qevent.h:45:
1818	:info:build In file included from /opt/local/lib/qt3/include/qmime.h:43:
1819	:info:build In file included from /opt/local/lib/qt3/include/qmap.h:45:
1820	:info:build /opt/local/lib/qt3/include/qpair.h:66:8: error: field has incomplete type 'MyMoneyTransaction'
1821	:info:build     T1 first;
1822	:info:build        ^
1823	:info:build ./viewinterface.moc:166:31: note: in instantiation of template class 'QPair<MyMoneyTransaction, MyMoneySplit>' requested here
1824	:info:build     static_QUType_ptr.set(o+5,&t4);
1825	:info:build                               ^
1826	:info:build ../../kmymoney/mymoneyaccount.h:43:7: note: forward declaration of 'MyMoneyTransaction'
1827	:info:build class MyMoneyTransaction;
1828	:info:build       ^
1829	:info:build In file included from viewinterface.cpp:27:
1830	:info:build In file included from ./viewinterface.h:28:
1831	:info:build In file included from /opt/local/lib/qt3/include/qobject.h:45:
1832	:info:build In file included from /opt/local/lib/qt3/include/qevent.h:45:
1833	:info:build In file included from /opt/local/lib/qt3/include/qmime.h:43:
1834	:info:build In file included from /opt/local/lib/qt3/include/qmap.h:45:
1835	:info:build /opt/local/lib/qt3/include/qpair.h:67:8: error: field has incomplete type 'MyMoneySplit'
1836	:info:build     T2 second;
1837	:info:build        ^
1838	:info:build ../../kmymoney/mymoneyaccount.h:45:7: note: forward declaration of 'MyMoneySplit'
1839	:info:build class MyMoneySplit;
1840	:info:build       ^
1841	:info:build 2 errors generated.
1842	:info:build make[4]: *** [viewinterface.lo] Error 1
---
I'd be very happy! :)

Thanks,
Marko

[1] https://trac.macports.org/ticket/37144


More information about the KMyMoney-devel mailing list