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. How to Cross Compile QT5 Libraries
QtWS25 Last Chance

How to Cross Compile QT5 Libraries

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
crosscompilecross-compilingcross-compilearmlibraries
4 Posts 3 Posters 1.1k 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.
  • C Offline
    C Offline
    closx
    wrote on last edited by closx
    #1

    Hi all,
    I am very beginner at cross/embedded developing. As you can guess, i had billions of problems when building qt and configuring it. But I guess there is a FINAL one.

    System:
    Udoo Neo (Ubuntu 14.04 LTS X11)
    QT 5.11 installed in host system
    QT 5.7 builded (to cross compile)

    I finished compiling my application, but when I run it on the target device, it gives "no library" errors. I see some people says "I have my libraries cross compiled already" and stuff.

    How can I have my arm compiled application working now? How can I cross compile and (where to) "deploy" needed libraries in needed version (5.7.0)?

    Sorry for being noobish :)

    UPDATE: there is no QT or anything installed on target device. Assume it as a 0day one. Only my app.

    bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
    tag me (like @closx) if you are answering to me, so I can notice :D

    raven-worxR 1 Reply Last reply
    0
    • C closx

      Hi all,
      I am very beginner at cross/embedded developing. As you can guess, i had billions of problems when building qt and configuring it. But I guess there is a FINAL one.

      System:
      Udoo Neo (Ubuntu 14.04 LTS X11)
      QT 5.11 installed in host system
      QT 5.7 builded (to cross compile)

      I finished compiling my application, but when I run it on the target device, it gives "no library" errors. I see some people says "I have my libraries cross compiled already" and stuff.

      How can I have my arm compiled application working now? How can I cross compile and (where to) "deploy" needed libraries in needed version (5.7.0)?

      Sorry for being noobish :)

      UPDATE: there is no QT or anything installed on target device. Assume it as a 0day one. Only my app.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @closx
      did the cross compiled version was configured with -prefix?
      Check objdump -x myexecutable | grep RPATH. That should show the path where you need to deploy the binaries on the target.

      Also are you aware that your application needs also be cross compiled against the cross compiled QT libs?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      C 1 Reply Last reply
      1
      • raven-worxR raven-worx

        @closx
        did the cross compiled version was configured with -prefix?
        Check objdump -x myexecutable | grep RPATH. That should show the path where you need to deploy the binaries on the target.

        Also are you aware that your application needs also be cross compiled against the cross compiled QT libs?

        C Offline
        C Offline
        closx
        wrote on last edited by
        #3

        @raven-worx
        hey,
        Yes, my -prefix val is "/opt/qtemb". So am i gonna take all that "cross compiled" libs from my "cross compiled" qt build? And make application use them somehow?
        Thank you so much for your response! Sorry for asking silly questions :D

        bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
        tag me (like @closx) if you are answering to me, so I can notice :D

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          If you copy the files over your target respecting the same folders as your desktop machine, then you won't have anything special to do.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2

          • Login

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