• 触摸屏测试:Tslib


    触摸屏测试: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文件夹

  • 相关阅读:
    第三章感想
    第二章感想
    第一章感想
    第9章 硬件抽象层:HAL
    第10章 嵌入式linux的调试技术
    第8章 蜂鸣器驱动
    第七章 I/O
    第六章 编写Linux驱动程序
    第五章 S3C6410
    源代码的下载和编译
  • 原文地址:https://www.cnblogs.com/simonlin/p/5672203.html
Copyright © 2020-2023  润新知