./ts_calibrate error: ts_open: no such file or directory

I have a problem with mini2440. the touchscreen does not work when my application (the Qt application I mean) runs on it.
this is my output for "printenv" in mini2440:

[root@FriendlyARM bin]# ./ts_calibrate
ts_open: No such file or directory
[root@FriendlyARM bin]# printenv
TSLIB_TSDEVICE=/usr/local/tslib/lib/ts
USER=root
LD_LIBRARY_PATH=/usr/local/Qt/lib:/usr/local/tslib/lib
TSLIB_TSEVENTTYPE=INPUT
OLDPWD=/usr/local/bin
HOME=/
QTDIR=/usr/local/Qt
TSLIB_FBDEVICE=/dev/fb0
PS1=[\u@\h \W]#
TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts
TSLIB_CONSOLEDEVICE=none
LOGNAME=root
TERM=vt102
PATH=/sbin:/usr/sbin:/bin:/usr/bin
TSLIB_CONFFILE=/usr/local/tslib/etc/ts.conf
SHELL=/bin/sh
QWS_DISPLAY=LinuxFB:mmWidth=105:mmHeight=140
PWD=/usr/local/tslib/bin
QWS_MOUSE_PROTO=tslib:/dev/input/event0
TSLIB_CALIBFILE=/etc/pointercal

      

and in this directory: / dev / input => I just have two files: enevt0 and mouse
in ts.conf: uncomment the first line.
I don't know what ts_open is. where is it? or why show me this error?

i confused: (

+3


source to share


1 answer


ts_open tries to open a file stored in a variable TSLIB_TSDEVICE

.

TSLIB_TSDEVICE

must be a device to open readable sensor inputs. In your case, it should be /dev/input/event0

.



Then ts_calibrate reads the first line in ts.conf

to get module_raw xxx

. Make sure your plugin folder (/ usr / local / tslib / lib / ts) contains the plugin you are uploading module_raw

.

+3


source







All Articles