Unsolved Yocto, Qt 5.13, missing libs in toolchain
-
Hi,
I am building a toolchain installation script in Yocto Sumo. I am using 5.13 branch from git://code.qt.io/yocto/meta-qt5.git.
So I build the toolchain script with this command:
bitbake my-product-image -c populate_sdkI am using static libraries in Qt, so I have "qt5-static" added to DISTRO_FEATURES.
When I install the toolchain and try to build my app against the toolchain, I get some linking errors because of some missing libraries.
If I copy these libs manually from yocto build dir to toolchain dir, my app builds ok against toolchain:tmp/work/cortexa9hf-xxx-linux-gnueabi/qtsvg/5.13.0+gitAUTOINC+3a4c634241-r0/package/usr/lib/libQt5Svg.a
tmp/work/cortexa9hf-xxx-linux-gnueabi/qtserialport/5.13.0+gitAUTOINC+2f2b747ebc-r0/package/usr/lib/libQt5SerialPort.a
tmp/work/cortexa9hf-xxx-linux-gnueabi/qtlocation/5.13.0+gitAUTOINC+667af08a38_4b85252fbe-r0/package/usr/lib/libQt5Positioning.a
tmp/work/cortexa9hf-xxx-linux-gnueabi/qtsvg/5.13.0+gitAUTOINC+3a4c634241-r0/package/usr/lib/plugins/iconengines/libqsvgicon.a
tmp/work/cortexa9hf-xxx-linux-gnueabi/qtimageformats/5.13.0+gitAUTOINC+a743e1427b-r0/package/usr/lib/plugins/imageformats/libqicns.a
tmp/work/cortexa9hf-xxx-linux-gnueabi/qtimageformats/5.13.0+gitAUTOINC+a743e1427b-r0/package/usr/lib/plugins/imageformats/libqtga.a
tmp/work/cortexa9hf-xxx-linux-gnueabi/qtimageformats/5.13.0+gitAUTOINC+a743e1427b-r0/package/usr/lib/plugins/imageformats/libqtiff.a
tmp/work/cortexa9hf-xxx-linux-gnueabi/qtimageformats/5.13.0+gitAUTOINC+a743e1427b-r0/package/usr/lib/plugins/imageformats/libqwbmp.a
tmp/work/cortexa9hf-xxx-linux-gnueabi/qtimageformats/5.13.0+gitAUTOINC+a743e1427b-r0/package/usr/lib/plugins/imageformats/libqwebp.a
tmp/work/cortexa9hf-xxx-linux-gnueabi/qtsvg/5.13.0+gitAUTOINC+3a4c634241-r0/package/usr/lib/plugins/imageformats/libqsvg.a
tmp/work/cortexa9hf-xxx-linux-gnueabi/qtlocation/5.13.0+gitAUTOINC+667af08a38_4b85252fbe-r0/package/usr/lib/plugins/position/libqtposition_geoclue2.a
tmp/work/cortexa9hf-xxx-linux-gnueabi/qtlocation/5.13.0+gitAUTOINC+667af08a38_4b85252fbe-r0/package/usr/lib/plugins/position/libqtposition_geoclue.a
tmp/work/cortexa9hf-xxx-linux-gnueabi/qtlocation/5.13.0+gitAUTOINC+667af08a38_4b85252fbe-r0/package/usr/lib/plugins/position/libqtposition_positionpoll.a
tmp/work/cortexa9hf-xxx-linux-gnueabi/qtlocation/5.13.0+gitAUTOINC+667af08a38_4b85252fbe-r0/package/usr/lib/libclip2tri.a
tmp/work/cortexa9hf-xxx-linux-gnueabi/qtlocation/5.13.0+gitAUTOINC+667af08a38_4b85252fbe-r0/package/usr/lib/libpoly2tri.a
tmp/work/cortexa9hf-xxx-linux-gnueabi/qtlocation/5.13.0+gitAUTOINC+667af08a38_4b85252fbe-r0/package/usr/lib/libclipper.aDoes anybody have any ideas, what I should change to Yocto conf, so that these libs would be automatically included in toolchain build script?
-
Hi,
you need to make sure that the -staticdev packages for all the Qt modules are taken into the toolchain.
-
Hi,
How can I do it? Should I make a change to some qt recipe?
In Yocto build dir I can see -staticdev ipk packages:build@c9cafac50b9b:~/shared/yocto/poky/build$ ll tmp/deploy/ipk/cortexa9hf-neon/qt*-staticdev* | wc -l
21How can I tell bitbake to include these packages into toolchain install script?