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
QtWS25 Last Chance

building qt for raspberry pi

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
11 Posts 3 Posters 744 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

    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

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on 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
    0
    • jsulmJ jsulm

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

      T Offline
      T Offline
      Tomaz
      wrote on last edited by
      #3

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

      SGaistS 1 Reply Last reply
      0
      • T Tomaz

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

        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on 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
        • jsulmJ jsulm

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

          T Offline
          T Offline
          Tomaz
          wrote on 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

          SGaistS 1 Reply Last reply
          0
          • T Tomaz

            @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

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on 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
            0
            • SGaistS SGaist

              @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 last edited by
              #7

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

              SGaistS 1 Reply Last reply
              0
              • T Tomaz

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

                SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on 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
                1
                • SGaistS SGaist

                  @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 last edited by
                  #9

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

                  SGaistS 1 Reply Last reply
                  0
                  • T Tomaz

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

                    SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 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
                    1
                    • SGaistS SGaist

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