主题 : skipping incompatible /usr/local/arm。。。so when searching for错误 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 53578
精华: 0
发帖: 8
金钱: 40 两
威望: 8 点
贡献值: 0 点
综合积分: 16 分
注册时间: 2011-08-11
最后登录: 2012-03-01
楼主  发表于: 2012-02-23 11:37

 skipping incompatible /usr/local/arm。。。so when searching for错误

小弟在编译程序时加入自己的库,路径也改了,可是为什么编译的时候一直说找不到库呢?错误如下:
arm-linux-gcc -L. -lortp -lpthread -lhcnetsdk -o rtp_enc_cam.out main.o vpu_io.o vpu_lib.o vpu_util.o RtpManage.o enc.o capture.o display.o fb.o
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: skipping incompatible ./libhcnetsdk.so when searching for -lhcnetsdk
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: skipping incompatible /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/libhcnetsdk.so when searching for -lhcnetsdk
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: skipping incompatible /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libhcnetsdk.so when searching for -lhcnetsdk
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: skipping incompatible /usr/local/arm/3.4.1/arm-linux/bin/../lib/libhcnetsdk.so when searching for -lhcnetsdk
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: skipping incompatible /usr/local/arm/3.4.1/arm-linux/bin/../../arm-linux/lib/libhcnetsdk.so when searching for -lhcnetsdk
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: cannot find -lhcnetsdk
collect2: ld returned 1 exit status
make: *** [rtp_enc_cam.out] 错误 1
求大侠们帮帮忙啊!搞了好几天了!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2012-02-23 12:38
你的libhcnetsdk.so是ARM的?可以用file命令确认
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2012-02-24 13:04

 回 5楼(easonchanel) 的帖子

你可以用你现在使用的arm-linux-gcc编译出一个ARM的libhcnetsdk.so来。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2012-02-24 14:11

 回 7楼(easonchanel) 的帖子

那除非你能变出一个ARM版本的来了...
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."