参考:http://www.myir-tech.com/bbs/thread-7174-1-1.html
参考这个帖子可以正常编译QT5.4 。
编译好以后 我允许了 历程。
# /opt/qt5.4.1/examples/svg/embedded/fluidlauncher/fluidlauncher
QTsLibMouseHandler "tslib" "/dev/input/event1"
使用 hexdump /dev/input/event1 触摸的确是有的 有数据输出 。
那么我的问题在哪里。。。。贴一下我的/etc/profile
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CONFFILE=/opt/tslib/etc/ts.conf
export TSLIB_PLUGINDIR=/opt/tslib/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export LD_LIBRARY_PATH=/lib:/usr/lib:/opt/tslib/lib:/opt/qt5.4.1/lib
export PATH=/bin:/sbin:/usr/bin/:/usr/sbin:/opt/tslib/bin
export QT_QPA_PLATFORM_PLUGIN_PATH=/opt/qt5.4.1/plugins
export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
export QT_QPA_FONTDIR=/opt/qt5.4.1/lib/fonts
export QT_QPA_GENERIC_PLUGINS=tslib:$TSLIB_TSDEVICE
寂寞寂寞就好。。。
离线
校准失败,有反应 很不准
离线
离线
问题也不知道算不算解决了 我tslib换了一个版本 解决了。。。
离线
@晕哥
晕哥,我使用qt5.4.1的程序发现点击触摸屏没有反应
(1)执行命令/opt/tslib/bin/ts_calibrate的结果如下
xres = 480, yres = 272
Took 4 samples...
Top left : X = 2996 Y = 1998
Took 4 samples...
Top right : X = 2695 Y = 2492
Took 3 samples...
Bot right : X = 2126 Y = 696
Took 4 samples...
Bot left : X = 2409 Y = 2423
Took 2 samples...
Center : X = 3125 Y = 1692
677.600098 -0.102749 -0.087760
527.730103 -0.127696 -0.027290
Calibration constants: 44407200 -6733 -5751 34585320 -8368 -1788 65536
(2)执行cat /dev/input/event1命令
我点击触摸屏会有一些乱码出现呢
(3)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 PAGER='/bin/more '
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
unset i
done
source /etc/init.d/rcS
#tslib configure
export TSLIB_ROOT=/opt/tslib
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf
export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_CONSOLEDEVICE=none
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TSLIB_ROOT/lib
#qt-4.8.7
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CONFFILE=/opt/tslib/etc/ts.conf
export TSLIB_PLUGINDIR=/opt/tslib/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export LD_LIBRARY_PATH=/lib:/usr/lib:/opt/tslib/lib:/home/gec/v3s/qt5.4.1-arm/lib
export PATH=/bin:/sbin:/usr/bin/:/usr/sbin:/opt/tslib/bin
export QT_QPA_PLATFORM_PLUGIN_PATH=/home/gec/v3s/qt5.4.1-arm/plugins
export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
export QT_QPA_FONTDIR=/home/gec/v3s/qt5.4.1-arm/lib/fonts
export QT_QPA_GENERIC_PLUGINS=tslib:$TSLIB_TSDEVICE
export QWS_MOUSE_PROTO=Tslib:/dev/input/event1
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opti/tslib/lib:/home/gec/v3s/qt5.4.1-arm/lib:/usr/lib
(3)可是我运行qt程序时就没有反应了输出结果:
# ./music_download
QTsLibMouseHandler "tslib" "/dev/input/event1"
请晕哥帮忙分析下。
离线