qt creator not making a pro file
-
had to reinstall os, dont know what version of qt creator i was using, but old version made a .pro file, and current version make a .txt file
it is giving error for #include <QSerialPort>
https://doc.qt.io/qt-6/qserialport.html, says
Header: #include <QSerialPort>
CMake: find_package(Qt6 REQUIRED COMPONENTS SerialPort)
target_link_libraries(mytarget PRIVATE Qt6::SerialPort)
qmake: QT += serialportwithout a .pro file, where to put "QT += serialport"?
"target_link_libraries(mytarget PRIVATE Qt6::SerialPort)" is giving error with mytarget, tried project name for "mytarget", but gives error.
-
@micha_eleric "target_link_libraries(mytarget PRIVATE Qt6::SerialPort)" was in wrong spot in CMakeList.txt
mytarget error fixed, but how to make a .pro file is still unknown -
The recommended build system for Qt 6 is CMake, but you can still use QMake (with
*.pro
file instead ofCMakeLists.txt
).
You need to change your project to QMake Project. -