The libQtDBus requires libQtXml at link time otherwise it fails with the following error:
x86_64-pokysdk-linux-g++ --sysroot=/home/build/dev/yocto/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux -Wl,-O1 -fno-exceptions -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/opt/poky-oso/2.2/sysroots/x86_64 /home/build/dev/yocto/build/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/6.2.0ld: cannot find -lQtXml collect2: error: ld returned 1 exit status make: *** [../../lib/libQtDBus.so.4.8.7] Error 1 The libQt3Support requires libQtGui and libQtNetwork at link time otherwise it fails similarly with the following error: x86_64-pokysdk-linux-g++ --sysroot=/home/build/dev/yocto/build/tmp/sysroots/x86_64-nativesdk-pokysdk-linux -Wl,-O1 -fno-exceptions -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/opt/poky-oso/2.2/sysroots/x86_64 /home/build/dev/yocto/build/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/6.2.0/ld: cannot find -lQtGui /home/build/dev/yocto/build/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/6.2.0/ld: cannot find -lQtNetwork collect2: error: ld returned 1 exit status make: *** [../../lib/libQt3Support.so.4.8.7] Error 1 This patch ensures that libQtXml is build before libQtDBus and that both libQtGui and libQtNetwork are built before libQt3Support. The build issues happen when building a SDK with the command "bitbake meta-toolchain-qt". Signed-off-by: Olivier Sobrie <oliv...@sobrie.be> --- recipes-qt4/qt4/nativesdk-qt4-tools.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes-qt4/qt4/nativesdk-qt4-tools.inc b/recipes-qt4/qt4/nativesdk-qt4-tools.inc index 54bf2a1..8f2e706 100644 --- a/recipes-qt4/qt4/nativesdk-qt4-tools.inc +++ b/recipes-qt4/qt4/nativesdk-qt4-tools.inc @@ -81,13 +81,13 @@ TOBUILD = "\ src/tools/moc \ src/corelib \ src/sql \ - src/dbus \ - src/qt3support \ src/xml \ + src/dbus \ src/tools/uic \ src/tools/rcc \ src/network \ src/gui \ + src/qt3support \ src/tools/uic3 \ tools/linguist/lrelease \ tools/linguist/lupdate \ -- 2.12.2 -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto