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. building qt for raspberry pi

building qt for raspberry pi

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
11 Posts 3 Posters 765 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.
  • T Tomaz
    6 Aug 2023, 21:51

    Hi
    I am trying to build qt for raspberry pi after this post:
    https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi

    Now. When I do:
    cmake ../qt5/ -GNinja -DCMAKE_BUILD_TYPE=Release -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=$HOME/qt-host

    the cmake hangs at:

    Configuring submodule 'qttranslations'
    CMake Warning at qttranslations/translations/CMakeLists.txt:37 (message):
    Directory
    '/home/tomaz/qt5/qttranslations/translations/../../qtlocation/src' for
    qtlocation does not exist. Skipping...
    Call Stack (most recent call first):
    qttranslations/translations/CMakeLists.txt:105 (add_ts_targets)

    CMake Warning at qttranslations/translations/CMakeLists.txt:44 (message):
    No source files located for qtlocation, skipping target creation
    Call Stack (most recent call first):
    qttranslations/translations/CMakeLists.txt:105 (add_ts_targets)

    Now I surrpased this after I deleted CMakeLists.txt. If I understand correctly the qttranslations module is not build.

    But I do not know if this issue comes from cmake or cmake instruction or as I read iis some folder missing.

    Thomas

    J Offline
    J Offline
    jsulm
    Lifetime Qt Champion
    wrote on 8 Aug 2023, 05:47 last edited by
    #2

    @Tomaz How did you get Qt source code? And which branch?

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    T 2 Replies Last reply 16 Aug 2023, 18:15
    0
    • J jsulm
      8 Aug 2023, 05:47

      @Tomaz How did you get Qt source code? And which branch?

      T Offline
      T Offline
      Tomaz
      wrote on 16 Aug 2023, 18:15 last edited by
      #3

      @jsulm Hi
      I downlaoded it from Qt server. It is qt-everywhere-src-5.12.5
      Thomas

      S 1 Reply Last reply 16 Aug 2023, 18:34
      0
      • T Tomaz
        16 Aug 2023, 18:15

        @jsulm Hi
        I downlaoded it from Qt server. It is qt-everywhere-src-5.12.5
        Thomas

        S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 16 Aug 2023, 18:34 last edited by
        #4

        @Tomaz hi,

        Why are you using the Qt 6 instructions and the Qt 5.12 sources ?

        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
        • J jsulm
          8 Aug 2023, 05:47

          @Tomaz How did you get Qt source code? And which branch?

          T Offline
          T Offline
          Tomaz
          wrote on 16 Aug 2023, 18:36 last edited by
          #5

          @jsulm Hi
          I surpassed errors because I am bulding for Raspberry Pi3b. I followed now another post.
          Now I got it building. I ran:

          ./configure -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -skip qtwayland -skip qtlocation -skip qtscript -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v -no-gcc-sysroot

          And then make. I stopped at:

          /home/tomaz/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: warning: section `.rodata' type changed to PROGBITS
          make[3]: Leaving directory '/home/tomaz/raspi/qt-everywhere-src-5.12.5/qtdeclarative/tools/qml'
          make[2]: Leaving directory '/home/tomaz/raspi/qt-everywhere-src-5.12.5/qtdeclarative/tools'
          make[1]: Leaving directory '/home/tomaz/raspi/qt-everywhere-src-5.12.5/qtdeclarative'

          Thomas

          S 1 Reply Last reply 16 Aug 2023, 18:40
          0
          • T Tomaz
            16 Aug 2023, 18:36

            @jsulm Hi
            I surpassed errors because I am bulding for Raspberry Pi3b. I followed now another post.
            Now I got it building. I ran:

            ./configure -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -skip qtwayland -skip qtlocation -skip qtscript -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v -no-gcc-sysroot

            And then make. I stopped at:

            /home/tomaz/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: warning: section `.rodata' type changed to PROGBITS
            make[3]: Leaving directory '/home/tomaz/raspi/qt-everywhere-src-5.12.5/qtdeclarative/tools/qml'
            make[2]: Leaving directory '/home/tomaz/raspi/qt-everywhere-src-5.12.5/qtdeclarative/tools'
            make[1]: Leaving directory '/home/tomaz/raspi/qt-everywhere-src-5.12.5/qtdeclarative'

            Thomas

            S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 16 Aug 2023, 18:40 last edited by
            #6

            @Tomaz likely because you have leftovers from a previous attempt.

            Use out of source builds. That way you can more easily start from scratch.

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

            T 1 Reply Last reply 16 Aug 2023, 18:48
            0
            • S SGaist
              16 Aug 2023, 18:40

              @Tomaz likely because you have leftovers from a previous attempt.

              Use out of source builds. That way you can more easily start from scratch.

              T Offline
              T Offline
              Tomaz
              wrote on 16 Aug 2023, 18:48 last edited by
              #7

              @SGaist Strange. I did clean all folders except raspberry sysroot! Even unziped qt package again into folder.
              Thomas

              S 1 Reply Last reply 16 Aug 2023, 18:50
              0
              • T Tomaz
                16 Aug 2023, 18:48

                @SGaist Strange. I did clean all folders except raspberry sysroot! Even unziped qt package again into folder.
                Thomas

                S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 16 Aug 2023, 18:50 last edited by
                #8

                @Tomaz how did you clean it ?

                In any case, my recommendation stays: do out of source builds. It will save you a lot of pain.

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

                T 1 Reply Last reply 16 Aug 2023, 18:59
                1
                • S SGaist
                  16 Aug 2023, 18:50

                  @Tomaz how did you clean it ?

                  In any case, my recommendation stays: do out of source builds. It will save you a lot of pain.

                  T Offline
                  T Offline
                  Tomaz
                  wrote on 16 Aug 2023, 18:59 last edited by
                  #9

                  @SGaist What do you mean with "out of source? Thomas

                  S 1 Reply Last reply 16 Aug 2023, 19:07
                  0
                  • T Tomaz
                    16 Aug 2023, 18:59

                    @SGaist What do you mean with "out of source? Thomas

                    S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 16 Aug 2023, 19:07 last edited by
                    #10

                    @Tomaz literally "not in the source".

                    Create a folder outside of the Qt sources and call configure from there.

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

                    T 1 Reply Last reply 16 Aug 2023, 19:52
                    1
                    • S SGaist
                      16 Aug 2023, 19:07

                      @Tomaz literally "not in the source".

                      Create a folder outside of the Qt sources and call configure from there.

                      T Offline
                      T Offline
                      Tomaz
                      wrote on 16 Aug 2023, 19:52 last edited by
                      #11

                      @SGaist well I tried out of source but the error is the same.

                      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