Helping in calibrating etp-4500ug for working in RPI3
-
Hi and welcome to devnet,
As silly as it may sound, run ts_calibrate through a debugger to see what's going wrong.
-
Hi and Thanks you for reply
I connect to raspberry through ssh and run ts_calibrate and get the "Segmentation fault" message .
Recently I use below variable for TSLIBexport LD_LIBRARY_PATH=/usr/local/qt5pi/lib export PATH=/usr/local/qt5pi/bin:$PATH # hides mouse cursor export QT_QPA_EGLFS_HIDECURSOR=1 # enables tslib plugin for touch screen export QT_QPA_GENERIC_PLUGINS=Tslib # disables evdev mouse input (to avoid getting duplicated input from tslib AND evdev) export QT_QPA_EGLFS_DISABLE_INPUT=1 export TSLIB_FBDEVICE=/dev/fb0 export TSLIB_CONSOLEDEVICE=none export TSLIB_TSDEVICE=/dev/input/by-id/`ls /dev/input/by-id/ | grep "eGalax"` export TSLIB_CONFFILE=/etc/ts.conf export TSLIB_CALIBFILE=/etc/pointercal export TSLIB_PLUGINDIR=/usr/lib/arm-linux-gnueabihf/ts0
But with the same error "Segmentation fault" ...
Regards,
tictactoe -
Like I wrote before, run it through the debugger. You can install gdb on your Pi.
-
I install QT5.7 on ubuntu on vmware and cross compile it to the Pi and I can debug my program through it. Do you mean this?
-
I got what you say . But is a new project for me :-)
I want to solve this problem easier than this. -
@tictactoe If you really do not want to use a debugger (this is actually something a programmer should learn) you can add qDebug() << "..." to your code at the places where you think the problem occurs. This can help to find out where the crash happens. But it isn't really easier than just using a debugger, which isn't rocket science.
-
I dont have any problem during on the running of my program . The only problem is the swapping the axes of X,Y of the touch controller.
I want to solve it -
finally I cant run ts_calibrate and save calibration point in the /etc/pointercal .
The below list is the last updated of environment variable for tslib and eglfsexport QT_QPA_PLATFORM=eglfs
export QT_QPA_EGLFS_TSLIB=1
export QT_QPA_FB_DISABLE_INPUT=1
export QT_QPA_EGLFS_TOUCHSCREEN_PARAMETERS=/dev/input/event0:invertx=1
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_CONSOLEDEVICE=/dev/tty
export TSLIB_TSDEVICE=/dev/input/by-id/ls /dev/input/by-id/ | grep "eGalax"
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_PLUGINDIR=/usr/local/lib/tsI dont know about the "QT_QPA_GENERIC_PLUGINS" variable.
I have a problem of inverting the X axis in my QT program that run on RPI3 yet
how can I solve this?Regards,
tictactoe -
Does look good yes
-
I dont know how to debug my qt program with gdb. Can you give me link for this?
-
It's the same as any other program. Note that you can remote debug from Qt Creator. It's explained in the Launching the Debugger chapter of Qt Creator's documentation.