which version of qt base should I choose for cross compile qt on raspberry pi 3



  • I want to cross compile Qt for raspberry pi 3 according to this link
    my Ubuntu is 16.04 x64 bit ,Qt Creator is 5.10.1 x64 bit and Raspbian stretch x32 bit
    which version of qt base should I choose?
    in this section :

    git clone git://code.qt.io/qt/qtbase.git -b <qt-version>
    

    when compile qt x64 bit for Raspbian x32 bit is it work?


  • Moderators

    You don't have to compile just Qt base, you can compile whole Qt actually. Anyway, if you prefer just qtbase it's OK. Any version will do, I recommend either 5.9.4 (if you go for stability of LTS version), or the newest 5.10.1. Both work just fine on RPi 3.

    when compile qt x64 bit for Raspbian x32 bit is it work?

    Your host OS architecture does not matter. As the wiki says, you will be compiling using a cross-compiler which will choose the right architecture for you, don't worry about it.



  • @sierdzio

    You don't have to compile just Qt base, you can compile whole Qt actually.

    which link you recommend for cross compile qt on raspberry ?


  • Moderators

    @isan said in which version of qt base should I choose for cross compile qt on raspberry pi 3:

    @sierdzio

    You don't have to compile just Qt base, you can compile whole Qt actually.

    which link you recommend for cross compile qt on raspberry ?

    The one you posted is the best guide. I'm just saying that it is not necessary to stick to compiling qtbase only if you need more modules. I'm usually downloading the whole Qt source code tarball (for example from here) and then turning off modules I don't need. Here's an example configure line I'm using:

    export QTVER=5.9.4
    ../$QTVER-src/configure -release -opengl es2 -device linux-rasp-pi3-vc4-g++ \
    -device-option CROSS_COMPILE=/some/path/qt-pi/toolchain/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot /some/path/qt-pi/sysroot \
    -opensource -confirm-license -make libs -no-use-gold-linker \
    -prefix /home/pi/qt/$QTVER -extprefix /some/path/qt-pi/$QTVER \
    -hostprefix /some/path/qt-pi/$QTVER-qmake \
    -skip qtserialbus -skip qtscxml -skip qtscript -skip qtcharts -skip qt3d \
    -skip qtdatavis3d -skip qtcanvas3d -skip qtgamepad -skip qtvirtualkeyboard \
    -skip qtwayland -skip qtwebengine -skip qtwebchannel -skip qtwebglplugin \
    -skip qtwebsockets
    

    Since you're trying it out for the first time, though, it's probably better to follow the wiki word for word. Then when you gain a bit more experience you can start experimenting with your own modifications to the procedure.



  • @sierdzio
    thank you


Log in to reply
 

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