Cross-compile workflow question
-
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.
-
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. -
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.@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 !