[Kmymoney-devel] compiling gitHEAD on windows errors
Chris
DeveloperChris at rebel.com.au
Sun Mar 2 00:10:31 UTC 2014
I knew it wouldnt be easy.
I get a couple of errors. both of which confuse me in my lack of
understanding of the way thins are compiled in linux. I mean I have a basic
understanding and can string together simple stuff but also admit I rely on
IDE's to put together the more complicated stuff and cross my fingers it works.
The first issue is a large number of warnings all centred around mymoneymoney.h
q:/kmymoney/kmymoney/mymoney/mymoneymoney.h:308: warning:
'MyMoneyMoney::MyMoneyMoney(const MyMoneyMoney&)' redeclared without
dllimport attribute after being referenced with dll linkage
Again at...
q:/kmymoney/kmymoney/mymoney/mymoneymoney.h:313: warning:
q:/kmymoney/kmymoney/mymoney/mymoneymoney.h:318: warning:
q:/kmymoney/kmymoney/mymoney/mymoneymoney.h:347: warning:
These warnings appear to be a bug in mingw as the other constructors
declared before line #308 don't have the same warnings and I see no
difference from the lines that do cause the warnings.
The real issues are multitudes of the following "undefined reference" errors.
r:\mingw\bin\g++.exe -D_WIN32_WINNT=0x0501 -DWINVER=0x0501
-D_WIN32_IE=0x0501 -DUNICODE -Wnon-virtual-dtor -Wno-long-long -Wundef
-Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security
-fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common
-Woverloaded-virtual -fno-threadsafe-statics -fexceptions -UQT_NO_EXCEPTIONS
-fexceptions -UQT_NO_EXCEPTIONS -fno-common -O2 -g -DNDEBUG -DQT_NO_DEBUG
-mwindows -Wl,--whole-archive CMakeFiles\pivottabletest.dir/objects.a
-Wl,--no-whole-archive -o ..\..\bin\pivottabletest.exe
-Wl,--out-implib,..\..\bin\libpivottabletest.dll.a
-Wl,--major-image-version,0,--minor-image-version,0 -Lr:\lib -LR:\lib
-LR:\build\extragear\kmymoney-4.6.1-20110918\work\mingw4-RelWithDebInfo-gitHEAD\bin
R:\lib\libqtmain.a ..\..\bin\libreports.a ..\..\bin\libsettings.a
..\..\bin\libkmymoney_base.a ..\..\bin\libkmymoney_common.a
..\..\bin\libdialogs.a ..\..\bin\libwidgets.a ..\..\bin\libkmm_kdchart.dll.a
..\..\bin\libkmm_storage.a ..\..\bin\libkmm_config.a r:\\lib\libkdeui.dll.a
r:\\lib\libkdecore.dll.a R:\lib\libQtGui4.a R:\lib\libQtXml4.a
R:\lib\libQtCore4.a R:\lib\libQtTest4.a r:\\lib\libkholidays.dll.a
R:\lib\libgmp.dll.a R:\lib\libalkimia.dll.a ..\..\bin\libkmm_widgets.dll.a
..\..\bin\libkmm_mymoney.dll.a R:\lib\libQtXml4.a r:\\lib\libkdeui.dll.a
R:\lib\libQtGui4.a R:\lib\libQtSvg4.a r:\\lib\libkdecore.dll.a
R:\lib\libQtCore4.a R:\lib\libQtDBus4.a R:\lib\libkdewin.dll.a -luser32
-lshell32 -lws2_32 -lnetapi32 -luserenv ..\..\bin\libkmymoney_base.a
-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid
-lcomdlg32 -ladvapi32
..\..\bin\libkmymoney_base.a(kmymoneyedit.cpp.obj): In function
`_static_initialization_and_destruction_0':
R:/build/extragear/kmymoney-4.6.1-20110918/work/mingw4-RelWithDebInfo-gitHEAD/kmymoney/widgets/kmymoneyedit.moc:55:
undefined reference to `_imp___ZN16QDoubleValidator16staticMetaObjectE'
R:/build/extragear/kmymoney-4.6.1-20110918/work/mingw4-RelWithDebInfo-gitHEAD/kmymoney/widgets/kmymoneyedit.moc:165:
undefined reference to `_imp___ZN5KHBox16staticMetaObjectE'
..\..\bin\libkmymoney_base.a(kmymoneyedit.cpp.obj): In function
`ZN12kMyMoneyEdit11qt_metacastEPKc':
It seems to be linking against the correct libraries so I cant work out why
the references are undefined.
Perhaps I need to rebuild the dependencies?
... time passes ...
I started rebuilding the dependencies. It seems I need to throw away my
entire previous build (erase kderoot) and start again. Sheesh and even then
I am not sure it will fix anything. I cannot find a command to automatically
rebuild all dependencies.
This is frustrating.
DC
DC
More information about the KMyMoney-devel
mailing list