现在的位置: 首页 > 常见问题 > 正文

ts_open: No such file or directory 的解决办法!

2014年08月17日 常见问题 ⁄ 共 1009字 ⁄ 字号 ts_open: No such file or directory 的解决办法!已关闭评论 ⁄ 阅读 7,848 次

在你的开发板的/etc/profile文件里添加运行tslib的环境变量(一定要放到/etc/profile,原因是export只能在当前shell和它的子shell有用,不能影响登录的shell)

#vi  /etc/profile
加入以下内容:
export TSLIB_ROOT=/usr/local/tslib
export TSLIB_TSDEVICE=/dev/input/event1(你的开发板的触摸屏设备节点!!!!!)
export TSLIB_TSEVENTTYPE=H3600
export TSLIB_CONFFILE=/usr/local/tslib/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts
#export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CALIBFILE=/mnt/disk/pointercal

export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0

#export QWS_MOUSE_PROTO=Tslib:/dev/input/event1
#export QWS_MOUSE_PROTO=TPanel:/dev/input/event1
#export QWS_MOUSE_PROTO="Tslib:/dev/input/event1 MouseMan:/dev/input/mice"
#export QWS_MOUSE_PROTO=MouseMan:/dev/input/mice
export QWS_KEYBOARD="TTY:/dev/tty1"

export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/plugins/qtopialmigrate/:$QTDIR/qt_plugins/imageformats/:$QTDIR/lib:/root/tslib/build/lib:$LD_LIBRARY_PATH

#exec /usr/local/tslib/bin/ts_calibrate  1>/dev/null 2>/dev/null

然后 source /etc/profile 就可以了

×