error: Project ERROR: Unknown module(s) in QT: serialport
-
wrote on 15 Mar 2022, 13:25 last edited by
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, 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.wrote on 15 Mar 2022, 13:45 last edited byHi @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.
-
wrote on 15 Mar 2022, 13:54 last edited by
You are right. I download kit 6.2.3 and problem solved. Thank you, sir!
-
wrote on 15 Mar 2022, 14:45 last edited by
You're welcome ! Please don't forget to set the status as resolved. Thanks !
1/4