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. Project parsing fails between qmake 3.0 and qmake 3.1 for the same configuration
Forum Updated to NodeBB v4.3 + New Features

Project parsing fails between qmake 3.0 and qmake 3.1 for the same configuration

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
9 Posts 3 Posters 1.5k 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.
  • S Offline
    S Offline
    SomeRandomName
    wrote on last edited by
    #1

    I spent too much time trying to figure this out so I'm asking for your help.
    I use some custom mkspec to build my project through qt creator.
    I created kit with path to my custom mkspec.
    Effective qmake call is basically:
    /usr/lib/x86_64-linux-gnu/qt5/bin/qmake project.pro -spec some_spec
    On Ubuntu 16.04 and qmake 3.0 this works fine however if I use qmake 3.1 it fails with this error

    Starting: "/usr/lib/qt5/bin/qmake" project.pro -spec some_spec
    Project MESSAGE: Using rootstrap: /home/user/tizen-studio/platforms/tizen-4.0/wearable/rootstraps//wearable-4.0-device.core
    Project WARNING: qmake spec does not announce the compiler family. Guessed gcc.
    Project ERROR: Cannot run compiler '/home/user/tizen-studio/tools/arm-linux-gnueabi-gcc-6.2/bin/arm-linux-gnueabi-g++'. Output:
    ===================
    # 1 "/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/data/macros.cpp"
    ===================
    Maybe you forgot to setup the environment?
    

    My best guess is that problem is in either my spec file or qmake.
    If I run qmake -query on qmake 3.0 in my system I get:
    QMAKE_SPEC:linux-g++-64
    If I run qmake -query on qmake 3.1 in the same system I get:
    QMAKE_SPEC:linux-g++
    I'm aware that my compiler specification should be read entirely from my spec file but then why it works/fails on different qmake versions ?

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

      Hi and welcome to devnet,

      Do you have a mix of 32 and 64bit Qt installed ?
      How did you install Qt ?

      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
      • S Offline
        S Offline
        SomeRandomName
        wrote on last edited by SomeRandomName
        #3

        sudo apt-get install qt5-default and only Qt Creator through online install (no qt framework).

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

          Then how come you have two different versions of qmake on your system ?

          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
          • S Offline
            S Offline
            SomeRandomName
            wrote on last edited by SomeRandomName
            #5

            Sorry my mistake. System is ubuntu 16.04:
            qmake 3.0 was installed through sudo apt-get install qt5-default.
            qmake 3.1 was installed through online installer together with qt creator.
            I switch between qmake version by changing it in Kits->Qt version
            I also checked and on ubuntu 20.04 'sudo apt-get install qt5-default' install qmake 3.1 and this problem basically blocks my switch to new system. Installing old qmake version is not a solution.

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

              You should rather have two different kits.

              Are you sure they are setup properly ?

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

                Yes. QT creator kit doesn't report any errors and I can build successfully. I can have two kits where only difference is qmake version or one kit and just switch qmake version. Result is the same.

                1 Reply Last reply
                0
                • kkoehneK Offline
                  kkoehneK Offline
                  kkoehne
                  Moderators
                  wrote on last edited by
                  #8

                  qmake is always bound to a specific Qt version. The qmake version was last bumped for Qt 5.8, which means that your also comparing two different Qt versions, one older than Qt 5.8, and one newer...

                  Anyhow, is

                  /home/user/tizen-studio/tools/arm-linux-gnueabi-gcc-6.2/bin/arm-linux-gnueabi-g++
                  

                  actually the right compiler to use? Can you run it manually?

                  /home/user/tizen-studio/tools/arm-linux-gnueabi-gcc-6.2/bin/arm-linux-gnueabi-g++ -E "/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/data/macros.cpp"
                  

                  Director R&D, The Qt Company

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SomeRandomName
                    wrote on last edited by
                    #9

                    https://bugreports.qt.io/browse/QTBUG-89786

                    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