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. RPI installing cross-compiling
QtWS25 Last Chance

RPI installing cross-compiling

Scheduled Pinned Locked Moved Solved Installation and Deployment
9 Posts 3 Posters 1.8k 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.
  • K-StrK Offline
    K-StrK Offline
    K-Str
    wrote on last edited by
    #1

    Hello,
    I'm working on the installation of qt for cross-compiling.
    For the installation I followed tho wiki:
    https://wiki.qt.io/RaspberryPi2EGLFS
    The Qt-Version is: 5.10.1 for raspberry#zero w
    On step 10 I tried to execute the following command:
    ./configure -release -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v
    But I got an error
    You don't seem to have 'make' or 'gmake' in your PATH.
    Cannot proceed.

    This is my PC:
    Ubuntu 18.04.2 LTS
    4.15.0-29-generic x86_64

    Please could somebody give me a solution?
    Thanks in advance.

    Pablo J. RoginaP 1 Reply Last reply
    0
    • K-StrK K-Str

      Hello,
      I'm working on the installation of qt for cross-compiling.
      For the installation I followed tho wiki:
      https://wiki.qt.io/RaspberryPi2EGLFS
      The Qt-Version is: 5.10.1 for raspberry#zero w
      On step 10 I tried to execute the following command:
      ./configure -release -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v
      But I got an error
      You don't seem to have 'make' or 'gmake' in your PATH.
      Cannot proceed.

      This is my PC:
      Ubuntu 18.04.2 LTS
      4.15.0-29-generic x86_64

      Please could somebody give me a solution?
      Thanks in advance.

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @K-Str as the error says, is make command available in your PATH?

      From command line you can try:

      make --version
      

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • K-StrK Offline
        K-StrK Offline
        K-Str
        wrote on last edited by K-Str
        #3

        @Pablo-J.-Rogina said in RPI installing cross-compiling:

        make --version

        Hi Pablo-J.Rogina;
        thanks for your helpful answer,
        This command make --version said no make installed.
        After I installed make,
        Built for x86_64-pc-linux-gnu
        Copyright (C) 1988-2014 Free Software Foundation, Inc.
        License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
        This is free software: you are free to change and redistribute it.
        There is NO WARRANTY, to the extent permitted by law.

        I continued with the command
        ./configure -release -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v
        and the error
        make: g++: Command not found
        Makefile:242: recipe for target 'main.o' failed
        make: *** [main.o] Error 127

        appeared.
        I installed g++
        Thread model: posix
        gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)

        Then I cleaned the everything like suggested on the end of step 10
        git clean -dfx
        and repeated step 10 again.
        When I execute the command again I got the error:
        Project ERROR: Cannot run target compiler '/home/kurt/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++'. Output:
        sh: 1: /home/kurt/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++: not found
        Maybe you forgot to setup the environment?

        Now I have no idea what to do. How can I check the setting in environment?
        The command
        env
        shows a correct HOME
        The command
        ls /home/kurt/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++
        shows the correct file.

        Now I have no idea what to do!
        Please could somebody give me a hint?

        Regards
        Kurt

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cranz32
          wrote on last edited by
          #4

          @K-Str said in RPI installing cross-compiling:

          This is my PC:
          Ubuntu 18.04.2 LTS
          4.15.0-29-generic x86_64

          since your using a 64-bit pc...it was stated at step #10:

          -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-
          
          1 Reply Last reply
          1
          • K-StrK Offline
            K-StrK Offline
            K-Str
            wrote on last edited by
            #5

            Hi cranz32,
            thank you very much for this tipp.
            But now an other question> must I also add the parameter
            -no-use-gold-linker
            because I use qt5.10.1_

            C 1 Reply Last reply
            0
            • K-StrK K-Str

              Hi cranz32,
              thank you very much for this tipp.
              But now an other question> must I also add the parameter
              -no-use-gold-linker
              because I use qt5.10.1_

              C Offline
              C Offline
              cranz32
              wrote on last edited by
              #6

              @K-Str

              must I also add the parameter
              -no-use-gold-linker
              because I use qt5.10.1_

              since your cross compiling then yes. so far i've tested https://wiki.qt.io/RaspberryPi2EGLFS upto 5.12.0. haven't tried 5.12.1 as of yet.

              1 Reply Last reply
              0
              • K-StrK Offline
                K-StrK Offline
                K-Str
                wrote on last edited by
                #7

                Hello,
                thanks to all. The installation is perfect. But....
                Now I can't debug.
                As I start debugging I get the following error:
                The selected build of GDB does not support Python scripting.
                It cannot be used in Qt Creator.

                I found something that I need to install gdb-multiarch on Ubuntu. s this correct? and where I have to setup the GDB?
                Who can give me some help?
                Kurt

                Pablo J. RoginaP 1 Reply Last reply
                0
                • K-StrK K-Str

                  Hello,
                  thanks to all. The installation is perfect. But....
                  Now I can't debug.
                  As I start debugging I get the following error:
                  The selected build of GDB does not support Python scripting.
                  It cannot be used in Qt Creator.

                  I found something that I need to install gdb-multiarch on Ubuntu. s this correct? and where I have to setup the GDB?
                  Who can give me some help?
                  Kurt

                  Pablo J. RoginaP Offline
                  Pablo J. RoginaP Offline
                  Pablo J. Rogina
                  wrote on last edited by
                  #8

                  @K-Str said in RPI installing cross-compiling:

                  I found something that I need to install gdb-multiarch on Ubuntu. s this correct? and where I have to setup the GDB?

                  could this issue be worth its own post? So not to mix topics? Thanks.

                  Upvote the answer(s) that helped you solve the issue
                  Use "Topic Tools" button to mark your post as Solved
                  Add screenshots via postimage.org
                  Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                  1 Reply Last reply
                  0
                  • K-StrK Offline
                    K-StrK Offline
                    K-Str
                    wrote on last edited by K-Str
                    #9

                    Hello,
                    yes I opened a new topic
                    https://forum.qt.io/topic/99703/gdb-error-the-selected-build-of-gdb-does-not-support-python-scripting
                    Kurt

                    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