Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved Yocto, Qt 5.13, missing libs in toolchain

    Installation and Deployment
    2
    3
    538
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • U
      uiop last edited by

      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_sdk

      I 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.a

      Does anybody have any ideas, what I should change to Yocto conf, so that these libs would be automatically included in toolchain build script?

      1 Reply Last reply Reply Quote 0
      • S
        samuli last edited by

        Hi,

        you need to make sure that the -staticdev packages for all the Qt modules are taken into the toolchain.

        1 Reply Last reply Reply Quote 0
        • U
          uiop last edited by

          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
          21

          How can I tell bitbake to include these packages into toolchain install script?

          1 Reply Last reply Reply Quote 0
          • First post
            Last post