Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Unknown module(s) in QT: core gui concurrent
Forum Updated to NodeBB v4.3 + New Features

Unknown module(s) in QT: core gui concurrent

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 4 Posters 789 Views
  • 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.
  • M Offline
    M Offline
    Melu
    wrote on last edited by
    #1

    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:
    Screenshot 2022-02-24 at 23.25.31.png .

    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.

    Christian EhrlicherC 1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      What version of qmake is being run to build your projects?

      qmake -v
      
      1 Reply Last reply
      1
      • Axel SpoerlA Offline
        Axel SpoerlA Offline
        Axel Spoerl
        Moderators
        wrote on last edited by
        #3

        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)
        

        Software Engineer
        The Qt Company, Oslo

        1 Reply Last reply
        0
        • M Melu

          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:
          Screenshot 2022-02-24 at 23.25.31.png .

          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.

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @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?

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          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