这个问题应该是/etc/profile的环境变量在/etc/qtenv.sh执行之前没有导出来导致的,我把在/etc/profile中的设置放到了/etc/qtenv.sh中就没有这个错误提示了。关于/etc/profile和/etc/qtenv.sh的执行顺序还得再研究一下 。
L
liuyongguang 发布的帖子
-
回复: T507 tslib移植出现:Couldn't open tslib config file : No such file or directory
-
T507 tslib移植出现:Couldn't open tslib config file : No such file or directory
T507移植Qt后再移植tslib,在/etc/profile中设置环境变量——
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/lib/ts
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export LD_PRELOAD=/lib/libts.so在qtenv.sh脚本中配置——
export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event1
export QT_QPA_PLATFORM=eglfs
export QT_QPA_GENERIC_PLUGINS=tslib
export QT_QPA_FB_TSLIB=1但是目标板开机后出现tslib错误——
Couldn't open tslib config file : No such file or directory
ts_config() failed (No such file or directory)看了下tslib相关文件的路径感觉没问题,ts.conf中 "module_raw input" 前面“#”也去掉了——
Uncomment if you wish to use the linux input layer event interface
module_raw input
请教下各位这种错误是哪个地方引起的?Qt的问题还是tslib移植的问题?