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. Creator error but command line works.
Qt 6.11 is out! See what's new in the release blog

Creator error but command line works.

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 3 Posters 189 Views 2 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.
  • O Offline
    O Offline
    oldbrad
    wrote last edited by oldbrad
    #1

    I have the following issues:
    /home/brad/Qt/6.11.1/gcc_64/include/QtCore/qglobal.h:14: error: 'type_traits' file not found

    Although when I make on the command line the project builds fine.
    $ brad@Inspiron-5567:~/Qt/projects/test-qt/build/Desktop_Qt_6_11_1_Debug$ /home/brad/Qt/6.11.1/gcc_64/bin/qmake ../../test-qt.pro
    brad@Inspiron-5567:~/Qt/projects/test-qt/build/Desktop_Qt_6_11_1_Debug
    $ make
    $ ls -l test-qy
    -rwxrwxr-x 1 brad brad 32336 Jul 19 19:37 test-qt

    Which runs fine. I think some subtle configuration is missing, but I can't see it. Please help

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

      Hi and welcome to devnet,

      Did you already your kit configuration in Qt Creator ?

      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
        oldbrad
        wrote last edited by
        #3

        I do not understand your question. Did I already ?

        1 Reply Last reply
        0
        • aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote last edited by
          #4

          @oldbrad I think @SGaist meant check. Preferences > Kits and there you have several settings for compiler, Qt version etc.

          Regards

          Qt has to stay free or it will die.

          O 1 Reply Last reply
          0
          • aha_1980A aha_1980

            @oldbrad I think @SGaist meant check. Preferences > Kits and there you have several settings for compiler, Qt version etc.

            Regards

            O Offline
            O Offline
            oldbrad
            wrote last edited by oldbrad
            #5

            Followed this:
            @aha_1980 said in Creator error but command line works.:

            @oldbrad I think @SGaist meant check. Preferences > Kits and there you have several settings for compiler, Qt version etc.

            I did something, not exactly sure what, which has FIXED the problem.. I think two things:
            1st Disabled package manager installed qmake
            2nd Did Re-detect compilers

            Magically the actual change is in the generated Makefile. CC form clang to gcc and CXX from clang++ to g++

            The moral of this tail is you can NOT install over a Linux package manager installation.

            Thanks for the help.
            Regards oldbrad (still a beginner after 60 years ;-)

            SGaistS 1 Reply Last reply
            0
            • O oldbrad

              Followed this:
              @aha_1980 said in Creator error but command line works.:

              @oldbrad I think @SGaist meant check. Preferences > Kits and there you have several settings for compiler, Qt version etc.

              I did something, not exactly sure what, which has FIXED the problem.. I think two things:
              1st Disabled package manager installed qmake
              2nd Did Re-detect compilers

              Magically the actual change is in the generated Makefile. CC form clang to gcc and CXX from clang++ to g++

              The moral of this tail is you can NOT install over a Linux package manager installation.

              Thanks for the help.
              Regards oldbrad (still a beginner after 60 years ;-)

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote last edited by
              #6

              @oldbrad said in Creator error but command line works.:

              The moral of this tail is you can NOT install over a Linux package manager installation.

              Glad you found a solution but the rule is: you shall not install a custom build of a library, whether Qt or another one, over a distribution provided one. You could break your system doing that.

              However, nothing should prevent them from being properly co-located and used independently by your application.

              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

              • Login

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