Solved Some general questions for qt belonging cross-compiling
-
I had Qt installed on a Linux Debian Pc (Host)
-
If would create programms for running on the host
and programms running on a device, could I use
therefor the same Qt installation on the host or do i need
a special installation for each device? -
For the Host and for each device i need a
seperate qmake. How could i get this file? -
For each device I need a cross-compiler for
running on the host, but creating code for
the device. How did i got the necessary
compiler etc could i create the compiler
self?
Thank you and best regards
-
-
@Hi_Be said in Some general questions for qt belonging cross-compiling:
I had Qt installed on a Linux Debian Pc (Host)
- If would create programms for running on the host
and programms running on a device, could I use
therefor the same Qt installation on the host or do i need
a special installation for each device?
In general you need a separate toolchain and Qt compilation for each device. For each device you have to do a cross-compilation of Qt libs and lateron also for your applications.
- For the Host and for each device i need a
seperate qmake. How could i get this file?
The separate qmake comes with the cross-compiled Qt libs. Even if there are only minor changes for qmake itself,it is beneficial to have a separate qmake, since it is also the key entry for toolchain specific settings.
- For each device I need a cross-compiler for
running on the host, but creating code for
the device. How did i got the necessary
compiler etc could i create the compiler
self?
For most devices you can download cross-compilers already. Google shall help here. Also the support-sites for your embedded board lead you to appropriate cross-compilers. Typically cross-compilers for linux on host and embedded platforms are easiest to find and easier to use.
Basically you should be able to generate also the cross-compiler every time when you use special tools. One way to seem to be the use of autotools. At least that I was told for one project I was involved. However, I would prefer pre-built cross-compilers when available.
[edit] there are already Qt libs pre-built for different devices. However, they are not officially built and may have settings you do not want. If they work for you, this might be also an alternative.
- If would create programms for running on the host