How to install Tslib plugin for qt 5.7
I write a QT program for raspberry PI . I use tslib for touch and EGLFS on QT.
I install Tslib on RPI and the ts_calibrate and ts_test is working properly , but there is not any plugin for tslib. I want to apply tslib plugin for rotating touch axis.
How can I install plugin for tslib?
How did you install Qt on your Pi ?
I install it from ubuntu through cross compiling .
Finally , my problem is solved :-)
I read this link
[link text] (https://wiki.qt.io/Native_Build_of_Qt_5.4.1_on_a_Raspberry_Pi)
after installing new Tslib from github I read "Readme.md" from tslib directory and optimize my environment variable like below.
export QT_DEBUG_PLUGINS="1" export QT_QPA_EGLFS_DISABLE_INPUT="1" export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS="/dev/input/event0:rotate=90" export QT_QPA_GENERIC_PLUGINS="evdevtouch:/dev/input/event0"
so the touch is working good. my mistake is at "QT_QPA_GENERIC_PLUGINS " phrase . I use
and getting segmentation fault error.I dont know why evdevtouch is working instead of tslib!!
Do you know about it?
There is one problem , Although I calibrate the touchscreen via ts_calibrate but I think the qt code does not follow the calibration points . I use this environment variable for tslib.
export TSLIB_FBDEVICE=/dev/fb0 export TSLIB_CONSOLEDEVICE=/dev/tty export TSLIB_TSDEVICE=/dev/input/event0 export TSLIB_CONFFILE=/etc/ts.conf export TSLIB_CALIBFILE=/etc/pointercal export TSLIB_PLUGINDIR=/usr/local/lib/ts
Some button on the different place of the touchscreen is touched so hardly.
What can I do for it?
AFAIK, if you are using evdev, it won't use tslib to manage input.