Qt cross-compile from Windows to Linux Embedded?


No matter how much I search and reread the documentation and wikis of Qt I do not understand how to compile for a target different from the host. I know that it is recommended to use Linux as a development environment but the goal is to be from Windows.

Here they say to use the tool configure what not is specified is how?

Starting from any example project, I open it with Qt Creator, and then what do I do? What are the steps?

The host is Windows 7 using Qt 5.7 (compiler MinGW 5.3). The target is Debian Wheezy (kernel 3.0.55) on an iMX6Q chip board.

asked by anat0lius 07.10.2016 в 13:10

1 answer


To perform cross montages you need:

  • A compiler that allows you to create executables in the target environment.
  • A version of Qt compiled with this compiler.

With this base you can start to configure the environment. The first thing you have to do is to register the compiler in QtCreator so that Qt is able to compile applications with it. The compiler can be registered from Tools - > Options - > Compilers.

Then you have to configure a "kit". The kits indicate to Qt which set of Qt libraries should be used with each compiler. This part is configured from Tools - > Options - > Kits (in older versions of Qt I think it was called Toolchains ).

Once you have completed these two steps each time you create a new project you can choose to compile using your new configuration. For already created projects you will have to edit the project to add the new kits to the compilation possibilities.


answered by 07.10.2016 в 13:19