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. Compiling QT5 From Source For Embedded
QtWS25 Last Chance

Compiling QT5 From Source For Embedded

Scheduled Pinned Locked Moved Installation and Deployment
qt5crosscompilearmlinuxembedded linuxembedded
3 Posts 2 Posters 2.2k Views
  • 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.
  • D Offline
    D Offline
    deleted605
    wrote on 26 Sept 2015, 15:35 last edited by
    #1

    Hi there,

    I'm trying to build qt5 from source to prepare a cross-compile environment for an imx6 embedded board.

    I have some question about it and be happy if you could answer them.

    1- Why we have different mkspec conf files? Aren't all arm7v family same? Ok, they may not be same, but isn't is possible to reconfigure compilation by just setting or disabling some flags?

    2- Why do we need toolchain for target board? Why we need to download different arm-gnueabi/gnueabihf compilers and libraries? Doesn't the arm compiler (which is in the current ubuntu repository) compile all required libraries from source code from my computer?

    Can anybody explain me the whole process with a basic steps? I was thinking about something like this;
    Get compiler for arm (hf or sf) --> get the source code --> use arm compiler to compile source against arm architecture

    Which part am I missing?

    Thanks in advance.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 26 Sept 2015, 20:55 last edited by
      #2

      Hi and welcome to devnet,

      1. No, they don't provide all the exact same hardware e.g. FPU model. Also, because the various devices offer different support not only related to the processor but also for example the GPU available etc.
        It's also nice to have all the needed flags stored in one place rather than to have to hunt for them, store them anyway somewhere for the next time you need to build Qt on a different machine etc.

      2. Because the hard float support is pretty recent and was not as widespread as today. Also, depending on the distribution running you didn't had the option to run hf binaries because the system was built using gnu-eabi.

      It's rather:

      1. Look for the device's Linux distribution
      2. Determine which ABI it uses
      3. Get the correct compiler
      4. Install all the needed dev package on the device
      5. Cross-compile
      6. Enjoy

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply 27 Sept 2015, 09:29
      0
      • S SGaist
        26 Sept 2015, 20:55

        Hi and welcome to devnet,

        1. No, they don't provide all the exact same hardware e.g. FPU model. Also, because the various devices offer different support not only related to the processor but also for example the GPU available etc.
          It's also nice to have all the needed flags stored in one place rather than to have to hunt for them, store them anyway somewhere for the next time you need to build Qt on a different machine etc.

        2. Because the hard float support is pretty recent and was not as widespread as today. Also, depending on the distribution running you didn't had the option to run hf binaries because the system was built using gnu-eabi.

        It's rather:

        1. Look for the device's Linux distribution
        2. Determine which ABI it uses
        3. Get the correct compiler
        4. Install all the needed dev package on the device
        5. Cross-compile
        6. Enjoy
        D Offline
        D Offline
        deleted605
        wrote on 27 Sept 2015, 09:29 last edited by
        #3

        @SGaist thank you for the fast reply. now I started to see the difference.

        1 Reply Last reply
        0

        1/3

        26 Sept 2015, 15:35

        • Login

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