Phytec中国的wiki
support@phytec.cn
热线:0755-61802110-803
build/conf/local.conf 添加以下qtserialport模块内容:
IMAGE_INSTALL_append = " qtserialport qtserialport-dev qtserialport-mkspecs" TOOLCHAIN_TARGET_TASK_append = " qtserialport qtserialport-dev qtserialport-mkspecs"
修改后编译带sdk的镜像
bitbake arago-core-tisdk-image
编译完成后在sdk/arago-2017.06-armv7a-linux-gnueabi-tisdk.target.manifest 能找到以下内容
libqt5serialport-dev armv7ahf-neon 5.7.1+git0+0b9f41c28c-r0 libqt5serialport-mkspecs armv7ahf-neon 5.7.1+git0+0b9f41c28c-r0 libqt5serialport5 armv7ahf-neon 5.7.1+git0+0b9f41c28c-r0
安装sdk后能找到以下关于qtserialport模块相关内容
nicola@ubuntu:/opt/arago-2017.06$ find . -name "*SerialPort*" ./sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtSerialPort ./sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtSerialPort/QtSerialPortVersion ./sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtSerialPort/QtSerialPort ./sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtSerialPort/QtSerialPortDepends ./sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtSerialPort/QSerialPort ./sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtSerialPort/QSerialPortInfo ./sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtSerialPort/5.7.1/QtSerialPort ./sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/libQt5SerialPort.prl ./sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/libQt5SerialPort.so.5.7 ./sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/cmake/Qt5SerialPort ./sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/cmake/Qt5SerialPort/Qt5SerialPortConfig.cmake ./sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/cmake/Qt5SerialPort/Qt5SerialPortConfigVersion.cmake ./sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/libQt5SerialPort.so.5 ./sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/libQt5SerialPort.so.5.7.1 ./sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/libQt5SerialPort.so ./sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/pkgconfig/Qt5SerialPort.pc
sdk已经安装了qtserialport对应的库了。
qtserialport测试demo:
git clone https://github.com/qt/qtserialport.git
Overview
Content Tools
Tasks