Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Cross compilation problem with QtCreator [Yocto Image]

Cross compilation problem with QtCreator [Yocto Image]

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 3 Posters 1.4k 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.
  • Y Offline
    Y Offline
    YahyaAhmed
    wrote on last edited by
    #1

    Hello Everyone,

    I've bitbaked a qt5 image for my Beaglebone Black and exported the cross-toolchain sdk.
    I also tried to setup QtCreator to work with the output toolchain with the steps in this link

    I put this code at the beginning of the qtcreator.sh file to change the environment variables

    source /opt/poky/1.6.1/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi 
    

    and configured the following options

    • qmake : /home/user/cross/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake

    • g++ compiler: /home/user/cross/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++

    • Sysroot: /home/user/cross/sysroots/cortexa8hf-neon-poky-linux-gnueabi

    However, when I build the project I get the following errors :

    error: cannot find -lQt5Widgets
    error: cannot find -lQt5Core
    error: cannot find -lQt5Gui
    error: collect2: error: ld returned 1 exit status
    

    Does anybody have a solution for this?

    P.S. when I compile the project using terminal it compiles with no error and works well on the target. My host machine is running on Ubuntu 16.0.

    1 Reply Last reply
    0
    • tomasz3dkT Offline
      tomasz3dkT Offline
      tomasz3dk
      wrote on last edited by
      #2

      In your kit where you have toolchain, and qt for bbb generated by yocto set Qt mkspec to

      linux-oe-g++
      
      A 1 Reply Last reply
      3
      • Y Offline
        Y Offline
        YahyaAhmed
        wrote on last edited by
        #3

        @tomasz3dk Thank you very much, that worked fine.

        1 Reply Last reply
        0
        • tomasz3dkT tomasz3dk

          In your kit where you have toolchain, and qt for bbb generated by yocto set Qt mkspec to

          linux-oe-g++
          
          A Offline
          A Offline
          Alexander-9
          wrote on last edited by
          #4

          @tomasz3dk, Hi the carpet linux-oe-g++ where i can find??, because i have the same problem, only i installed qt creator 4.2.2.

          I hope you can help me. thanks.

          Regards.

          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