移植qt库,编译文件报错Info: creating stash file /home/rbing/QT/uart/.qmake.stash Project ERROR: Unknown module(s) in QT: serialport
rbing@ouc:~/QT/uart$ /home/rbing/linux/tool/buildroot-2022.02.9/output/host/usr/bin/qmake
Info: creating stash file /home/rbing/QT/uart/.qmake.stash Project ERROR: Unknown module(s) in QT: serialport
在buildroot中meunconfig中导航到 Target packages >> Libraries >> Qt5,然后找到并启用 qt5serialport
clean并make
回到qt文件中重新引用qmake编译即会产生Makefile
qt执行文件报错显示QFontDatabase: Cannot find font directory /usr/lib/fonts
即缺乏字库
QFontDatabase: Cannot find font directory /usr/lib/fonts.
Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig.
编辑**/etc/profile** 在末尾添加 export QT_QPA_FONTDIR=/usr/share/fonts 。没有fonts文件夹的请自行创建
将 windows 下的(路径 C:\Windows\Fonts)下的中文字库放到/usr/share/fonts/目录下就可以了。