tslib 交叉编译问题

按照老师的方法交叉编译tslib,在开发板上测试正常,在ubuntu虚拟机上也在工具链内拷贝了头文件和库文件,交叉编译应用代码时提示错误如下:
arm-poky-linux-gnueabi-gcc -march=armv7ve -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/opt/myir-imx-fb/4.1.15-2.0.1/sysroots/cortexa7hf-neon-poky-linux-gnueabi -o ts_read ts_read.c
/tmp/cchzGYeX.o: In function main': ts_read.c:(.text+0x2c): undefined reference to ts_setup’
ts_read.c:(.text+0x78): undefined reference to ts_read' ts_read.c:(.text+0xac): undefined reference to ts_close’
collect2: error: ld returned 1 exit status
make: *** [Makefile:42: ts_read] Error 1
应该是没找到相关的代码。用的自己的交叉工具链。

用的自己的交叉编译工具链的话没办法帮你确定为题了。可以确认一下头文件和库文件的位置移动得对吗,也有可能就是编译工具得问题。