zoukankan      html  css  js  c++  java
  • 触摸屏测试: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文件夹

  • 相关阅读:
    caffe常用层: batchNorm层和scale层
    简述configure、pkg-config、pkg_config_path三者的关系
    python删除list中元素的三种方法
    Leetcode 872. Leaf-Similar Trees
    Leetcode 508. Most Frequent Subtree Sum
    Leetcode 572. Subtree of Another Tree
    Leetcode 894. All Possible Full Binary Trees
    Leetcode 814. Binary Tree Pruning
    Leetcode 557. Reverse Words in a String III
    python 多维list声明时的小问题
  • 原文地址:https://www.cnblogs.com/simonlin/p/5672203.html
Copyright © 2011-2022 走看看