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. Error when trying to build Qt
Forum Updated to NodeBB v4.3 + New Features

Error when trying to build Qt

Scheduled Pinned Locked Moved Solved Installation and Deployment
11 Posts 3 Posters 3.3k Views 3 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    Take a look at the mkspec linux-arm-gnueabi-g++

    The file contains the information about the compiler, linker, etc. to use.

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

    mzimmersM 1 Reply Last reply
    0
    • Paul H.P Offline
      Paul H.P Offline
      Paul H.
      wrote on last edited by
      #3

      I just tried it with the downloaded source tarball and got the same error. I tried cloning the git repository instead and did not get the error, so you can try that. Building Qt 5 from Git

      1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Take a look at the mkspec linux-arm-gnueabi-g++

        The file contains the information about the compiler, linker, etc. to use.

        mzimmersM Offline
        mzimmersM Offline
        mzimmers
        wrote on last edited by
        #4

        @SGaist said in error when trying to build Qt:

        Hi,

        Take a look at the mkspec linux-arm-gnueabi-g++

        The file contains the information about the compiler, linker, etc. to use.

        Hi, SGaist -

        Sure enough...all the variables in the qmake.conf file are arm-linux-something.

        So...is this an error? I'm not familiar enough with that toolchain to know which is correct.

        mz

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

          Should not be an error, no, however the compiler names can easily change depending on the provider.

          Where did you get the cross-compiler from ?

          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
          • mzimmersM Offline
            mzimmersM Offline
            mzimmers
            wrote on last edited by mzimmers
            #6

            To be honest, I'm not 100% sure, but the tar file in my downloads folder suggests I got it from linaro.

            The above is incorrect. I just extracted from my linaro binary and the names seem to match what the config file expects. I'm doing more research right now, but wanted to update this to correct the error.

            1 Reply Last reply
            0
            • mzimmersM Offline
              mzimmersM Offline
              mzimmers
              wrote on last edited by
              #7

              I'm still not sure I'm translating this tutorial from Wintel to Linux correctly. Here's the command I run:

              ~/Qt/5.8/Src/configure -platform linux-g++ -xplatform linux-arm-gnueabi-g++ -release -device linux-beagleboard-g++ \
              -sysroot /opt/arm-toolchain/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf \
              -prefix /opt/QtForBBB 
              
              

              And here's the error I get:

              Project ERROR: CROSS_COMPILE needs to be set via -device-option CROSS_COMPILE=<path>
              Could not read qmake configuration file /home/mzimmers/Qt/5.8/Src/qtbase/mkspecs/devices/linux-beagleboard-g++/qmake.conf.
              Error processing project file: /home/mzimmers/Qt/5.8/Src/qt.pro
              
              

              I'm not sure what that first error is telling me. And the second line seems just wrong: that directory and file does indeed exist. Any idea what might be going on?

              Thanks.

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

                Here you have the options for cross-compilation explained.

                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
                • mzimmersM Offline
                  mzimmersM Offline
                  mzimmers
                  wrote on last edited by mzimmers
                  #9

                  Hi, SGaist -

                  I did read that page. Later in the tutorial, it says to add the CROSS_COMPILE variable as follows:

                  -device-option CROSS_COMPILE=C:/SysGCC/Beaglebone/bin/arm-linux-gnueabihf- -qt-xcb
                  

                  Obviously the path needs to be changed, so I formed it like this:

                  -device-option CROSS_COMPILE=/opt/arm-toolchain/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- \
                  -qt-xcb 
                  

                  One thing I didn't understand from the Wintel example was the purpose of the trailing "-" character on the file path. Is that possibly what's causing me trouble here?

                  Thanks.

                  PS: I suppose I should reference the tutorial I'm trying to use:

                  tutorial

                  And, step 13 doesn't seem to apply to my build. My configure file is much smaller than the one in the tutorial (as evidenced by the line numbers) and there's no condition to change.

                  1 Reply Last reply
                  0
                  • mzimmersM Offline
                    mzimmersM Offline
                    mzimmers
                    wrote on last edited by
                    #10

                    Bump. Anyone? I'm sure this is a really trivial issue, but I'm at a loss.

                    Thank you.

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

                      Small note, it was due to a missing sysroot and needed the -no-opengl switch since the linaro sysroot does not contain the OpenGL enabler for the BBB.

                      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

                      • Login

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