/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就好了
离线