金牌会员
积分 1289
金钱 1289
注册时间 2014-6-15
在线时间 143 小时
1 金钱
根据“【正点原子】I.MX6U 移植Qt5.12.9 V1.0.pdf” 移植QT,整个过程都按照文档操作profile
在etc/profile里增加的内容如下:
export TSLIB_ROOT=/usr/lib/arm-tslib
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/evnet1
export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf
export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts
export QT_ROOT=/usr/lib/arm-qt
export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event1
export QT_QPA_FONTDIR=/usr/share/fonts
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
export QT_PLUGIN_PATH=$QT_ROOT/plugins
export LD_LIBRARY_PATH=$QT_ROOT/lib QT_ROOT/plugins/platforms
export QML2_IMPORT_PATH=$QT_ROOT/qml
export QT_QPA_FB_TSLIB=1
当测试QT运行的时候,终端输出如下内容,屏幕上也显示出文档中的图片:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
ts_open() failed (No such file or directory)
为什么会在终端显示出这两句话呢?这两句说明有地方设置是有问题的,改怎么解决
我来回答