Creator error but command line works.
-
I have the following issues:
/home/brad/Qt/6.11.1/gcc_64/include/QtCore/qglobal.h:14: error: 'type_traits' file not foundAlthough 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-qtWhich runs fine. I think some subtle configuration is missing, but I can't see it. Please help
-
Hi and welcome to devnet,
Did you already your kit configuration in Qt Creator ?
-
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 compilersMagically 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 ;-) -
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 compilersMagically 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 ;-)@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.