5 tslib 1.21 make 失败,求教,error: no include path in which to search for stdint.h

make  all-recursive

make[1]: Entering directory '/home/book/app-learn/11_input/02_tslib/tslib-1.21'

Making all in etc

make[2]: Entering directory '/home/book/app-learn/11_input/02_tslib/tslib-1.21/etc'

make[2]: Nothing to be done for 'all'.

make[2]: Leaving directory '/home/book/app-learn/11_input/02_tslib/tslib-1.21/etc'

Making all in src

make[2]: Entering directory '/home/book/app-learn/11_input/02_tslib/tslib-1.21/src'

  CC       ts_attach.lo

  CC       ts_close.lo

  CC       ts_config.lo

  CC       ts_error.lo

  CC       ts_fd.lo

  CC       ts_load_module.lo

  CC       ts_open.lo

  CC       ts_parse_vars.lo

  CC       ts_read.lo

  CC       ts_read_raw.lo

  CC       ts_option.lo

  CC       ts_setup.lo

  CC       ts_version.lo

  CC       ts_config_filter.lo

  CC       ts_get_eventpath.lo

  CC       ts_strsep.lo

  CCLD     libts.la

make[2]: Leaving directory '/home/book/app-learn/11_input/02_tslib/tslib-1.21/src'

Making all in plugins

make[2]: Entering directory '/home/book/app-learn/11_input/02_tslib/tslib-1.21/plugins'

  CC       linear.lo

  CCLD     linear.la

  CC       dejitter.lo

In file included from /home/book/100ask_imx6ull-qemu/ToolChain-6.2.1/lib/gcc/arm-linux-gnueabihf/6.2.1/include/stdint.h:9:0,

                 from dejitter.c:31:

/home/book/100ask_imx6ull-qemu/ToolChain-6.2.1/arm-linux-gnueabihf/libc/usr/include/stdint.h:9:26: error: no include path in which to search for stdint.h

 # include_next <stdint.h>

                          ^

dejitter.c: In function 'dejitter_limit':

dejitter.c:346:16: error: 'intptr_t' undeclared (first use in this function)

  switch ((int)(intptr_t)data) {

                ^~~~~~~~

dejitter.c:346:16: note: each undeclared identifier is reported only once for each function it appears in

dejitter.c:346:25: error: expected ')' before 'data'

  switch ((int)(intptr_t)data) {

                         ^~~~

dejitter.c:334:75: warning: unused parameter 'data' [-Wunused-parameter]

 static int dejitter_limit(struct tslib_module_info *inf, char *str, void *data)

                                                                           ^~~~

Makefile:988: recipe for target 'dejitter.lo' failed

make[2]: *** [dejitter.lo] Error 1

make[2]: Leaving directory '/home/book/app-learn/11_input/02_tslib/tslib-1.21/plugins'

Makefile:488: recipe for target 'all-recursive' failed

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory '/home/book/app-learn/11_input/02_tslib/tslib-1.21'

Makefile:397: recipe for target 'all' failed

make: *** [all] Error 2

请先 登录 后评论

3 个回答

百问网-张老师
擅长:嵌入式开发

按照开发手册的tslib交叉编译部分进行操作,将头文件和库文件放进工具链的目录下

请先 登录 后评论

attachments-2021-07-8QPsGZWB60e6897e32b0e.png

请先 登录 后评论
星星之火 - 嵌入式工程师
擅长:答疑助手

make之前的操作都列一下吧


请先 登录 后评论

相似问题