Alexpux / Qt-builds

Scripts for building Qt-5.x
48 stars 16 forks source link

Qt 4.8.4 static link failure #23

Open scamille opened 11 years ago

scamille commented 11 years ago

I executed "./buildall x64 --qt-version=4.8.4 --static-qt" and eventually ran into a problem with QT violating the multiple definition rule: multiple definition of `qtsendSpontaneousEvent(QObject, QEvent_)' defined at c:\qtsdk\Qt-build\work\build-x64-s\qt-4.8.4\src\gui/kernel/qapplication.cpp:5559 and c:\qtsdk\Qt-build\work\build-x64-s\qt-4.8.4\src\activeqt\control/qaxserverbase.cpp:4041

Would it be possible to somehow create a patch to circumvent that problem? Or not build tools/activeqt/testcon ?

Full log of the relevant part:

c:/qtsdk/Qt-build/toolchains/mingw64/bin/mingw32-make -f Makefile.Debug all c:/qtsdk/Qt-build/toolchains/mingw64/bin/mingw32-make -f Makefile.Release all mingw32-make[4]: Entering directory 'c:/qtsdk/Qt-build/work/build-x64-s/qt-4.8.4/tools/activeqt/testcon' g++ -mthreads -Wl,-subsystem,windows -o debug/testcon.exe object_script.testcon.Debug -L'c:/qtsdk/Qt-build/work/build-x64-s/qt-4.8.4/lib' -L'c:/qtsdk/Qt-build/toolchains/mingw64/x86_64-w64-mingw32/lib' -L'c:/QtSDK/ported64-s/lib' -L'c:/qtsdk/Qt-build/work/build-x64-s/qt-4.8.4/lib' -lQAxServerd tmp/obj/debug_static/testcon_res.o -lQAxContainerd -lQtGuid -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCored -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32 -Lc:/QtSDK/ported64-s/lib -Lc:/qtsdk/Qt-build/toolchains/mingw64/x86_64-w64-mingw32/lib mingw32-make[4]: Entering directory 'c:/qtsdk/Qt-build/work/build-x64-s/qt-4.8.4/tools/activeqt/testcon' g++ -Wl,-s -mthreads -Wl,-subsystem,windows -o release/testcon.exe object_script.testcon.Release -L'c:/qtsdk/Qt-build/work/build-x64-s/qt-4.8.4/lib' -L'c:/qtsdk/Qt-build/toolchains/mingw64/x86_64-w64-mingw32/lib' -L'c:/QtSDK/ported64-s/lib' -L'c:/qtsdk/Qt-build/work/build-x64-s/qt-4.8.4/lib' -lQAxServer tmp/obj/release_static/testcon_res.o -lQAxContainer -lQtGui -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32 -Lc:/QtSDK/ported64-s/lib -Lc:/qtsdk/Qt-build/toolchains/mingw64/x86_64-w64-mingw32/lib c:/qtsdk/Qt-build/work/build-x64-s/qt-4.8.4/lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0x1630): multiple definition of qt_sendSpontaneousEvent(QObject*, QEvent*)' c:/qtsdk/Qt-build/work/build-x64-s/qt-4.8.4/lib/libQAxServer.a(qaxserverbase.o):qaxserverbase.cpp:(.text+0x34f0): first defined here collect2.exe: error: ld returned 1 exit status Makefile.Release:97: recipe for target 'release/testcon.exe' failed mingw32-make[4]: *** [release/testcon.exe] Error 1 mingw32-make[4]: Leaving directory 'c:/qtsdk/Qt-build/work/build-x64-s/qt-4.8.4/tools/activeqt/testcon' Makefile:56: recipe for target 'release-all' failed mingw32-make[3]: *** [release-all] Error 2 mingw32-make[3]: *** Waiting for unfinished jobs.... c:/qtsdk/Qt-build/work/build-x64-s/qt-4.8.4/lib/libQtGuid.a(qapplication.o): In functionqtsendSpontaneousEvent(QObject, QEvent_)': c:\qtsdk\Qt-build\work\build-x64-s\qt-4.8.4\src\gui/kernel/qapplication.cpp:5559: multiple definition of `qtsendSpontaneousEvent(QObject, QEvent_)' c:/qtsdk/Qt-build/work/build-x64-s/qt-4.8.4/lib/libQAxServerd.a(qaxserverbase.o):c:\qtsdk\Qt-build\work\build-x64-s\qt-4.8.4\src\activeqt\control/qaxserverbase.cpp:4041: first defined here collect2.exe: error: ld returned 1 exit status Makefile.Debug:97: recipe for target 'debug/testcon.exe' failed mingw32-make[4]: * [debug/testcon.exe] Error 1 mingw32-make[4]: Leaving directory 'c:/qtsdk/Qt-build/work/build-x64-s/qt-4.8.4/tools/activeqt/testcon' Makefile:40: recipe for target 'debug-all' failed mingw32-make[3]: * [debug-all] Error 2 mingw32-make[3]: Leaving directory 'c:/qtsdk/Qt-build/work/build-x64-s/qt-4.8.4/tools/activeqt/testcon' Makefile:113: recipe for target 'sub-testcon-make_default-ordered' failed mingw32-make[2]: * [sub-testcon-make_default-ordered] Error 2 mingw32-make[2]: Leaving directory 'c:/qtsdk/Qt-build/work/build-x64-s/qt-4.8.4/tools/activeqt' Makefile:267: recipe for target 'sub-activeqt-make_default-ordered' failed mingw32-make[1]: * [sub-activeqt-make_default-ordered] Error 2 mingw32-make[1]: Leaving directory 'c:/qtsdk/Qt-build/work/build-x64-s/qt-4.8.4/tools' makefile:928: recipe for target 'sub-tools-make_default-ordered' failed mingw32-make: *\ [sub-tools-make_default-ordered] Error 2

Alexpux commented 11 years ago

Thanks for issue. I don't test Qt4 static build yet because no time for it now. I try to resolve this but some later.

scamille commented 11 years ago

I'm interested in a static build including webkit, that's why I tried the old 4.8.4.

Since I'm really no Qt expert at all, I wasn't sure how to resolve the issue the best way. But if you point me to the best place, I can for example try to create a patch to remove one of the two definitions, and create a pull request for it on GitHub.

Edit: 1) I should have mentioned that I`ve used the develop branch of Qt-Builds. 2) qt-4.8.1-fix-activeqt-compilation.patch already handles the mentioned lines in src/activeqt/control/qaxserverbase.cpp , but instead removes some ifdef filters around it. Not sure why that is done, or what the influence on the shared build is. 3) I'm just going to manually patch the source file for now and try to continue building, maybe there are other problems arising.

scamille commented 11 years ago

Qt 4.8.4 seems to have been built properly with the manual patch. Next error is at building Qbs, qbs-4.8.4-built.log:

cd src/lib/ && c:/qtsdk/Qt-Build/toolchains/mingw64/bin/mingw32-make -f Makefile release mingw32-make[1]: Entering directory 'c:/qtsdk/Qt-Build/work/build-x64-s/qbs-4.8.4/src/lib' c:/qtsdk/Qt-Build/toolchains/mingw64/bin/mingw32-make -f Makefile.Release mingw32-make[2]: Entering directory 'c:/qtsdk/Qt-Build/work/build-x64-s/qbs-4.8.4/src/lib' g++ -Wl,-s -shared -mthreads -Wl,--out-implib,../../lib/libqbscore.a -o ../../lib/qbscore.dll object_script.qbscore.Release -L'c:/QtSDK/Qt64-4.8.4-s/lib' -lQtTest -lQtScript -lwinmm -lQtCore -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32 -Lc:/QtSDK/ported64-s/lib -Lc:/qtsdk/Qt-build/toolchains/mingw64/x86_64-w64-mingw32/lib ./release/internaljobs.o:internaljobs.cpp:(.text+0xa3): undefined reference to __imp__Z5qFreePv' ./release/internaljobs.o:internaljobs.cpp:(.text+0xcf): undefined reference toimpZN7QString4freeEPNS_4DataE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x11f): undefined reference to __imp__Z5qFreePv' ./release/internaljobs.o:internaljobs.cpp:(.text+0x14d): undefined reference toimpZN8QVariantD1Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x154): undefined reference to __imp__ZN7QString4freeEPNS_4DataE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x19a): undefined reference toimpZN8QMapData16continueFreeDataEi' ./release/internaljobs.o:internaljobs.cpp:(.text+0x1d3): undefined reference to __imp__ZN7QString4freeEPNS_4DataE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x203): undefined reference toimpZ5qFreePv' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3f2): undefined reference to __imp__ZN7QObjectC2EPS_' ./release/internaljobs.o:internaljobs.cpp:(.text+0x455): undefined reference toimpZN7QObjectD2Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x492): undefined reference to __imp__ZN9QListData11shared_nullE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x50b): undefined reference toimpZN9QListData11shared_nullE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x586): undefined reference to __imp__ZN7QString4freeEPNS_4DataE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x5a6): undefined reference toimpZN7QObjectD2Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x5be): undefined reference to __imp__ZN7QObjectD2Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x61b): undefined reference toimpZN7QStringaSERKS_' ./release/internaljobs.o:internaljobs.cpp:(.text+0x6f5): undefined reference to __imp__ZN6QTimer10singleShotEiP7QObjectPKc' ./release/internaljobs.o:internaljobs.cpp:(.text+0x716): undefined reference toimpZN9QListData6detachEi' ./release/internaljobs.o:internaljobs.cpp:(.text+0x782): undefined reference to __imp__ZN9QListData6detachEi' ./release/internaljobs.o:internaljobs.cpp:(.text+0x868): undefined reference toimpZN7QString4freeEPNS_4DataE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x8b1): undefined reference to __imp__ZN7QString4freeEPNS_4DataE' ./release/internaljobs.o:internaljobs.cpp:(.text+0xafd): undefined reference toimpZN11QMetaObject12invokeMethodEP7QObjectPKcN2Qt14ConnectionTypeE22QGenericReturnArgument16QGenericArgumentS7_S7_S7_S7_S7_S7_S7_S7S7' ./release/internaljobs.o:internaljobs.cpp:(.text+0xb49): undefined reference to __imp__ZN6QMutexC1ENS_13RecursionModeE' ./release/internaljobs.o:internaljobs.cpp:(.text+0xb56): undefined reference toimpZN14QWaitConditionC1Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0xb8d): undefined reference to __imp__ZN14QWaitConditionD1Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0xb9e): undefined reference toimpZN6QMutexD1Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0xbfa): undefined reference to __imp__ZN6QMutex4lockEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0xc05): undefined reference toimpZN14QWaitCondition4waitEP6QMutexm' ./release/internaljobs.o:internaljobs.cpp:(.text+0xc27): undefined reference to __imp__ZN6QMutex12lockInternalEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0xc66): undefined reference toimpZN6QMutex6unlockEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0xc8d): undefined reference to __imp__ZN6QMutex14unlockInternalEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0xcf6): undefined reference toimpZN7QString4freeEPNS_4DataE' ./release/internaljobs.o:internaljobs.cpp:(.text+0xd06): undefined reference to __imp__ZN7QString4freeEPNS_4DataE' ./release/internaljobs.o:internaljobs.cpp:(.text+0xd65): undefined reference toimpZN14QWaitConditionD1Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0xdc5): undefined reference to __imp__ZN6QMutexD1Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0xddf): undefined reference toimpZN7QObjectD2Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0xdfb): undefined reference to __imp__ZN7QObjectD2Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0xe56): undefined reference toimpZN14QWaitConditionD1Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0xe67): undefined reference to __imp__ZN6QMutexD1Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0xf43): undefined reference toimpZN7QObjectD2Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0xf5c): undefined reference to __imp__ZN7QObjectD2Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x1274): undefined reference toimpZN7QObject11deleteLaterEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0x16d2): undefined reference to __imp__ZNK7QString3argERKS_iRK5QChar' ./release/internaljobs.o:internaljobs.cpp:(.text+0x1715): undefined reference toimpZN7QString17fromLatin1helperEPKci' ./release/internaljobs.o:internaljobs.cpp:(.text+0x175b): undefined reference to `impZNK7QStringltERKS' ./release/internaljobs.o:internaljobs.cpp:(.text+0x17c8): undefined reference to__imp__ZNK7QStringltERKS_' ./release/internaljobs.o:internaljobs.cpp:(.text+0x1808): undefined reference toimpZNK8QVariant5toMapEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0x1811): undefined reference to__imp__ZN8QVariantD1Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x184d): undefined reference toimpZN7QString4freeEPNS_4DataE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x18c9): undefined reference to__imp__ZN7QString13fromLocal8BitEPKci' ./release/internaljobs.o:internaljobs.cpp:(.text+0x1905): undefined reference toimpZNK7QString3argERKS_iRK5QChar' ./release/internaljobs.o:internaljobs.cpp:(.text+0x19aa): undefined reference to__imp__ZN7QString4freeEPNS_4DataE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x19ce): undefined reference toimpZN7QString4freeEPNS_4DataE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x1a0c): undefined reference to__imp__ZN7QString4freeEPNS_4DataE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x1b3e): undefined reference toimpZN9QtPrivate16QStringList_joinEPK11QStringListRK7QString' ./release/internaljobs.o:internaljobs.cpp:(.text+0x1c4b): undefined reference to__imp__ZN7QString4freeEPNS_4DataE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x1d3a): undefined reference toimpZN7QString4freeEPNS_4DataE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x1d6a): undefined reference to__imp__ZN7QString4freeEPNS_4DataE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x1e6d): undefined reference toimpZN7QString11shared_nullE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x1f02): undefined reference to__imp__ZN7QString4freeEPNS_4DataE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x1f35): undefined reference toimpZN7QString4freeEPNS4DataE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x2516): undefined reference to__imp__ZN8QVariantD1Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x27ba): undefined reference toimpZN8QVariantC1ERKS' ./release/internaljobs.o:internaljobs.cpp:(.text+0x27c6): undefined reference to__imp__ZN7QString4freeEPNS_4DataE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x28d7): undefined reference toimpZN6QMutex4lockEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0x28f7): undefined reference to__imp__ZN6QMutex12lockInternalEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0x291e): undefined reference toimpZN14QWaitCondition7wakeOneEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0x293e): undefined reference to__imp__ZN6QMutex6unlockEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0x2969): undefined reference toimpZN6QMutex14unlockInternalEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0x2b1a): undefined reference to__imp__ZN19QProcessEnvironmentaSERKS_' ./release/internaljobs.o:internaljobs.cpp:(.text+0x2b33): undefined reference toimpZN7QThreadC1EP7QObject' ./release/internaljobs.o:internaljobs.cpp:(.text+0x2b40): undefined reference to__imp__ZN7QObject12moveToThreadEP7QThread' ./release/internaljobs.o:internaljobs.cpp:(.text+0x2b47): undefined reference toimpZN7QObject7connectEPKS_PKcS1_S3_N2Qt14ConnectionTypeE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x2c1a): undefined reference to__imp__ZN7QThread5startENS_8PriorityE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x2e22): undefined reference toimpZN6QTimer10singleShotEiP7QObjectPKc' ./release/internaljobs.o:internaljobs.cpp:(.text+0x2ec0): undefined reference to__imp__ZN7QStringaSERKS_' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3082): undefined reference toimpZN11QMetaObject12invokeMethodEP7QObjectPKcN2Qt14ConnectionTypeE22QGenericReturnArgument16QGenericArgumentS7_S7_S7_S7_S7_S7_S7_S7S7' ./release/internaljobs.o:internaljobs.cpp:(.text+0x30ca): undefined reference to__imp__ZN18QFutureWatcherBaseC2EP7QObject' ./release/internaljobs.o:internaljobs.cpp:(.text+0x30d1): undefined reference toimpZN20QFutureInterfaceBaseC2ENS5StateE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x30f2): undefined reference to`impZN20QFutureInterfaceBaseC1ERKS' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3120): undefined reference to __imp__ZN20QFutureInterfaceBaseD2Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3142): undefined reference toimpZN7QObject7connectEPKS_PKcS1_S3N2Qt14ConnectionTypeE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3171): undefined reference to __imp__ZN20QFutureInterfaceBaseD2Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x317d): undefined reference toimpZTV18QFutureWatcherBase' ./release/internaljobs.o:internaljobs.cpp:(.text+0x318d): undefined reference to __imp__ZN7QObjectD2Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x31df): undefined reference toimpZN20QFutureInterfaceBase11setRunnableEP9QRunnable' ./release/internaljobs.o:internaljobs.cpp:(.text+0x31e8): undefined reference to __imp__ZN20QFutureInterfaceBase13reportStartedEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0x31f7): undefined reference toimpZN11QThreadPool14globalInstanceEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3206): undefined reference to __imp__ZN11QThreadPool5startEP9QRunnablei' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3214): undefined reference toimpZN20QFutureInterfaceBaseD1Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3243): undefined reference to __imp__ZN20QFutureInterfaceBaseD1Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x325a): undefined reference toimpZN18QFutureWatcherBase25disconnectOutputInterfaceEb' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3266): undefined reference to `impZN20QFutureInterfaceBaseaSERKS' ./release/internaljobs.o:internaljobs.cpp:(.text+0x326f): undefined reference to__imp__ZN18QFutureWatcherBase22connectOutputInterfaceEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3290): undefined reference toimpZN20QFutureInterfaceBaseD1Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x32d6): undefined reference to__imp__ZN18QFutureWatcherBaseC2EP7QObject' ./release/internaljobs.o:internaljobs.cpp:(.text+0x32dd): undefined reference toimpZN20QFutureInterfaceBaseC2ENS5StateE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x32fe): undefined reference to`impZN20QFutureInterfaceBaseC1ERKS' ./release/internaljobs.o:internaljobs.cpp:(.text+0x332c): undefined reference to __imp__ZN20QFutureInterfaceBaseD2Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x334e): undefined reference toimpZN7QObject7connectEPKS_PKcS1_S3N2Qt14ConnectionTypeE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x337d): undefined reference to __imp__ZN20QFutureInterfaceBaseD2Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3389): undefined reference toimpZTV18QFutureWatcherBase' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3399): undefined reference to __imp__ZN7QObjectD2Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x33e1): undefined reference toimpZN20QFutureInterfaceBase11setRunnableEP9QRunnable' ./release/internaljobs.o:internaljobs.cpp:(.text+0x33ea): undefined reference to __imp__ZN20QFutureInterfaceBase13reportStartedEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0x33f9): undefined reference toimpZN11QThreadPool14globalInstanceEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3408): undefined reference to __imp__ZN11QThreadPool5startEP9QRunnablei' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3416): undefined reference toimpZN20QFutureInterfaceBaseD1Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3445): undefined reference to __imp__ZN20QFutureInterfaceBaseD1Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x345a): undefined reference toimpZN18QFutureWatcherBase25disconnectOutputInterfaceEb' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3466): undefined reference to `impZN20QFutureInterfaceBaseaSERKS' ./release/internaljobs.o:internaljobs.cpp:(.text+0x346f): undefined reference to__imp__ZN18QFutureWatcherBase22connectOutputInterfaceEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3490): undefined reference toimpZN20QFutureInterfaceBaseD1Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x34d6): undefined reference to__imp__ZN18QFutureWatcherBaseC2EP7QObject' ./release/internaljobs.o:internaljobs.cpp:(.text+0x34dd): undefined reference toimpZN20QFutureInterfaceBaseC2ENS5StateE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x34fe): undefined reference to`impZN20QFutureInterfaceBaseC1ERKS' ./release/internaljobs.o:internaljobs.cpp:(.text+0x352c): undefined reference to __imp__ZN20QFutureInterfaceBaseD2Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x354e): undefined reference toimpZN7QObject7connectEPKS_PKcS1_S3N2Qt14ConnectionTypeE' ./release/internaljobs.o:internaljobs.cpp:(.text+0x357d): undefined reference to __imp__ZN20QFutureInterfaceBaseD2Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3589): undefined reference toimpZTV18QFutureWatcherBase' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3599): undefined reference to __imp__ZN7QObjectD2Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x35e1): undefined reference toimpZN20QFutureInterfaceBase11setRunnableEP9QRunnable' ./release/internaljobs.o:internaljobs.cpp:(.text+0x35ea): undefined reference to __imp__ZN20QFutureInterfaceBase13reportStartedEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0x35f9): undefined reference toimpZN11QThreadPool14globalInstanceEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3608): undefined reference to __imp__ZN11QThreadPool5startEP9QRunnablei' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3616): undefined reference toimpZN20QFutureInterfaceBaseD1Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3645): undefined reference to __imp__ZN20QFutureInterfaceBaseD1Ev' ./release/internaljobs.o:internaljobs.cpp:(.text+0x365a): undefined reference toimpZN18QFutureWatcherBase25disconnectOutputInterfaceEb' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3666): undefined reference to `impZN20QFutureInterfaceBaseaSERKS' ./release/internaljobs.o:internaljobs.cpp:(.text+0x366f): undefined reference to__imp__ZN18QFutureWatcherBase22connectOutputInterfaceEv' ./release/internaljobs.o:internaljobs.cpp:(.text+0x3690): undefined reference toimpZN20QFutureInterfaceBaseD1Ev' c:/qtsdk/qt-build/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ./release/internaljobs.o: bad reloc address 0x0 in section`.data' collect2.exe: error: ld returned 1 exit status Makefile.Release:257: recipe for target '../../lib/qbscore.dll' failed mingw32-make[2]: * [../../lib/qbscore.dll] Error 1 mingw32-make[2]: Leaving directory 'c:/qtsdk/Qt-Build/work/build-x64-s/qbs-4.8.4/src/lib' Makefile:34: recipe for target 'release' failed mingw32-make[1]: * [release] Error 2 mingw32-make[1]: Leaving directory 'c:/qtsdk/Qt-Build/work/build-x64-s/qbs-4.8.4/src/lib' makefile:310: recipe for target 'sub-src-lib-lib-pro-sub_Release_ordered' failed mingw32-make: *\ [sub-src-lib-lib-pro-sub_Release_ordered] Error 2

Alexpux commented 11 years ago

I think QBS cannot be build with static Qt. It try to link with shared Qt libraries.

scamille commented 11 years ago

I don't really know what QBS is, but assuming it is linked to QtCreator, then I don't need it.

The Qt 4.8.4 static build doesn't have webkit as well. How would I go about trying to build it? Unfortunately I can't find a simple option to enable it in scenarios/qt-4.8.4.sh

Alexpux commented 11 years ago

QBS is build tool. Now it on beta stage. It does't need for building QtCreator. Can you pastebin you qt build.log?

scamille commented 11 years ago

work/logs-x64-s/qt-4.8.4-built.log http://pastebin.com/4RyDZzXV

Alexpux commented 11 years ago

It is not full log because you restart building after some hand made changes. I think some goes wrong when configure Webkit. You need to do new build of Qt to have full log.

scamille commented 11 years ago

Pastebin.com doesn't like 10mb log files, so I tried Gist: https://gist.github.com/philoptik/5618491

Error when building my application: qt\simulationcraftqt.hpp:11:29: fatal error: QtWebKit/QtWebKit: No such file or directory

include <QtWebKit/QtWebKit>

                         ^

compilation terminated.

Alexpux commented 11 years ago

Build log is truncated on gist. Compress it and email to alexpux@gmail.com

Alexpux commented 11 years ago

Ok. On configure.log you can see message:

WARNING: Using static linking will disable the WebKit module.

Static Qt4 cannot be build with webkit.

scamille commented 11 years ago

So is this message directly coming from Qt configure, which disallows statically building WebKit, or is it a protection coming from Qt-Builds?

Well it was worth a try. Maybe Qt5.1 or some future version will finally allow statically building WebKit.

Alexpux commented 11 years ago

This message from Qt configure. As I know Qt5 allow to build Webkit statically. Maybe I wrong...

scamille commented 11 years ago

I haven't succeeded in getting webkit statically built with Qt 5.0.2: When executing 'qmake ' I get: "Project ERROR: Unknown module(s) in QT: webkitwidgets webkit"

Even though I can't find a similar restrictive message in the configure log.

Anyway, I'll try a 4.8.4 shared build to see if I can just remove the double-definition of `qtsendSpontaneousEvent(QObject, QEvent_)' there as well. If it works, I'll try to prepare a git pull request for you. Thanks for all the help.

Alexpux commented 11 years ago

Ok try it but I haven't see this issue when I do shared Qt4 build.