构建buildroot文件系统并移植开发板的有关问题
问题1:报错没安装python
(1)安装python36
wget http://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz
tar -xvzf Python-3.6.4.tgz
cd Python-3.6.4
./configure --with-ssl
make
sudo make install
(2)安装python运行环境
sudo apt-get install python
sudo apt-get install python-dev(编译外部模块文件使用的)
sudo apt-get install python-pip
sudo apt-get install libxml*
sudo apt-get install net-tools
sudo apt-get install lsof
重新编译;
问题3:kernal版本:expected4.1.x got 4.0x
说明buildroot配置有问题
解决办法:
在system confi…把kerna版本从4.1x改为4…0x
问题4:
qt.qpa.plugin: Could not find the Qt platform plugin “eglfs” in “”
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
解决办法:使用builtroot的qmake重新编译 运行工程时:./serial -platform linuxfb
问题5:QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root’问
export XDG_RUNTIME_DIR=/usr/lib/
export RUNLEVEL=3
在etc/profile加上
问题6:Failed to load the library: udev, supported version(s): 1 and 0
解决办法:
在buildroot配置时,system configration 里面选择 eudev 不要选mdev
重新make
最后运行交叉编译好的历程:
无报错说明运行成功
问题四:字体库缺失
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.
QFontDatabase: Cannot find font directory /usr/lib/fonts.
把字体库放在lib/fonts(新建),并设置环境变量
export QT_QPA_FONTDIR=/lib/fonts
字体文件在我的资源里面,需要自取。