Missing QSerialPort files.
-
I have just loaded the latest (6.6.2) into Windows 10 but cannot compile my program which contains calls to the QSerialPort functions.
The error is failed to find the file -
Failed to find required Qt component "SerialPort".Expected Config file at
"C:/Qt/6.6.2/mingw_64/lib/cmake/Qt6SerialPort/Qt6SerialPortConfig.cmake"
does NOT existThere appears to be no support for the serial ports. Is this correct ?
-
-
OK - solved it.
I added using the maintenance tool.
Pity the use of this tool is not noted in the QSerialPort documentation.@Malcolmc said in Missing QSerialPort files.:
Pity the use of this tool is not noted in the QSerialPort documentation.
But the documentation mentions that the Qt serial port module is needed.
See:
CMakefind_package(Qt6 REQUIRED COMPONENTS SerialPort)
QMake
QT += serialport
If you don't have it, of course it doesn't work.
And whether you have installed it before,QSerialPort
can't know.
However how you install a module is described here: