Cross Compilation related confusion!



  • 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,


  • Lifetime Qt Champion

    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



  • 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!


  • Lifetime Qt Champion

    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.


Log in to reply
 

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