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
Forum Update on Monday, May 27th 2025

Project ERROR: Unknown module(s) in QT: serialport

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 6.2k 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.
  • J Offline
    J Offline
    Johnathon
    wrote on 1 Aug 2015, 01:40 last edited by A Former User
    #1

    I have managed to build a static Qt kit so that I could build my application as a standalone. Please refer to the link for more detail

    • http://forum.qt.io/topic/56809/solved-building-qt-5-4-1-static-application-for-windows-7

    However when I wanted to use QtSerialPort in my project by adding the following to my project .pro file

    • QT += core gui serialport

    The QtCreator screams an error saying

    • Project ERROR: Unknown module(s) in QT: serialport

    I tried various suggestion to build the static QtSerialPort project to unavail. Just for information, the QtSerialPort .pro file is residing in C:\Qt\5.5_static\qtserialport. However the content in the .pro file is just

    lessThan(QT_MAJOR_VERSION, 5) {
    message("Cannot build current QtSerialPort sources with Qt version $${QT_VERSION}.")
    error("Use at least Qt 5.0.0 or try to download QtSerialPort for Qt4.")
    }
    requires(!winrt)
    load(qt_parts)

    which I don't think that it can be build. Does anyone has any idea on how to get QtSerialPort works with a static built Qt kit?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Johnathon
      wrote on 2 Aug 2015, 16:08 last edited by
      #2

      I managed to resolve the issue I encountered and here some information of my setup:

      • QtCreator installed to C:\Qt\5.5
      • Qt opensource installed to C:\Qt\5.5_static
      • MinGW installed to C:\MinGW

      and following will be the steps:

      1. Execute command prompt
      2. In command prompt, go to directory C:\Qt\5.5_static\qtserialport
      3. In command prompt, run the command qmake qtserialport.pro
      4. In command prompt, run the command mingw32-make
      5. Run QtCreator, followed by qmake and rebuild existing project that requires QtSerialPort

      Please ensure you have add the necessary to the PATH in order to use the qmake and mingw32-make in command prompt.

      The following setup and steps works for me and hope they will help you in your projects.

      Johnathon

      1 Reply Last reply
      1

      1/2

      1 Aug 2015, 01:40

      • Login

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