找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 4484|回复: 1

交叉编译mentohust时出错

[复制链接]
发表于 2014-4-26 13:53 | 显示全部楼层 |阅读模式
路由器为tp wr703n
为ar7xx系列
照着openwrt上使用锐捷认证共享上网方法
http://www.openwrt.org.cn/bbs/fo ... &fromuid=133401
的方法进行交叉编译,结果出错
附上代码 make V=99
configure: WARNING: unrecognized options: --disable-nls
configure: loading site script /home/yjyj/openwrt/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1/include/site/mips-openwrt-linux-uclibc
checking build system type... i686-pc-linux-gnu
checking host system type... mips-openwrt-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mips-openwrt-linux-strip... mips-openwrt-linux-uclibc-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for mips-openwrt-linux-gcc... mips-openwrt-linux-uclibc-gcc
checking for C compiler default output file name...
configure: error: in `/home/yjyj/openwrt/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1/build_dir/target-mips_r2_uClibc-0.9.30.1/mentohust-0.3.1':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[3]: *** [/home/yjyj/openwrt/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1/build_dir/target-mips_r2_uClibc-0.9.30.1/mentohust-0.3.1/.configured_] Error 77
make[3]: Leaving directory `/home/yjyj/openwrt/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1/package/mentohust'
make[2]: *** [package/mentohust/compile] Error 2
make[2]: Leaving directory `/home/yjyj/openwrt/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1'
make[1]: *** [/home/yjyj/openwrt/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1/staging_dir/target-mips_r2_uClibc-0.9.30.1/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/yjyj/openwrt/OpenWrt-SDK-ar71xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1'
make: *** [world] 错误 2
求大神解答?
是交叉编译环境没有设置好吗?
按照此贴的方法设置的http://blog.csdn.net/warriorpaw/article/details/7990226
不用sdk编译提示
mystate.c: 在函数‘renewIP’中:
mystate.c:137:8: 警告: 忽略声明有 warn_unused_result 属性的‘system’的返回值 [-Wunused-result]
   CC     myconfig.o
myconfig.c: 在函数‘initConfig’中:
myconfig.c:240:8: 警告: 忽略声明有 warn_unused_result 属性的‘scanf’的返回值 [-Wunused-result]
myconfig.c:249:8: 警告: 忽略声明有 warn_unused_result 属性的‘scanf’的返回值 [-Wunused-result]
myconfig.c:252:8: 警告: 忽略声明有 warn_unused_result 属性的‘scanf’的返回值 [-Wunused-result]
myconfig.c: 在函数‘getAdapter’中:
myconfig.c:479:8: 警告: 忽略声明有 warn_unused_result 属性的‘scanf’的返回值 [-Wunused-result]
myconfig.c: 在函数‘checkRunning’中:
myconfig.c:632:11: 警告: 忽略声明有 warn_unused_result 属性的‘freopen’的返回值 [-Wunused-result]
myconfig.c:634:11: 警告: 忽略声明有 warn_unused_result 属性的‘freopen’的返回值 [-Wunused-result]
   CC     mentohust.o
mentohust.c: 在函数‘pcap_handle’中:
mentohust.c:182:11: 警告: 忽略声明有 warn_unused_result 属性的‘system’的返回值 [-Wunused-result]
   CCLD   mentohust
make[2]:正在离开目录 `/home/yjyj/openwrt/mt/mentohust-read-only/src'
Making all in po
make[2]: 正在进入目录 `/home/yjyj/openwrt/mt/mentohust-read-only/po'
make mentohust.pot-update
make[3]: 正在进入目录 `/home/yjyj/openwrt/mt/mentohust-read-only/po'
sed -e '/^#/d' remove-potcdate.sin > t-remove-potcdate.sed
mv t-remove-potcdate.sed remove-potcdate.sed
if test -n '' || test 'http://code.google.com/p/mentohust/issues/list' = '@'PACKAGE_BUGREPORT'@'; then \
           msgid_bugs_address=''; \
         else \
           msgid_bugs_address='http://code.google.com/p/mentohust/issues/list'; \
         fi; \
         /usr/bin/xgettext --default-domain=mentohust --directory=.. \
           --add-comments=TRANSLATORS: --keyword=_ --keyword=N_ --from-code=UTF-8 \
           --files-from=./POTFILES.in \
           --copyright-holder='HustMoon Studio' \
           --msgid-bugs-address="$msgid_bugs_address"
test ! -f mentohust.po || { \
           if test -f ./mentohust.pot; then \
             sed -f remove-potcdate.sed < ./mentohust.pot > mentohust.1po && \
             sed -f remove-potcdate.sed < mentohust.po > mentohust.2po && \
             if cmp mentohust.1po mentohust.2po >/dev/null 2>&1; then \
               rm -f mentohust.1po mentohust.2po mentohust.po; \
             else \
               rm -f mentohust.1po mentohust.2po ./mentohust.pot && \
               mv mentohust.po ./mentohust.pot; \
             fi; \
           else \
             mv mentohust.po ./mentohust.pot; \
           fi; \
         }
make[3]:正在离开目录 `/home/yjyj/openwrt/mt/mentohust-read-only/po'
test ! -f ./mentohust.pot || \
           test -z "en.gmo" || make en.gmo
make[3]: 正在进入目录 `/home/yjyj/openwrt/mt/mentohust-read-only/po'
/usr/bin/msgmerge --update en.po mentohust.pot
.......... 完成。
rm -f en.gmo && /usr/bin/msgfmt -c --statistics -o en.gmo en.po
99 条已翻译消息.
make[3]:正在离开目录 `/home/yjyj/openwrt/mt/mentohust-read-only/po'
touch stamp-po
make[2]:正在离开目录 `/home/yjyj/openwrt/mt/mentohust-read-only/po'
make[2]: 正在进入目录 `/home/yjyj/openwrt/mt/mentohust-read-only'
make[2]:正在离开目录 `/home/yjyj/openwrt/mt/mentohust-read-only'
make[1]:正在离开目录 `/home/yjyj/openwrt/mt/mentohust-read-only'
PS 交叉编译应该从哪儿 学起呢?
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
 楼主| 发表于 2014-4-29 18:39 | 显示全部楼层
唉   木有大神么????
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-9-27 22:16

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表