openwrt 交叉编译出错? 大神帮忙解决下

帥氣的胖紙鍋 2016-01-28 10:12:09
btget.c:228:9: warning: variable 'optquiettmo' set but not used [-Wunused-but-set-variable]
int optquiettmo = 0;
^
/home/ycmedia/project/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.8.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lcrypto
/home/ycmedia/project/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.8.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lssl
/home/ycmedia/project/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.8.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lcurl
collect2: error: ld returned 1 exit status
make: *** [libbit] Error 1

错误信息如上!
...全文
2049 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_35943363 2016-08-23
  • 打赏
  • 举报
回复
楼主请加下扣扣: 1448198944 非常感谢。关于openwrt有些问题想请教你
帥氣的胖紙鍋 2016-01-28
  • 打赏
  • 举报
回复
引用 1 楼 kinkon007 的回复:
配置里面是不是有些包没选?
帮忙看下
帥氣的胖紙鍋 2016-01-28
  • 打赏
  • 举报
回复
这个问题已经解决,但是又出现下面的问题: ^ peerexchange.c:212:0: warning: ignoring #pragma mark Peer [-Wunknown-pragmas] #pragma mark Peer Exchange Cache ^ ar rc libbt.a benc.o bts.o types.o random.o strbuf.o stream.o peer.o segmenter.o util.o bitset.o context.o bterror.o udpproto.o peerexchange.o ranlib libbt.a mips-openwrt-linux-gcc -g -Wall -I/home/ycmedia/project/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/openssl-1.0.2e/include -I/home/ycmedia/project/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/curl-7.40.0/include -I../include -DVERSION=1.06 -o -lbt -L/home/ycmedia/project/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -lcrypto -lssl -lmbedtls -lcurl /home/ycmedia/project/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libcrypto.so: warning: gethostbyname is obsolescent, use getnameinfo() instead. /home/ycmedia/project/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.8.3/../../../../mips-openwrt-linux-uclibc/lib/crt1.o:/home/ycmedia/project/openwrt/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/uClibc-0.9.33.2/libc/sysdeps/linux/mips/crt1.S:95: undefined reference to `main' 麻烦大神帮忙看下。。谢谢!
kinkon007 2016-01-28
  • 打赏
  • 举报
回复
配置里面是不是有些包没选?

679

社区成员

发帖
与我相关
我的任务
社区描述
智能路由器通常具有独立的操作系统,包括OpenWRT、eCos、VxWorks等,可以由用户自行安装各种应用,实现网络和设备的智能化管理。
linuxpython 技术论坛(原bbs)
社区管理员
  • 智能路由器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧