Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Yocto, Qt 5.13, missing libs in toolchain

Yocto, Qt 5.13, missing libs in toolchain

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 1.0k Views
  • 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 Offline
    U Offline
    uiop
    wrote on last edited by
    #1

    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
    0
    • S Offline
      S Offline
      samuli
      wrote on last edited by
      #2

      Hi,

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

      1 Reply Last reply
      0
      • U Offline
        U Offline
        uiop
        wrote on last edited by
        #3

        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
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved