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. RaspberryPi2EGLFS tutorial fail at Step 10 "./configure"

RaspberryPi2EGLFS tutorial fail at Step 10 "./configure"

Scheduled Pinned Locked Moved Unsolved QtonPi
raspberry eglfsconfigure toolcross-compilemac os x
13 Posts 4 Posters 3.5k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #4

    Hi,

    Did you install the toolchain for Linux ?

    Because from the looks of it, you are trying to run a Linux executable on your macOS machine which you can't.

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

    O 1 Reply Last reply
    1
    • SGaistS SGaist

      Hi,

      Did you install the toolchain for Linux ?

      Because from the looks of it, you are trying to run a Linux executable on your macOS machine which you can't.

      O Offline
      O Offline
      OutsourcedGuru
      wrote on last edited by
      #5

      @SGaist I followed the tutorial.

      0_1546276227592_Screen Shot 2018-12-31 at 9.09.56 AM.png

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

        What do you get if you call file /Users/me/project/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ ?

        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
        • O Offline
          O Offline
          OutsourcedGuru
          wrote on last edited by
          #7

          @SGaist said in RaspberryPi2EGLFS tutorial fail at Step 10 "./configure":

          file /Users/me/project/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++

          ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.15, stripped
          
          1 Reply Last reply
          0
          • P Offline
            P Offline
            PatZim
            wrote on last edited by PatZim
            #8

            I am also stuck at the exact same step.

            I followed the Tutorial https://wiki.qt.io/RaspberryPi2EGLFS to be able to crosscompile for Raspbian Buster (on RPi3) using the Qt Creator on my local mac (10.13.6).

            @OutsourcedGuru @SGaist I also dis the steps in the above mentioned tutorial just like @OutsourcedGuru summarized it. So far everything seemed to go fine, but I am also stuck at step 10 of the tutorial.

            Also tried bother versions, the 32bit and 64bit. The output from the file command gives for the two binaries gives:

            for the 64bit version:

            ./tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++: 
            ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=b2f00203f8231a1bf4923f20c03fac5cf1d0a239, stripped
            

            and for the 32big version:

            ./tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++: 
            ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.15, stripped
            

            Any advice on how to proceed would be much appreciated. I am not really sure what to make out of this "environment error", because it's the first time I try to setup Qt to cross-compile for an RPi.

            @OutsourcedGuru it is quite a while ago since your last post. Could you solve the problem somehow?

            Pablo J. RoginaP 1 Reply Last reply
            0
            • P PatZim

              I am also stuck at the exact same step.

              I followed the Tutorial https://wiki.qt.io/RaspberryPi2EGLFS to be able to crosscompile for Raspbian Buster (on RPi3) using the Qt Creator on my local mac (10.13.6).

              @OutsourcedGuru @SGaist I also dis the steps in the above mentioned tutorial just like @OutsourcedGuru summarized it. So far everything seemed to go fine, but I am also stuck at step 10 of the tutorial.

              Also tried bother versions, the 32bit and 64bit. The output from the file command gives for the two binaries gives:

              for the 64bit version:

              ./tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++: 
              ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=b2f00203f8231a1bf4923f20c03fac5cf1d0a239, stripped
              

              and for the 32big version:

              ./tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++: 
              ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.15, stripped
              

              Any advice on how to proceed would be much appreciated. I am not really sure what to make out of this "environment error", because it's the first time I try to setup Qt to cross-compile for an RPi.

              @OutsourcedGuru it is quite a while ago since your last post. Could you solve the problem somehow?

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

              @PatZim said in RaspberryPi2EGLFS tutorial fail at Step 10 "./configure":

              but I am also stuck at step 10 of the tutorial

              could you please show your exact error message?

              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
              • P Offline
                P Offline
                PatZim
                wrote on last edited by PatZim
                #10

                Hello @Pablo-J-Rogina , thanks for the reply.

                That same as reported above by @OutsourcedGuru
                When I run the ./configure command in step 10 of the tutorial

                ./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 -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v -no-use-gold-linker
                

                I get the same environment error:

                Project ERROR: Cannot run target compiler '/Users/<username>/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++'. Output:
                ===================
                ===================
                Maybe you forgot to setup the environment?
                

                Edit: I found another report here: https://stackoverflow.com/questions/49018581/issue-with-qt-and-cross-compiling-from-mac-to-raspbian-stretchrpi3/54502633

                There is an answer saying:
                The cross-compilation toolchain Raspberry Pi provides is probably built for Linux host systems.
                You need to use a toolchain built for macOS hosts, such as this: https://github.com/Illuminux/ct-ng-linaro-mac

                As that sounds like it would make sense, I tried to install the "crosstool-NG Linaro for Mac OS X" which it is referring to. But that unfortunately fails, as it's using an outdated brew package it seems (Error: homebrew/dupes was deprecated.) - Last commit was also 5 years ago.

                So, I am now trying to find a more recent toolchain-howto for mac os to build for RPi.

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

                  You really should consider using a virtual machine with Linux on it. It's going to be faster to setup.

                  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
                  • P Offline
                    P Offline
                    PatZim
                    wrote on last edited by PatZim
                    #12

                    @SGaist

                    Thanks for the reply. I was in deed also considering to run a VM with a Linux.
                    If there is no other solution I guess I will try that.

                    However, I am wondering if there is no native solution for Macs. MacOS as well as Raspberries are quite common nowadays, therefor I would expect that there should be a way to get this to work somehow.

                    Pablo J. RoginaP 1 Reply Last reply
                    0
                    • P PatZim

                      @SGaist

                      Thanks for the reply. I was in deed also considering to run a VM with a Linux.
                      If there is no other solution I guess I will try that.

                      However, I am wondering if there is no native solution for Macs. MacOS as well as Raspberries are quite common nowadays, therefor I would expect that there should be a way to get this to work somehow.

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

                      @PatZim said in RaspberryPi2EGLFS tutorial fail at Step 10 "./configure":

                      I am wondering if there is no native solution for Macs

                      As you figured out yourself, I guess it all just comes down to get a cross-compiler for ARM that runs on Mac...

                      But I bet using the VM with Linux is a good approach, given that lots of guides/tutorials are based on such platform

                      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

                      • Login

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