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. Qt5 cross-compilation to raspberry pi3 - sh: tools/...../arm-linux-gnueabihf-g++: not found

Qt5 cross-compilation to raspberry pi3 - sh: tools/...../arm-linux-gnueabihf-g++: not found

Scheduled Pinned Locked Moved Solved Installation and Deployment
cross compileraspberry pi 3configure
6 Posts 2 Posters 2.6k 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.
  • W Offline
    W Offline
    Worly
    wrote on last edited by
    #1

    Hello,

    I am following this guide for cross-compilation to raspberry pi 3 model B.
    I followed everything step by step and came to an error on step 10.

    First I did:

    git clone git://code.qt.io/qt/qtbase.git -b 5.10

    Next I did, to get my branch to 5.10.1 from tag v5.10.1:

    git checkout -b 5.10.1 v5.10.1

    Next I did:

    ./configure -release -opengl es2 -device linux-rasp-pi3-g++ -no-use-gold-linker -device-option CROSS_COMPILE=/home/worly/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot /home/worly/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix /home/worly/raspi/qt5pi -hostprefix /home/worly/raspi/qt5 -v

    It was running for about a minute, when this error came out:

    Output:
    ===================
    sh: 1: /home/worly/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++: not found
    ===================
    Maybe you forgot to setup the environment?

    I navigated to that folder using terminal and that file is there...

    pwd
    /home/worly/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin

    ls
    arm-linux-gnueabihf-addr2line
    arm-linux-gnueabihf-gfortran
    arm-linux-gnueabihf-ar
    arm-linux-gnueabihf-gprof
    arm-linux-gnueabihf-as
    arm-linux-gnueabihf-ld
    arm-linux-gnueabihf-c++
    arm-linux-gnueabihf-ld.bfd
    arm-linux-gnueabihf-c++filt
    arm-linux-gnueabihf-ldd
    arm-linux-gnueabihf-cpp
    arm-linux-gnueabihf-ld.gold
    arm-linux-gnueabihf-ct-ng.config
    arm-linux-gnueabihf-nm
    arm-linux-gnueabihf-dwp
    arm-linux-gnueabihf-objcopy
    arm-linux-gnueabihf-elfedit
    arm-linux-gnueabihf-objdump
    arm-linux-gnueabihf-g++
    arm-linux-gnueabihf-pkg-config
    arm-linux-gnueabihf-gcc
    arm-linux-gnueabihf-pkg-config-real
    arm-linux-gnueabihf-gcc-4.8.3
    arm-linux-gnueabihf-ranlib
    arm-linux-gnueabihf-gcc-ar
    arm-linux-gnueabihf-readelf
    arm-linux-gnueabihf-gcc-nm
    arm-linux-gnueabihf-size
    arm-linux-gnueabihf-gcc-ranlib
    arm-linux-gnueabihf-strings
    arm-linux-gnueabihf-gcov
    arm-linux-gnueabihf-strip
    arm-linux-gnueabihf-gdb

    And when I try then:

    ./arm-linux-gnueabihf-g++

    It says:

    bash: ./arm-linux-gnueabihf-g++: No such file or directory

    Not sure what am I doing wrong here, I tried rebooting the machine - still not working...

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should rather call your compiler with the -v option, that will give you information about it.
      What do you get if your call ls -la in that folder ?

      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
      1
      • W Offline
        W Offline
        Worly
        wrote on last edited by
        #3

        I have -v option, if you want the complete log here is pastebin link.

        When calling ls -la in that folder I get:
        screenshot

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          What do you get if you call /home/worly/rapsi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -v ?

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

          W 1 Reply Last reply
          1
          • SGaistS SGaist

            What do you get if you call /home/worly/rapsi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -v ?

            W Offline
            W Offline
            Worly
            wrote on last edited by
            #5

            @SGaist I get this:

            bash: ./arm-linux-gnueabihf-g++: No such file or directory

            It's like Ubuntu can't find that file...

            1 Reply Last reply
            0
            • W Offline
              W Offline
              Worly
              wrote on last edited by
              #6

              I have found a solution here.
              Looks like Ubuntu couldn't run 32bit binary, but it's working now.

              1 Reply Last reply
              2

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved