Touch screen test: tslib

Source: Internet
Author: User

Touch screen test: Tslib (configured for the day, Heart tired)

Summary: There are a lot of steps/mistakes on the web about Tslib, so here are just a few things I think are tricky:

1, I clearly to ARM-LINUX-GCC configuration environment variable, why still prompt me to say: ARM-NONE-LINUX-GNUEABI-GCC common not found?

When I configure the user environment variables, rather than the global, changed to global this hint will not appear again: that is, to/etc/profile inside the PATH (remember log out or restart)

2, enter make this error occurs: Call to ' __open_missing_mode ' declared with attribute Error:open with o_creat in second argument needs 3 arguments;

Specific tips are as follows:

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

Workaround, no immediate workaround is found, this is another similar error:

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

Also tip: Open with o_creat in second argument needs 3 arguments

Based on the experience of the blogger above, I will change the open function in ts_calibrate.c from two parameter input to three, save after the input command make, finally in the target folder appeared 4 folders, before the dead or alive out of the bin folder

Touch screen test: tslib

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.