Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Cross Compilation related confusion!
Forum Updated to NodeBB v4.3 + New Features

Cross Compilation related confusion!

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 965 Views 1 Watching
  • 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.
  • Mandar KhireM Offline
    Mandar KhireM Offline
    Mandar Khire
    wrote on last edited by
    #1

    Hi,
    This my first question in this forum.
    I am trying to find out way to cross compile 'Hello world' app (by Ubuntu 14.04 64bit PC) for different boards(Wandboard, Olimex, Raspberry Pi, Beagle-bone etc ) which has different versions of kernels.
    I following steps Setting Up Qt Creator for cross compile.

    I download 'qt-opensource-linux-x64-5.5.1.run' from QT website & install it on PC. So it create folders like Tools, 5.5, Docs, Extra, Example etc which has QT creator & QT base which has 'gcc_64' & 'src'.
    By that QT creator I can easily create 'Hello World' app which runs fine in PC.

    Question is Can we need to cross compile complete QT Base also?
    Or like by Android Studio or Eclipse we can only compile our Hello World program for any board/pltatform/os etc by just changing few settings while compilation time. So there is no need to cross compile Android Studio or Eclipse it self.

    I found Cross compile Qt5

    But It give steps for how to cross compile QT5 it-self, previous link show how to change settings in QT creator in PC for cross compile our program.
    Little confusion about Cross compilation!

    Need guidance!
    Thanks,

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      If you are targeting Android or iOS then it's already covered just get the corresponding packages. The easiest way is by using the online installer.

      Since you plan to work on embedded system like the BeagleBoneBlack or the RaspberryPi then you have to cross-compile Qt. Note that there are embedded distributions that provides Qt. IIRC the yocto project does.

      Android Studio is a special case in the sense that it's dedicated for Android systems so it comes with all resources pre-built but the targets have fixed OSs but if you want to use custom libraries or libraries not provided by the system you would have to cross-compile them yourself also.

      Hope it helps

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

      1 Reply Last reply
      0
      • Mandar KhireM Offline
        Mandar KhireM Offline
        Mandar Khire
        wrote on last edited by
        #3

        Thanks qt-champions-2015,
        As you wrote
        "Since you plan to work on embedded system like the BeagleBoneBlack or the RaspberryPi then you have to cross-compile Qt. Note that there are embedded distributions that provides Qt. IIRC the yocto project does."

        Means in my ubuntu 14.04 64 bit should have 2-3 different QT base so I can use hello world program for different boards & its different kernels.
        Its not like I have toolchains installed & compile hello world c program for different boards & different kernels.

        Question is Can I make my pc ready for QT programming for any board by following some steps? How?

        need guidance!

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          There's no universal setup for every existing boards. Each of them has specific hardware especially graphic wise.

          It also depends on what distribution you'll be running. That's why you usually have one Qt build per board/distro.

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

          1 Reply Last reply
          0

          • Login

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