Unknown module(s) in QT: core gui concurrent
Solved
General and Desktop
-
Hello I am getting the above error stating that the above modules are not known. I have recently reinstalled Qt on macos. During installation I selected the following:
.
After installation, I did the following to install the mysql library:
- cd ~/Qt5.12.10/5.12.10/Src/qtbase
- ./configure -opensource -confirm-license -plugin-sql-mysql MYSQL_PREFIX=/usr/local/mysql
- cd src/plugins/sqldrivers/
- qmake -- MYSQL_PREFIX=/usr/local/mysql
- make sub-mysql
- cd mysql
- make install
However when compiling my projects I am getting the error stating:
Project ERROR: Unknown module(s) in QT: core gui concurrent
I am not sure what I am missing from the installation stage as this has always worked for me. Any help would be much appreciated.
Thanks in advance.
-
You need to spell the modules in your CMakeLists.txt with a capital letter in the beginning.
Should be something like that:find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Gui REQUIRED) find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core REQUIRED) find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Concurrent REQUIRED)
-
@Melu said in Unknown module(s) in QT: core gui concurrent:
After installation, I did the following to install the mysql library:
And why don't you follow the documentation?