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



  • 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!



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


  • Moderators

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.