|
在i686上成功编译并安装了openobex-1.0.1,openobex-apps-1.0.0和obexftp-0.10.7,
在arm9上也成功交叉编译了openobex-1.0.1,openobex-apps-1.0.0,并能运行相关命令..
可是在交叉编译obexftp-0.10.7时,遇到了一个问题------
/usr/local/software/obexftp-0.10.7/obexftp/client.c:143: undefined reference to `OBEX_ObjectAddHeader'
/usr/local/software/obexftp-0.10.7/obexftp/client.c:150: undefined reference to `OBEX_ObjectAddHeader'
......
/usr/local/software/obexftp-0.10.7/cobexbfb/cobex_bfb.c:197: undefined reference to `OBEX_CustomDataFeed'
/usr/local/software/obexftp-0.10.7/cobexbfb/cobex_bfb.c:225: undefined reference to `OBEX_CustomDataFeed'
collect2: ld returned 1 exit status
这是编译时提示的错误.( CC=arm-linux-gcc ./configure --target=arm-linux --host=i686 --build=arm-linux ; make)
可是,,,在arm-linux-gcc的include下有个obex.h,这个头文件里都定义了错误中所指的那些函数,,,可是在源码中竟然没找到obex.c!!!!!! 所以就出现了上面的错误!!!
奇怪的是,在主机上编译的时候顺利的通过!!!!
前面装的openobex-1.0.1中也有obex.h和obex.c,而且openobex-apps-1.0.0和obexftp-0.10.7都倚赖于openobex-1.0.1!!!
各位大虾,,,帮我分析分析这是什么原因??
不甚感谢!!!!!! |
|