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. "Project ERROR: Unknown module(s) in QT: serialport" when using Qt VS Tools on Visual Studio 2022
Forum Updated to NodeBB v4.3 + New Features

"Project ERROR: Unknown module(s) in QT: serialport" when using Qt VS Tools on Visual Studio 2022

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 528 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.
  • Q Offline
    Q Offline
    qtbuzz
    wrote on last edited by
    #1

    I've been through a lot of other questions Unknown module(s) in QT: XXX, but I cannot find the solution for my problem.

    I'm using version 6.6.1_msvc2019_64 on Windows with Qt VS Tools.
    alt text

    QtSerialPort library is installed (check Qt Maintenance Tool).

    alt text
    Using QtCreator, Qt examples like terminal work nice and smooth and so does a custom test project of mine created with a blank QMainWindow and just a adding QT += serialport to the .pro file.

    However, when adding QtSerialPort module in Visual Studio 2022 project
    alt text

    I get the qmake error mentioned in the title and reported below:

    Build started...
    1>------ Build started: Project: MyProject , Configuration: Release x64 ------
    1>Reading Qt configuration (C:/Qt/6.5.0/msvc2019_64/bin/qmake)
    1>MyProject.vcxproj : error : ERROR running qmake
    1>MyProject.vcxproj : error : qmake: (C:/Qt/6.5.0/msvc2019_64/bin/qmake)
    1>MyProject.vcxproj : error : qmake: $PWD=C:\workspace\MySolution\MyProject\x64\Release\qmake\temp
    1>MyProject.vcxproj : error : qmake: Project ERROR: Unknown module(s) in QT: serialport
    1>MyProject.vcxproj : error : qmake: Error creating .vcxproj file
    1>MyProject.vcxproj : error :
    1>Done building project "MyProject.vcxproj" -- FAILED.
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    ========== Elapsed 00:01.349 ==========
    

    Note: cross-post on SO

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

      Hi and welcome to devnet,

      There's a discrepancy between the installation you show and the qmake output. You are showing that you have the module installed of Qt 6.6.1 but your error is showing 6.5.0. Did you forgot to install the module for that version of Qt ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Q 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi and welcome to devnet,

        There's a discrepancy between the installation you show and the qmake output. You are showing that you have the module installed of Qt 6.6.1 but your error is showing 6.5.0. Did you forgot to install the module for that version of Qt ?

        Q Offline
        Q Offline
        qtbuzz
        wrote on last edited by
        #3

        @SGaist You're very right indeed. Thank you!
        I'm just realising now that if I select the Qt version from "Extensions --> Qt VS Tools --> Qt Versions", the same version is not updated in Project "Settings --> Qt Project Settings --> Qt Installation".

        Just out of curiosity, is it a bug or a feature?

        Christian EhrlicherC 1 Reply Last reply
        0
        • Q qtbuzz has marked this topic as solved on
        • Q qtbuzz

          @SGaist You're very right indeed. Thank you!
          I'm just realising now that if I select the Qt version from "Extensions --> Qt VS Tools --> Qt Versions", the same version is not updated in Project "Settings --> Qt Project Settings --> Qt Installation".

          Just out of curiosity, is it a bug or a feature?

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

          @qtbuzz said in "Project ERROR: Unknown module(s) in QT: serialport" when using Qt VS Tools on Visual Studio 2022:

          feature

          I would say because you can have more than one Qt version installed.

          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