Not able to fine qtSerialPort module in QT6
-
Hi ,
Following is QT environment details
QT Creator version used is: 6.2.4
QT Cmake version: 3.21.1I have updated CMakeList.txt file with below to include serial in QT6
find_package(Qt6 COMPONENTS SerialPort REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::SerialPort)Still not able to find the serial port module. Following is the error
Could NOT find Qt6SerialPort (missing: Qt6SerialPort_DIR)
CMake Error at CMakeLists.txt:14 (find_package):
Found package configuration file:C:/Qt/6.2.4/mingw_64/lib/cmake/Qt6/Qt6Config.cmake
but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
FOUND. Reason given by package:Failed to find Qt component "SerialPort".
Expected Config file at
"C:/Qt/6.2.4/mingw_64/lib/cmake/Qt6SerialPort/Qt6SerialPortConfig.cmake"
does NOT existPlease do the needful
Regards,
Hareesha