Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. which version of qt base should I choose for cross compile qt on raspberry pi 3
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Solved QtonPi
5 Posts 2 Posters 1.7k 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.
  • I Offline
    I Offline
    isan
    wrote on last edited by isan
    #1

    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?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by sierdzio
      #2

      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.

      (Z(:^

      I 1 Reply Last reply
      0
      • sierdzioS sierdzio

        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.

        I Offline
        I Offline
        isan
        wrote on last edited by
        #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 ?

        sierdzioS 1 Reply Last reply
        0
        • I isan

          @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 ?

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

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

          (Z(:^

          I 1 Reply Last reply
          2
          • sierdzioS sierdzio

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

            I Offline
            I Offline
            isan
            wrote on last edited by isan
            #5

            @sierdzio
            thank you

            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