/etc/profile环境设置
============================================
# cat /etc/profile
export PATH="/bin:/sbin:/usr/bin:/usr/sbin"
if [ "$PS1" ]; then
if [ "`id -u`" -eq 0 ]; then
export PS1='# '
else
export PS1='$ '
fi
fi
export EDITOR='/bin/vi'
# Source configuration files from /etc/profile.d
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
unset i
export PATH=$PATH:/usr/lib
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export LD_PRELOAD=/usr/lib/libts.so
export QT_QPA_FB_TSLIB=1
export QT_QPA_EGLFS_TSLIB=1
export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event0
export QT_QPA_FONTDIR=/usr/lib/fonts
export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/qt/plugins
============================================
log信息
============================================
# ts_calibrate
xres = 800, yres = 480
Took 10 samples...
Top left : X = 64 Y = 65
Took 10 samples...
Top right : X = 984 Y = 55
Took 10 samples...
Bot right : X = 975 Y = 548
Took 17 samples...
Bot left : X = 52 Y = 559
Took 16 samples...
Center : X = 526 Y = 311
-0.183105 0.759773 0.016088
-1.450867 0.008753 0.770148
Calibration constants: -12000 49792 1054 -95084 573 50472 65536
# ./qt_test
No such plugin for spec "tslib:/dev/input/event0"
============================================
tslib感觉是正常可用,Qt显示和运行都正常,就是pushbutton点击后没反应
最近编辑记录 小果果 (2020-12-01 14:35:58)
离线
可能是Qt没有编译吗tslib插件
离线
结案了,重新编译了一把Qt就好了
离线
结案了,重新编译了一把Qt就好了
博主你好,请问有没有遇到这个问题
This application failed to start because it could not find or load the Qt platform plugin "linuxfb"in "/opt/lib/plugins/".
我的 QT_QPA_PLATFORM /QT_QPA_PLATFORM_PLUGIN_PATH都有设置对应路径,也将他的依赖库都放到/opt/lib路径下面运行之后一直报这个错误
离线