Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. RaspberryPi2EGLFS
Forum Updated to NodeBB v4.3 + New Features

RaspberryPi2EGLFS

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
22 Posts 2 Posters 3.4k 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.
  • M Offline
    M Offline
    MihaiJunior
    wrote on last edited by
    #5

    ./arm-linux-gnueabihf-g++
    arm-linux-gnueabihf-g++: fatal error: no input files
    compilation terminated.

    This is the result after run it in terminal.

    jsulmJ 1 Reply Last reply
    0
    • M MihaiJunior

      ./arm-linux-gnueabihf-g++
      arm-linux-gnueabihf-g++: fatal error: no input files
      compilation terminated.

      This is the result after run it in terminal.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #6

      @MihaiJunior You should rather try whole path to make sure it is correct: /home/mihai/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++

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

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MihaiJunior
        wrote on last edited by
        #7

        @jsulm said in RaspberryPi2EGLFS:

        /home/mihai/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++

        I am already in the path:
        ~/Desktop/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin$

        jsulmJ 1 Reply Last reply
        0
        • M MihaiJunior

          @jsulm said in RaspberryPi2EGLFS:

          /home/mihai/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++

          I am already in the path:
          ~/Desktop/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin$

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #8

          @MihaiJunior It's not the same path:

          /home/mihai/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++
          ~/Desktop/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin
          

          You're in Desktop but the in the compiler path there is no Desktop directory.
          So please make sure exact same path as called during configure is valid and executable.

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

          1 Reply Last reply
          0
          • M Offline
            M Offline
            MihaiJunior
            wrote on last edited by
            #9

            Result: No such file or directory
            Is there any method we can share screens and you might help me?

            jsulmJ 1 Reply Last reply
            0
            • M MihaiJunior

              Result: No such file or directory
              Is there any method we can share screens and you might help me?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #10

              @MihaiJunior said in RaspberryPi2EGLFS:

              Is there any method we can share screens and you might help me?

              No, and I'm not going to do this anyway.
              It looks like you're passing wrong path to configure:

              CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf
              

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

              1 Reply Last reply
              0
              • M Offline
                M Offline
                MihaiJunior
                wrote on last edited by
                #11

                I change it and I have the same result :(

                ./configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=home/mihai/Desktop/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
                <srcbase> = /home/mihai/Desktop/raspi/qtbase
                <bldbase> = /home/mihai/Desktop/raspi/qtbase
                <outbase> = /home/mihai/Desktop/raspi/qtbase
                Creating qmake...
                make: Nothing to be done for 'first'.
                Command line: -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=home/mihai/Desktop/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot /home/mihai/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix /home/mihai/raspi/qt5pi -hostprefix /home/mihai/raspi/qt5 -v
                Project ERROR: Cannot run target compiler 'home/mihai/Desktop/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++'. Output:

                ===================
                Maybe you forgot to setup the environment?

                jsulmJ 1 Reply Last reply
                0
                • M MihaiJunior

                  I change it and I have the same result :(

                  ./configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=home/mihai/Desktop/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
                  <srcbase> = /home/mihai/Desktop/raspi/qtbase
                  <bldbase> = /home/mihai/Desktop/raspi/qtbase
                  <outbase> = /home/mihai/Desktop/raspi/qtbase
                  Creating qmake...
                  make: Nothing to be done for 'first'.
                  Command line: -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=home/mihai/Desktop/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot /home/mihai/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix /home/mihai/raspi/qt5pi -hostprefix /home/mihai/raspi/qt5 -v
                  Project ERROR: Cannot run target compiler 'home/mihai/Desktop/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++'. Output:

                  ===================
                  Maybe you forgot to setup the environment?

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #12

                  @MihaiJunior said in RaspberryPi2EGLFS:

                  CROSS_COMPILE=home/mihai

                  you forgot / in front of home...

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

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    MihaiJunior
                    wrote on last edited by
                    #13

                    Same result...

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      MihaiJunior
                      wrote on last edited by
                      #14

                      Still unsolved, I'm open to any method that cand solve this

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        MihaiJunior
                        wrote on last edited by
                        #15

                        Update !!!:

                        I changed the command into:

                        ./configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=/home/mihai/Desktop/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

                        And now I have this result with the following error:

                        <srcbase> = /home/mihai/Desktop/raspi/qtbase
                        <bldbase> = /home/mihai/Desktop/raspi/qtbase
                        <outbase> = /home/mihai/Desktop/raspi/qtbase
                        Creating qmake...
                        make: Nothing to be done for 'first'.
                        Command line: -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=/home/mihai/Desktop/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot /home/mihai/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix /home/mihai/raspi/qt5pi -hostprefix /home/mihai/raspi/qt5 -v -no-use-gold-linker

                        This is the Qt Open Source Edition.

                        You have already accepted the terms of the Open Source license.

                        Running configuration tests...

                        • /home/mihai/Desktop/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -dumpmachine

                        arm-linux-gnueabihf
                        Checking for valid makespec...

                        • cd /home/mihai/Desktop/raspi/qtbase/config.tests/verifyspec && /home/mihai/Desktop/raspi/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/mihai/raspi/sysroot" "QMAKE_CXXFLAGS += --sysroot=/home/mihai/raspi/sysroot" "QMAKE_LFLAGS += --sysroot=/home/mihai/raspi/sysroot" -early "CONFIG += cross_compile" /home/mihai/Desktop/raspi/qtbase/config.tests/verifyspec
                        • cd /home/mihai/Desktop/raspi/qtbase/config.tests/verifyspec && MAKEFLAGS= /usr/bin/make clean && MAKEFLAGS= /usr/bin/make

                        rm -f verifyspec.o
                        rm -f *~ core *.core
                        /home/mihai/Desktop/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -marm -mthumb-interwork -mfpu=neon-vfpv4 -mtune=cortex-a7 -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/home/mihai/raspi/sysroot -O2 -std=gnu++11 -w -fPIC -I. -I/home/mihai/Desktop/raspi/qtbase/mkspecs/devices/linux-rasp-pi2-g++ -o verifyspec.o verifyspec.cpp
                        /home/mihai/Desktop/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/home/mihai/raspi/sysroot -Wl,-O1 -Wl,-rpath-link,/home/mihai/raspi/sysroot/opt/vc/lib -Wl,-rpath-link,/home/mihai/raspi/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/home/mihai/raspi/sysroot/lib/arm-linux-gnueabihf -o verifyspec verifyspec.o
                        /home/mihai/Desktop/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: cannot find crt1.o: No such file or directory
                        /home/mihai/Desktop/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: cannot find crti.o: No such file or directory
                        /home/mihai/Desktop/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: cannot find -lm
                        collect2: error: ld returned 1 exit status
                        make: *** [Makefile:69: verifyspec] Error 1
                        Note: Also available for Linux: linux-clang linux-icc

                        ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.

                        jsulmJ 1 Reply Last reply
                        0
                        • M MihaiJunior

                          Update !!!:

                          I changed the command into:

                          ./configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=/home/mihai/Desktop/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

                          And now I have this result with the following error:

                          <srcbase> = /home/mihai/Desktop/raspi/qtbase
                          <bldbase> = /home/mihai/Desktop/raspi/qtbase
                          <outbase> = /home/mihai/Desktop/raspi/qtbase
                          Creating qmake...
                          make: Nothing to be done for 'first'.
                          Command line: -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=/home/mihai/Desktop/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot /home/mihai/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix /home/mihai/raspi/qt5pi -hostprefix /home/mihai/raspi/qt5 -v -no-use-gold-linker

                          This is the Qt Open Source Edition.

                          You have already accepted the terms of the Open Source license.

                          Running configuration tests...

                          • /home/mihai/Desktop/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -dumpmachine

                          arm-linux-gnueabihf
                          Checking for valid makespec...

                          • cd /home/mihai/Desktop/raspi/qtbase/config.tests/verifyspec && /home/mihai/Desktop/raspi/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/mihai/raspi/sysroot" "QMAKE_CXXFLAGS += --sysroot=/home/mihai/raspi/sysroot" "QMAKE_LFLAGS += --sysroot=/home/mihai/raspi/sysroot" -early "CONFIG += cross_compile" /home/mihai/Desktop/raspi/qtbase/config.tests/verifyspec
                          • cd /home/mihai/Desktop/raspi/qtbase/config.tests/verifyspec && MAKEFLAGS= /usr/bin/make clean && MAKEFLAGS= /usr/bin/make

                          rm -f verifyspec.o
                          rm -f *~ core *.core
                          /home/mihai/Desktop/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -marm -mthumb-interwork -mfpu=neon-vfpv4 -mtune=cortex-a7 -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/home/mihai/raspi/sysroot -O2 -std=gnu++11 -w -fPIC -I. -I/home/mihai/Desktop/raspi/qtbase/mkspecs/devices/linux-rasp-pi2-g++ -o verifyspec.o verifyspec.cpp
                          /home/mihai/Desktop/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/home/mihai/raspi/sysroot -Wl,-O1 -Wl,-rpath-link,/home/mihai/raspi/sysroot/opt/vc/lib -Wl,-rpath-link,/home/mihai/raspi/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/home/mihai/raspi/sysroot/lib/arm-linux-gnueabihf -o verifyspec verifyspec.o
                          /home/mihai/Desktop/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: cannot find crt1.o: No such file or directory
                          /home/mihai/Desktop/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: cannot find crti.o: No such file or directory
                          /home/mihai/Desktop/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: cannot find -lm
                          collect2: error: ld returned 1 exit status
                          make: *** [Makefile:69: verifyspec] Error 1
                          Note: Also available for Linux: linux-clang linux-icc

                          ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #16

                          @MihaiJunior Is the path to sysroot correct and does it contain the sysroot?
                          ~/raspi/sysroot

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

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            MihaiJunior
                            wrote on last edited by
                            #17

                            I change it and it work and after few minutes of instalation i got this:
                            /home/mihai/Desktop/raspi/qtbase/lib/libQt5EglSupport.a(qeglplatformcontext.o): In function QEGLPlatformContext::getProcAddress(char const*)': qeglplatformcontext.cpp:(.text+0xa4): undefined reference to dlsym'
                            collect2: error: ld returned 1 exit status
                            make[5]: *** [Makefile.eglfsdeviceintegration:252: ../../../../lib/libQt5EglFSDeviceIntegration.so.5.12.5] Error 1
                            make[5]: Leaving directory '/home/mihai/Desktop/raspi/qtbase/src/plugins/platforms/eglfs'
                            make[4]: *** [Makefile:62: sub-eglfsdeviceintegration-pro-install_subtargets-ordered] Error 2
                            make[4]: Leaving directory '/home/mihai/Desktop/raspi/qtbase/src/plugins/platforms/eglfs'
                            make[3]: *** [Makefile:114: sub-eglfs-install_subtargets] Error 2
                            make[3]: Leaving directory '/home/mihai/Desktop/raspi/qtbase/src/plugins/platforms'
                            make[2]: *** [Makefile:90: sub-platforms-install_subtargets] Error 2
                            make[2]: Leaving directory '/home/mihai/Desktop/raspi/qtbase/src/plugins'
                            make[1]: *** [Makefile:844: sub-plugins-install_subtargets] Error 2
                            make[1]: Leaving directory '/home/mihai/Desktop/raspi/qtbase/src'
                            make: *** [Makefile:63: sub-src-install_subtargets] Error 2

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              MihaiJunior
                              wrote on last edited by
                              #18

                              @jsulm @Lifetime-Qt-Champion , any ideas?

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                MihaiJunior
                                wrote on last edited by
                                #19

                                On the instructions found here: https://wiki.qt.io/RaspberryPi2EGLFS , I saw this "You probably also want to add -jn option to make command, where n is a number of cores you like to use for the complication." Could this be the reason? Can someoane tell where to add this -jn and what value for n?

                                jsulmJ 1 Reply Last reply
                                0
                                • M MihaiJunior

                                  On the instructions found here: https://wiki.qt.io/RaspberryPi2EGLFS , I saw this "You probably also want to add -jn option to make command, where n is a number of cores you like to use for the complication." Could this be the reason? Can someoane tell where to add this -jn and what value for n?

                                  jsulmJ Offline
                                  jsulmJ Offline
                                  jsulm
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #20

                                  @MihaiJunior -jn will for sure not solve your issue. What it does is: compile on n CPU cores to speed up compilation. It is a parameter for make.

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

                                  1 Reply Last reply
                                  0
                                  • M Offline
                                    M Offline
                                    MihaiJunior
                                    wrote on last edited by
                                    #21

                                    @jsulm, and what can solve my issue? Sorry for having so many questions but untill this step I was able to fix everything...

                                    jsulmJ 1 Reply Last reply
                                    0
                                    • M MihaiJunior

                                      @jsulm, and what can solve my issue? Sorry for having so many questions but untill this step I was able to fix everything...

                                      jsulmJ Offline
                                      jsulmJ Offline
                                      jsulm
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #22

                                      @MihaiJunior I don't know dlsym is actually par of C lib and should be there. Maybe still something wrong with your sysroot.

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

                                      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