码迷,mamicode.com
首页 > 其他好文 > 详细

触摸屏测试:Tslib

时间:2016-07-15 06:33:30      阅读:239      评论:0      收藏:0      [点我收藏+]

标签:

触摸屏测试:Tslib(配置了一天,心累)

总结:网上有许多关于tslib的步骤/错误总结,所以这里只是提几个我觉得比较棘手的问题:

 

1,我明明给arm-linux-gcc配置了环境变量,为什么还是提示我说:arm-none-linux-gnueabi-gcc common not found?

我配置的时候是配置用户环境变量,而不是全局,改成全局这个提示就没有再出现了:就是说 往/etc/profile里面写 PATH (记得log out 或者重启一下)

 

2,输入make 会出现了这个错误:call to ‘__open_missing_mode‘ declared with attribute error: open with O_CREAT in second argument needs 3 arguments;

具体提示如下:

 

In file included from /home/simonlin/simon_tool_software/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/include/fcntl.h:217,
                 from /home/simonlin/simon_tool_software/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/include/sys/fcntl.h:1,
                 from ts_calibrate.c:20:
In function ‘open‘,
    inlined from ‘main‘ at ts_calibrate.c:227:
/home/simonlin/simon_tool_software/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode‘ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
In function ‘open‘,
    inlined from ‘main‘ at ts_calibrate.c:229:
/home/simonlin/simon_tool_software/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode‘ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[2]: *** [ts_calibrate.o] Error 1
make[2]: Leaving directory `/home/simonlin/Downloads/tslib/tests‘
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/simonlin/Downloads/tslib‘
make: *** [all] Error 2

解决方法,没有找到直接的解决方法,这是另外一篇类似的错误:

http://www.cnblogs.com/xuqiang/archive/2010/03/02/1953729.html

 

也是提示:open with O_CREAT in second argument needs 3 arguments

 

根据上文博主的经验,我将ts_calibrate.c 中的open函数从两个参数输入变成三个,save之后输入命令make,终于在目标文件夹出现了4个文件夹,之前一直死活出不来bin文件夹

触摸屏测试:Tslib

标签:

原文地址:http://www.cnblogs.com/simonlin/p/5672203.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!