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. rpi3 device missing
Forum Updated to NodeBB v4.3 + New Features

rpi3 device missing

Scheduled Pinned Locked Moved Solved Installation and Deployment
qt5.6cross compileraspberry pi
10 Posts 3 Posters 8.1k Views 1 Watching
  • 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
    Mark81
    wrote on last edited by
    #1

    I'm trying to cross-compile Qt5.6 for Raspberry Pi 3 as described here:

    https://wiki.qt.io/RaspberryPi2EGLFS

    the doc says to configure qtbase as follow:

    ./configure -release -opengl es2 -device linux-rasp-pi2-g++ [...]

    but changing the device to linux-rasp-pi3-g++ leads to this error:

    Error: No device matching 'linux-rasp-pi3-g++'

    What is the right way to to this?

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

      Hi,

      Do you mean the linux-rpi3-g++ mkspecs ?

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

      M A 2 Replies Last reply
      1
      • SGaistS SGaist

        Hi,

        Do you mean the linux-rpi3-g++ mkspecs ?

        M Offline
        M Offline
        Mark81
        wrote on last edited by
        #3

        @SGaist Yes, I didn't imagine it because it's different than rpi2!

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

          Well, instinctively I would have follow the same pattern as you did before checking.

          I don't know why the naming for the RPi3 doesn't follow the others.

          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
          • SGaistS SGaist

            Hi,

            Do you mean the linux-rpi3-g++ mkspecs ?

            A Offline
            A Offline
            Avtansh Sharma
            wrote on last edited by
            #5

            @SGaist ./configure -top-level -release -opengl es2 -device linux-rpi3-g++ -device-option CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf -sysroot /home/fs/raspi/sysroot -opensource -confirm-license -make libs -prefix usr/local/qt5pi -extprefix /home/fs/raspi/qt5pi -hostprefix /home/fs/raspi/qt5 -v
            Creating qmake...
            make: Nothing to be done for 'first'.
            Command line: -release -opengl es2 -device linux-rpi3-g++ -device-option CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf -sysroot /home/fs/raspi/sysroot -opensource -confirm-license -make libs -prefix usr/local/qt5pi -extprefix /home/fs/raspi/qt5pi -hostprefix /home/fs/raspi/qt5 -v
            ERROR: No device matching 'linux-rpi3-g++'.

            linux-rpi3-g++ is not working on qt 5.9

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

              Try with linux-rasp-pi3-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
              1
              • A Offline
                A Offline
                Avtansh Sharma
                wrote on last edited by
                #7

                @SGaist said in rpi3 device missing:

                linux-rasp-pi3-g++

                ./configure -top-level -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf -sysroot /home/fs/raspi/sysroot -opensource -confirm-license -make libs -prefix usr/local/qt5pi -extprefix /home/fs/raspi/qt5pi -hostprefix /home/fs/raspi/qt5 -v
                Creating qmake...
                make: Nothing to be done for 'first'.
                Command line: -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf -sysroot /home/fs/raspi/sysroot -opensource -confirm-license -make libs -prefix usr/local/qt5pi -extprefix /home/fs/raspi/qt5pi -hostprefix /home/fs/raspi/qt5 -v

                This is the Qt Open Source Edition.

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

                Running configuration tests...
                Checking for valid makespec...

                • cd /home/user/Downloads/qt-everywhere-opensource-src-5.9.1/config.tests/common/verifyspec && /home/user/Downloads/qt-everywhere-opensource-src-5.9.1/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared console single_arch" "QMAKE_CFLAGS += --sysroot=/home/fs/raspi/sysroot" "QMAKE_CXXFLAGS += --sysroot=/home/fs/raspi/sysroot" "QMAKE_LFLAGS += --sysroot=/home/fs/raspi/sysroot" -early "CONFIG += cross_compile" /home/user/Downloads/qt-everywhere-opensource-src-5.9.1/qtbase/config.tests/common/verifyspec

                Project ERROR: Compiler /usr/bin/arm-linux-gnueabihfg++ not found. Check the value of CROSS_COMPILE -device-option
                Note: Also available for Linux: linux-clang linux-icc

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

                Still not working

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

                  Seriously, did you even try to understand the error message ?

                  /usr/bin/arm-linux-gnueabihfg++ doesn't exist on your system hence the error message. It's likely /usr/bin/arm-linux-gnueabihf-g++ thus you are missing the final - in your CROSS_COMPILE statement.

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

                  A 1 Reply Last reply
                  2
                  • SGaistS SGaist

                    Seriously, did you even try to understand the error message ?

                    /usr/bin/arm-linux-gnueabihfg++ doesn't exist on your system hence the error message. It's likely /usr/bin/arm-linux-gnueabihf-g++ thus you are missing the final - in your CROSS_COMPILE statement.

                    A Offline
                    A Offline
                    Avtansh Sharma
                    wrote on last edited by Avtansh Sharma
                    #9

                    @SGaist

                    I already have it

                    user@KELLGGNLPTP0232:~$ arm-linux-gnueabihf-g++
                    arm-linux-gnueabihf-g++: fatal error: no input files
                    compilation terminated.

                    user@KELLGGNLPTP0232:~$ which arm-linux-gnueabihf-g++
                    /usr/bin/arm-linux-gnueabihf-g++

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      Avtansh Sharma
                      wrote on last edited by
                      #10

                      Here is the catch

                      you have to use arm-linux-gnueabihf-'' instead of arm-linux-gnueabihf.

                      @SGaist thanks for your help

                      1 Reply Last reply
                      1

                      • Login

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