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
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 3 Posters 2.7k 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.
  • V Offline
    V Offline
    victor wang
    wrote on last edited by A Former User
    #1

    Hi, i'm using qt5.5 on my computer.
    And when i qmake my .pro file will show this error.

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

    And this is my .profile

    QT       += core gui
    QT       += network
    QT       += ftp
    QT       += http
    QT       += serialport
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    #CONFIG += C++11
    CONFIG += staticlib
    
    CONFIG += console
    CONFIG -= app_bundle
    
    TARGET = work
    TEMPLATE = app
    
    
    SOURCES += main.cpp \
    mainwindow.cpp \
        touch.cpp \
        gsensor.cpp \
        auxbutton.cpp \
        powerbutton.cpp \
        usbotg.cpp \
        battery.cpp \
        panel.cpp \
        audio.cpp \
        wifi.cpp \
        lan.cpp \
        record.cpp \
        process.cpp \
        hpattern.cpp \
        lodlog.cpp \
        version.cpp \
        led.cpp \
        screen_data.cpp \
        lightsensor.cpp \
        thread_com.cpp
    
    
    HEADERS  += mainwindow.h \
    audio.h \
        process.h \
        auxbutton.h \
        battery.h \
        gsensor.h \
        hpattern.h \
        lan.h \
        record.h \
        led.h \
        lightsensor.h \
        lodlog.h \
        panel.h \
        powerbutton.h \
        screen_data.h \
        thread_com.h \
        touch.h \
        usbotg.h \
        version.h \
        wifi.h
    
    FORMS    += mainwindow.ui
    

    Why is this happened?
    Please help!

    jsulmJ 1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! Maybe this other thread helps: Project ERROR: Unknown module(s) in QT: serialport

      1 Reply Last reply
      1
      • V victor wang

        Hi, i'm using qt5.5 on my computer.
        And when i qmake my .pro file will show this error.

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

        And this is my .profile

        QT       += core gui
        QT       += network
        QT       += ftp
        QT       += http
        QT       += serialport
        greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
        #CONFIG += C++11
        CONFIG += staticlib
        
        CONFIG += console
        CONFIG -= app_bundle
        
        TARGET = work
        TEMPLATE = app
        
        
        SOURCES += main.cpp \
        mainwindow.cpp \
            touch.cpp \
            gsensor.cpp \
            auxbutton.cpp \
            powerbutton.cpp \
            usbotg.cpp \
            battery.cpp \
            panel.cpp \
            audio.cpp \
            wifi.cpp \
            lan.cpp \
            record.cpp \
            process.cpp \
            hpattern.cpp \
            lodlog.cpp \
            version.cpp \
            led.cpp \
            screen_data.cpp \
            lightsensor.cpp \
            thread_com.cpp
        
        
        HEADERS  += mainwindow.h \
        audio.h \
            process.h \
            auxbutton.h \
            battery.h \
            gsensor.h \
            hpattern.h \
            lan.h \
            record.h \
            led.h \
            lightsensor.h \
            lodlog.h \
            panel.h \
            powerbutton.h \
            screen_data.h \
            thread_com.h \
            touch.h \
            usbotg.h \
            version.h \
            wifi.h
        
        FORMS    += mainwindow.ui
        

        Why is this happened?
        Please help!

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @victor-wang How did you install Qt?
        Are you sure you're calling qmake from your Qt 5.5?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        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