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. Cross-compile workflow question
Forum Updated to NodeBB v4.3 + New Features

Cross-compile workflow question

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 2 Posters 355 Views 2 Watching
  • 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.
  • VStevenPV Offline
    VStevenPV Offline
    VStevenP
    wrote on last edited by
    #1

    I want to cross-compile my Qt app to run on my iMX7/Linux system which has Qt 5.6.2 already installed (thanks to buildroot).

    What is the typical workflow to achieve a successful cross-compile, given the availability of this kind of system?

    Note: My cross-compile host is Ubuntu 18.04. I do have a mkspec for the cross-compile that specifies the cross-compile commands for my buildroot Toolchain. My Toolchain from buildroot doesn't have any Qt development libraries in it right now.

    1 Reply Last reply
    1
    • jeremy_kJ Offline
      jeremy_kJ Offline
      jeremy_k
      wrote on last edited by
      #2

      Do you plan to use qmake?

      There should be a native (to whatever the Ubuntu 18.04 system is) qmake that was built as part of Qt, which will know how to invoke the cross compiler. qmake path/to/app.pro; make will likely be enough. If you did anything to the environment prior to configuring and building Qt, do the same thing before building the application.

      Asking a question about code? http://eel.is/iso-c++/testcase/

      VStevenPV 1 Reply Last reply
      2
      • jeremy_kJ jeremy_k

        Do you plan to use qmake?

        There should be a native (to whatever the Ubuntu 18.04 system is) qmake that was built as part of Qt, which will know how to invoke the cross compiler. qmake path/to/app.pro; make will likely be enough. If you did anything to the environment prior to configuring and building Qt, do the same thing before building the application.

        VStevenPV Offline
        VStevenPV Offline
        VStevenP
        wrote on last edited by
        #3

        @jeremy_k Yes, I was planning to use qmake. I found the build of qmake you mentioned; it was located here:

        ~/buildroot/buildroot-2016.11/output/host/usr/bin/qmake

        I was able to use this qmake on my Ubuntu host to cross-compile my test app successfully. As you suggested, only the qmake and make was needed. Thanks a bunch !

        1 Reply Last reply
        1

        • Login

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