Some general questions for qt belonging cross-compiling



  • I had Qt installed on a Linux Debian Pc (Host)

    1. 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?

    2. For the Host and for each device i need a
      seperate qmake. How could i get this file?

    3. 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


  • Moderators

    @Hi_Be said in Some general questions for qt belonging cross-compiling:

    I had Qt installed on a Linux Debian Pc (Host)

    1. 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.

    1. 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.

    1. 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.