error: Project ERROR: Unknown module(s) in QT: serialport
Solved
Qt 6
-
Hi, I'm a new fish in Qt. I have bumped into the error "error: Project ERROR: Unknown module(s) in QT: serialport".
I googled it, many answers say Qt have not finish the serialport for Qt6 yet. But I found a version in maintenace tool.
I have downloaded it, but I can't find it under my Qt documents(just in examples and docs which not helped) .
I'm using Qt Creator 6.0.2 and kit 6.2.2 BTW.
Thank you for cilcking in. -
Hi @Roma13,
First, you need to add the module in your pro of cmake file.
pro:QT += serialport
CMakeLists.txt:find_package(Qt6 REQUIRED SerialPort)
Secondly, if you compile using kit 6.2.2, you probably need to download Qt Serial Port module for version 6.2.2 or using kit 6.2.3.