tslib移植出现的小问题

2014-11-24 10:44:18 ? 作者: ? 浏览: 0

1. 编译:
$export CC=/work/ebook/arm-linux-4.1.1/bin/arm-linux-gcc //toolchain路径
$./autogen.sh //生成config文件
$export PATH=$PATH:/work/ebook/arm-linux-4.1.1/bin/
$echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
$./configure --cache-file=arm-linux.cache --enable-inputapi=no --prefix=/work/ts_lib_bin --host=arm-linux
$make


2.设备上运行
一些路径设置:
#export QWS_MOUSE_PROTO=TPanel:/dev/input/event0
#export T_ROOT=/mnt/ts_lib_bin
#export LD_LIBRARY_PATH=$T_ROOT/lib
#export TSLIB_CONSOLEDEVICE=none
#export TSLIB_FBDEVICE=/dev/fb0
#export TSLIB_TSDEVICE=/dev/input/event0
#export TSLIB_CALIBFILE=$T_ROOT/etc/pointercal
#export TSLIB_CONFFILE=$T_ROOT/etc/ts.conf
#export TSLIB_PLUGINDIR=$T_ROOT/lib/ts
#./ts_calibrate


问题1:
./ts_calibrate: error while loading shared libraries: libts-0.0.so.0: cannot open shared object file: Error 40
./ts_calibrate: error while loading shared libraries: libts-0.0.so.0: cannot ope
n shared object file: No such file or directory
解决办法:
#echo $LD_LIBRARY_PATH //查看lib路径,
#export LD_LIBRARY_PATH=$T_ROOT/lib


问题2:
ts_open: No such file or directory
解决办法:
#export TSLIB_TSDEVICE=/dev/input/event0 //触摸屏设备路径


问题3:
Couldnt open tslib config file: No such file or directory ts_config: Illegal seek
解决办法:
#export TSLIB_CONFFILE=$T_ROOT/etc/ts.conf


问题4:
Couldnt load module pthres
No raw modules loaded.
ts_config: Success
解决办法:
#export TSLIB_PLUGINDIR=$T_ROOT/lib/ts
问题5:
No raw modules loaded.
Ts_config: No such file or directory
解决办法:
修改$T_ROOT/etc/ts.conf, 至少放开一个module_raw, 并去掉前面空格


问题6:


通过autogen生成过配置文件:configure,移到另一台机器,重新运行./configure出错,解决办法:


重新设置gcc路径,如:


$export CC=/work/ebook/arm-linux-4.1.1/bin/arm-linux-gcc //toolchain路径


$rm arm-linux.cache


$export PATH=$PATH:/work/ebook/arm-linux-4.1.1/bin/
$echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
$./configure --cache-file=arm-linux.cache --enable-inputapi=no --prefix=/work/ts_lib_bin --host=arm-linux
$make


$make install


-->

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: