最近移植tslib1.4校准,板子执行ts_calibrate时总运行不了,提示:
Couldnt open tslib config file: No such file or directory
ts_config: Illegal seek
不知何故?
我看了下ts_config.c 的函数 int ts_config(struct tsdev *ts)
有这么一段:
char *conffile;
if( (conffile = getenv("TSLIB_CONFFILE")) == NULL) {
conffile = strdup (TS_CONF);
}
f = fopen(conffile, "r");
if (!f) {
perror("Couldnt open tslib config file");
return -1;
}
这里fopen返回0 了,conffile是指向TS_CONF这个字符地址的指针,但不知TS_CONF 为何物?执行./ts_calibrate怎样算成功呢?
希望高手指点下,谢谢了。
[ 此帖被allew在2009-08-08 21:18重新编辑 ]