工具/软件:Linux
大家好
我的板是 AM335x-EVM、SDK 是 SDK-02.00.11。
我尝试将 tslib 移植到触摸屏
我有一个问题。
TI 网站: processors.wiki.ti.com/.../Tslib
1.下载 slib
Git 克隆 github.com/.../tslib.git
2.编译
# apt-get install libtool
autogen.sh
#./configure --prefix=/usr/tslib --host=arm-linux-GNU
#制造
我无法编辑文件 config.h (注释行"#define malloc RPL_malloc"以避免此选项:"#define malloc RPL_malloc"->//#define malloc RPL_malloc")
config.h 中没有#define malloc RPL_malloc (我附加了我的 config.h 文件)
#进行安装
#导出 TSLIB_FBDEVICE=/dev/fb0
#导出 TSLIB_TSDEVICE=/dev/input/touchscreen0
#导出 TSLIB_conffile=/etc/ts.conf
3.将 tslib 复制到目标板(rootfs)
root@Ubuntu:/usr/tslib ls
bin 等 包含 lib 共享
root@Ubuntu:/usr/tslib CP -R */opt/work/trunk/BSP/AM335X/RootFileSystem/Rootfs
4.运行 ts_calibrate
#./ts_calibrate
ts_calibrate:第1行:语法错误:意外的字(预期为"))<=此错误消息
导致该语法错误的原因是什么?
如何安装 slib 是否有问题?



