OpenWRT SDK Compile Package Error : Package hello is missing dependencies for the following librarie...

在OpenWRT SDK 编译 hello demo的时候出现错误:

Package hello is missing dependencies for the following libraries: libc.so.6

发现以前可以编译通过,现在编不过了,奇怪。

后来在网上找原因,有的说改 libc.provides 添加  libc.so.6

这样把编译的ipk安装到openwrt里运行时出错。

 

最后,自己发现了问题 :

我在package/hello/src下make过一下检查代码有没有问题,然后就有以下文件生成:

hello  hello.c  hello.o  Makefile

其中,hello和hello.o是我x86_64 ubuntu,这两个文件影响了openwrt sdk的编译导致报了缺少libc.so.6的错误。

 

解决:

在package/hello/src下make clean, 恢复libc.provides,然后在make V=s就可以了。

转载于:https://www.cnblogs.com/bunchen/p/4060034.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值