Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.12.1
-
None
-
2327944d241f48495a7b867b8e206a4c8c5d52e3 (qt/qtbase/5.12.1)
Description
Cross-compilation of qtdeclarative to mingw on linux fails with linker error:
make[1]: Entering directory '/home/sapiippo/development/yocto/sumo/build-apalis-imx6/tmp/work/i686-nativesdk-mingw32-pokysdk-mingw32/nativesdk-qtdeclarative/5.12.0+gitAUTOINC+c57681bc37-r0/build/tools/qmlcachegen' i686-pokysdk-mingw32-g++ --sysroot=/home/sapiippo/development/yocto/sumo/build-apalis-imx6/tmp/work/i686-nativesdk-mingw32-pokysdk-mingw32/nativesdk-qtdeclarative/5.12.0+gitAUTOINC+c57681bc37-r0/recipe-sysroot -Wl,-O1 -Wl,-s -Wl,-subsystem,console -Wl,--gc-sections -o ../../bin/qmlcachegen.exe .obj/release/qmlcachegen.o .obj/release/resourcefilter.o .obj/release/generateloader.o .obj/release/resourcefilemapper.o -L/home/sapiippo/development/yocto/sumo/build-apalis-imx6/tmp/work/i686-nativesdk-mingw32-pokysdk-mingw32/nativesdk-qtdeclarative/5.12.0+gitAUTOINC+c57681bc37-r0/build/lib /home/sapiippo/development/yocto/sumo/build-apalis-imx6/tmp/work/i686-nativesdk-mingw32-pokysdk-mingw32/nativesdk-qtdeclarative/5.12.0+gitAUTOINC+c57681bc37-r0/build/lib/libQt5QmlDevTools.a -lQt5Bootstrap .obj/release/qmlcachegen_resource_res.o /home/sapiippo/development/yocto/sumo/build-apalis-imx6/tmp/work/i686-nativesdk-mingw32-pokysdk-mingw32/nativesdk-qtdeclarative/5.12.0+gitAUTOINC+c57681bc37-r0/recipe-sysroot/opt/b2qt/2.5.2/sysroots/i686-pokysdk-mingw32/usr/lib/libQt5Bootstrap.a(qfilesystemengine_win.o):qfilesystemengine_win.cpp:(.text$_ZN17QFileSystemEngine21uncListSharesOnServerERK7QStringP11QStringList+0x31): undefined reference to `NetApiBufferFree@4' /home/sapiippo/development/yocto/sumo/build-apalis-imx6/tmp/work/i686-nativesdk-mingw32-pokysdk-mingw32/nativesdk-qtdeclarative/5.12.0+gitAUTOINC+c57681bc37-r0/recipe-sysroot/opt/b2qt/2.5.2/sysroots/i686-pokysdk-mingw32/usr/lib/libQt5Bootstrap.a(qfilesystemengine_win.o):qfilesystemengine_win.cpp:(.text$_ZN17QFileSystemEngine21uncListSharesOnServerERK7QStringP11QStringList+0x81): undefined reference to `NetShareEnum@28' /home/sapiippo/development/yocto/sumo/build-apalis-imx6/tmp/work/i686-nativesdk-mingw32-pokysdk-mingw32/nativesdk-qtdeclarative/5.12.0+gitAUTOINC+c57681bc37-r0/recipe-sysroot/opt/b2qt/2.5.2/sysroots/i686-pokysdk-mingw32/usr/lib/libQt5Bootstrap.a(qfsfileengine_win.o):qfsfileengine_win.cpp:(.text$_ZN13QFSFileEngine4linkERK7QString+0x29): undefined reference to `IID_IShellLinkW' /home/sapiippo/development/yocto/sumo/build-apalis-imx6/tmp/work/i686-nativesdk-mingw32-pokysdk-mingw32/nativesdk-qtdeclarative/5.12.0+gitAUTOINC+c57681bc37-r0/recipe-sysroot/opt/b2qt/2.5.2/sysroots/i686-pokysdk-mingw32/usr/lib/libQt5Bootstrap.a(qfsfileengine_win.o):qfsfileengine_win.cpp:(.text$_ZN13QFSFileEngine4linkERK7QString+0x4a): undefined reference to `_imp__CoCreateInstance@20' /home/sapiippo/development/yocto/sumo/build-apalis-imx6/tmp/work/i686-nativesdk-mingw32-pokysdk-mingw32/nativesdk-qtdeclarative/5.12.0+gitAUTOINC+c57681bc37-r0/recipe-sysroot/opt/b2qt/2.5.2/sysroots/i686-pokysdk-mingw32/usr/lib/libQt5Bootstrap.a(qfsfileengine_win.o):qfsfileengine_win.cpp:(.text$_ZN13QFSFileEngine4linkERK7QString+0x1cd): undefined reference to `IID_IPersistFile' /home/sapiippo/development/yocto/sumo/build-apalis-imx6/tmp/work/i686-nativesdk-mingw32-pokysdk-mingw32/nativesdk-qtdeclarative/5.12.0+gitAUTOINC+c57681bc37-r0/recipe-sysroot/opt/b2qt/2.5.2/sysroots/i686-pokysdk-mingw32/usr/lib/libQt5Bootstrap.a(qfsfileengine_win.o):qfsfileengine_win.cpp:(.text$_ZN13QFSFileEngine4linkERK7QString+0x263): undefined reference to `_imp__CoUninitialize@0' /home/sapiippo/development/yocto/sumo/build-apalis-imx6/tmp/work/i686-nativesdk-mingw32-pokysdk-mingw32/nativesdk-qtdeclarative/5.12.0+gitAUTOINC+c57681bc37-r0/recipe-sysroot/opt/b2qt/2.5.2/sysroots/i686-pokysdk-mingw32/usr/lib/libQt5Bootstrap.a(qfsfileengine_win.o):qfsfileengine_win.cpp:(.text$_ZN13QFSFileEngine4linkERK7QString+0x2c9): undefined reference to `_imp__CoInitialize@4' /home/sapiippo/development/yocto/sumo/build-apalis-imx6/tmp/work/i686-nativesdk-mingw32-pokysdk-mingw32/nativesdk-qtdeclarative/5.12.0+gitAUTOINC+c57681bc37-r0/recipe-sysroot/opt/b2qt/2.5.2/sysroots/i686-pokysdk-mingw32/usr/lib/libQt5Bootstrap.a(qfsfileengine_win.o):qfsfileengine_win.cpp:(.text$_ZN13QFSFileEngine4linkERK7QString+0x2d8): undefined reference to `IID_IShellLinkW' collect2: error: ld returned 1 exit status Makefile.Release:74: recipe for target '../../bin/qmlcachegen.exe' failed
qmlcachegen depends on static libs Qt5Bootstrap and Qt5QmlDevTools, but on the final link the extra libs used by Qt5Bootstrap are not included.
Qt5Bootstrap.prl:
QMAKE_PRL_TARGET = libQt5Bootstrap.a QMAKE_PRL_LIBS = -luser32 -lole32 -ladvapi32 -lshell32 -lnetapi32 -luuid
Qt5QmlDevTools.prl:
QMAKE_PRL_TARGET = libQt5QmlDevTools.a QMAKE_PRL_LIBS = -lQt5Bootstrap
Attachments
Issue Links
- resulted in
-
QTBUG-73959 qmake library path search order changed
- Closed