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 external libraries for an iMX6 device?

How to cross compile external libraries for an iMX6 device?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 2 Posters 731 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.
  • R Offline
    R Offline
    r.brue
    wrote on last edited by
    #1

    Hi, I am new to the cross-compiling world and I am struggling to understand how to cross-compile external libraries (such as crypto++, libtar, zlib, etc...) using QT Creator.
    I have a custom Yocto distribution running on an iMX6 based board. I have generated the SDK toolchain and I am able to deploy simple C++ projects which don't use any external library. Now I need to use the libraries that I have listed before, what is the general procedure to do this task? Have I to edit my Yocto distribution in order to already include such libraries? What happens if there is no recipe for a certain library? There is a way in order to cross-compile them just while I am compiling the project? Thank you for any reply.

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

      Hi,

      If you are using standard libraries, you are likely already covered by yocto. If you are using something more exotic, the best would likely to be creating the missing recipe for yocto so it can be treated as any other library on your system.

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

      R 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        If you are using standard libraries, you are likely already covered by yocto. If you are using something more exotic, the best would likely to be creating the missing recipe for yocto so it can be treated as any other library on your system.

        R Offline
        R Offline
        r.brue
        wrote on last edited by
        #3

        @sgaist So basically I am going to recreate the Yocto distribution with the new libraries (the ones that I can find from repositories such as OpenEmbedded, etc..) and then I am going to recreate the SDK with the updated rootfs of the target device, right ?

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

          No need to re-create anything.

          What exactly are you going build ?

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

          R 1 Reply Last reply
          0
          • SGaistS SGaist

            No need to re-create anything.

            What exactly are you going build ?

            R Offline
            R Offline
            r.brue
            wrote on last edited by
            #5

            @sgaist I am building a QT application which needs to be launched on an embedded board (based on a iMX6 processor). I have already created a custom Yocto distribution which includes the QT libraries, but I had not added any further library.
            PS: I am really new to this kind of development process, so maybe I am missing something.

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

              I think this guide from wolfssl might be a good starting point.

              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
              0
              • R Offline
                R Offline
                r.brue
                wrote on last edited by
                #7

                @sgaist Ok thank you, I'll check it as soon as possible. Anyway, in order to make it clearer, I have followed this guide in order to generate the Yocto distribution and to cross compile the QT application.

                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