EGalax touchscreen and Qt5
-
Hi Sid
Thanks for ur above post i succesfully compile the tslib plugin.
but my problem cannot be solved :
Still touchscreen cannot be respond my Qt application.I am using Raspberry Pi board:
Qt5 Installed:
Raspbian Os
egalax touch screen also installed
tslib i.e libqtslibplugin.so in my qtinstalled path
I also removed libqevtouchplugin.so in the generic path -
Hi Tannyveer,
Are you able to run some TSLIB tools like:- ts_test
- ts_calibration
If above tools work fine then you can say that TSLIB is successfully installed.
Then we will look into the integration of TSLIB with QT5
-
hi sid
i compiled tslib on my host system then copy the liqtslibplugin.so in my target raspberri pi system i.e in Qt_installed/plugins/generic folder.
ts_test
ts-calibration commands
was not found in my taget system. -
Hello Tannyveer,
TSLIB is a separate from QT, you need to download the source code and then compile it. Download it from here:
http://sourceforge.net/projects/tslib.berlios/ -
hi sid
whether tslib compile in my target system ie my rsapberry pi or compile in my host system i am confused if it is in host system im already compiled. -
Hi Tannyveer,
If you have already compiled tslib library for RPI then there must be some tools generated along with the compilation. Check "tests" folder. If those tools like ts_test, ts_calibrate works fine then that means your tslib is working fine.If you compiled TSLIB in host system then transfer the required tools to RPI and then try running them.
Thanks
-
when i run
./ts_test and ./ts_calibration i got the following error
libts-1.0.so.0: cannot open shared object file: No such file or directory
in my RPI -
Ok then copy these libraries into your RPI and then add the path to environment variable LD_LIBRARY_PATH.
If you generated the tslib in your host pc, then they get generated inside /usr/local.
Copy these .so files to your RPI and add the path to LD_LIBRARY_PATH.
let me know what happens next.
-
i add the path and i got the illegal operation error when i run ./ts_test
-
Have you set the following environment variables:
@
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/ttyS1
export TSLIB_PLUGINDIR=/home/Sid/tslib_plugins
export TSLIB_CONFFILE=/home/Sid/ts.conf
@also try running ts_calibrate. Do you get same error?
Also some more tools are present like ts_print, ts_print_raw.
Try running them as well..
-
hi sid
so sadly i got the same error when i test the ts-test ts_calibrate ts_print ts_print-raw tools -
Dear Tannyveer,
I think may be its is related to some permission issue. I am not sure.
Try changing the permission of all the related files.Also check with ldd command whether all the libraries needed are found by the required binaries or not.
i have not come across any such error :( -
Dear Sid
sorry for the late post i am out of station from three days, right now iam in my workbench still i got the same errors i want to compile the tslib once again
now my question is iam compiling tslib on my host system contains ubuntu 14.04 32-bit version. Is any problem encounter with this desktop version.
another queston after install tslib in my host system i transfered the install files using gftp.this may be any troubled for my tslib.please answers these questions so that i vl try again to compile the tslib. give me the procedure from first steps to compile the tslib
-
So you are cross compiling. I mean to say you are compiling the source code in Ubuntu and then deploying the binaries in the RPI?
If this is the case then you are doing cross compilation. Is it true?
-
yep sid
-
Dear Sid,
Is there any method along with this. please post me Sid -
Do following steps:
@
export ac_cv_func_malloc_0_nonnull=yes
export CC=powerpc-wrs-linux-gnu-ppc_603e-glibc_std-gcc
export CXX=powerpc-wrs-linux-gnu-ppc_603e-glibc_std-g++
./autogen.sh
./configure --host=powerpc-603e-linux --target=powerpc --prefix=/usr/local
make
make install
@Make necessary changes in line number 2,3,5 as per your RPI tool chain. If you get a problem about an undefined reference to rpl_malloc, then only you need to do line number 1.
-
dear sid
i installed the tslib on my rpi when i run ts_test and ts_calibrate
i got the followingcouldnot load loaded pthres
No raw modules
ts_config :Sucess -
Copy the pthres.so from your host pc to target pc(RPI)
In host pc it is located at : tslib-1.0/plugins/.libs -
Hai sid,
I got the same errors even though i coped the pthe.so file on my rpi lib . i loss my patinece and i stoped my work. i think egalax cannot be work for rpi with qt5 application.
Thank you very much for your support.