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