路由器为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 交叉编译应该从哪儿 学起呢?
请不要胡乱输入以及粘贴、复制等方式灌水
请尊重作者、并共同维护网站的正常阅读,否则账户将会被限制发帖、回帖,并且积分可能会被清零,站内短信以及阅读权限等都会受到影响,谢谢。
具体限制方式:https://www.right.com.cn/forum/thread-8307840-1-1.html
|