基于珠海鼎芯IMX6在eglfs平台下Qt5触摸屏问题

来源:互联网 发布:丽得姿黑面膜淘宝 编辑:程序博客网 时间:2024/04/30 13:19

将已经交叉编译后的Qt5和tslib移植到imx6开发板上。


一、运行tslib下bin/ts_calibrate(五点校准)

1)出现: No raw modules loaded.
 ts_config: Success

则修改tslib下 vi etc/ts.conf

把module_raw input前的#和空格去掉

提示:空格要除掉不然校准时出现:Segmentation fault


2)出现: ts_open: No such file or directory

在/dev/input/下找到触摸板有响应的事件例如(event1)

则修改环境变量:vi /etc/proflie

export TSLIB_TSDEVICE=/dev/input/event1


二、运行在eglfs平台的Qt程序使用tslib

./xxxx -platform eglfs -plugin tslib:$TSLIBDEVICE

出现:tslib:/dev/input/event

Couldnt load module pthres 

Error configuring

修改环境变量 vi /etc/profile

export LD_PRELOAD=$TSLIB_ROOT/lib/libts.so

export QT_QPA_EGLFS_DISABLE_INPUT=1(屏蔽eglfs内置输入)


二、运行在eglfs平台的Qt程序使用tslib

./xxxx -platform eglfs -plugin tslib:$TSLIBDEVICE

1 0