或在以下「Qt安装目录」找到: C:\Qt\{你的Qt版本}\Examples\{你的Qt版本}\serialport\enumerator 「相关链接」 https://doc.qt.io/qt-5/qtserialport-enumerator-example.html
qtandroidextras \ -skip qtdeclarative \ -skip qtimageformats \ -skip qtmacextras \ `#-skip qtserialport
Checking to see if the QtSerialPort module should be built... QtTest, QtWebKit, QtWebKitWidgets, QtWidgets, QtXml, QtXmlPatterns, QtDesigner, QtDBus, QtSensors, QtSerialPort Generating the C++ source for the QtSerialPort module... Generating the .pro file for the QtSerialPort module... 中可以禁掉的模块 'QtCore', 'QtAndroidExtras', 'QtDBus', 'QtGui', 'QtNetwork', 'QtNetworkAuth', 'QtSensors', 'QtSerialPort
导入库 1、在项目.pro文件中加入serialport QT += core gui QT += serialport 2、引入qt中串口通信需要的头文件 #include <QtSerialPort /QSerialPort> #include <QtSerialPort/QSerialPortInfo> 二、配置串口初始化 1、查找可用的串口。
developer-build -opensource -nomake examples -nomake tests -mp -confirm-license -opengl desktop -no-icu -skip qtserialport
qt-everywhere-opensource-src-5.6.0/qtserialbus/lib -L/home/o/qt-src/qt-opensource-src-5.6.0/qt-everywhere-opensource-src-5.6.0/qtserialport