找回密码
 立即注册
img_loading
智能检测中

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888广告投放联系QQ68610888
查看: 6277|回复: 4

编译openwrt出现的问题

[复制链接]
发表于 2016-7-11 23:28 | 显示全部楼层 |阅读模式
# configuration written to .config
#
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
  Building modules, stage 2.
  MODPOST 63 modules
make[5]: Leaving directory '/home/pointer/work/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.10.49'
touch /home/pointer/work/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.10.49/.modules
make -C image compile TARGET_BUILD=
make[5]: Entering directory '/home/pointer/work/openwrt/openwrt/target/linux/ramips/image'
make[5]: 'compile' is up to date.
make[5]: Leaving directory '/home/pointer/work/openwrt/openwrt/target/linux/ramips/image'
make[4]: Leaving directory '/home/pointer/work/openwrt/openwrt/target/linux/ramips'
make[3]: Leaving directory '/home/pointer/work/openwrt/openwrt/target/linux'
make[2]: Leaving directory '/home/pointer/work/openwrt/openwrt'
make[2]: Entering directory '/home/pointer/work/openwrt/openwrt'
rm -rf /home/pointer/work/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips
make[2]: Leaving directory '/home/pointer/work/openwrt/openwrt'
make[2]: Entering directory '/home/pointer/work/openwrt/openwrt'
make[2]: *** No rule to make target 'package/compile'.  Stop.
make[2]: Leaving directory '/home/pointer/work/openwrt/openwrt'
package/Makefile:170: recipe for target '/home/pointer/work/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile' failed
make[1]: *** [/home/pointer/work/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/pointer/work/openwrt/openwrt'
/home/pointer/work/openwrt/openwrt/include/toplevel.mk:171: recipe for target 'world' failed
make: *** [world] Error 2

各位朋友 ,帮忙看看 对openwrt非常感兴趣 但是卡在这里好久了 一直没进展


只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2016-7-12 08:38 | 显示全部楼层
把环境从新配置一下 然后重新git 最好早上下 或者挂virtual**

点评

非常感谢 今晚下班回去试一试  详情 回复 发表于 2016-7-13 09:43
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2016-7-12 11:48 | 显示全部楼层
make[2]: *** No rule to make target 'package/compile'.  Stop.

没有正常配置config文件。

进入的openwrt目录:
0、把要编译的软件及包更新到最新
git pull
./scripts/feeds update -a
./scripts/feeds install -a

1、清理一下编译环境,删除曾经的残留
make clean

2、根据自身需求,配置config
make defconfig
make menuconfig
make kernel_menuconfig

3、开整(记得挂好virtual**,要下载各种包)
make V=99

也可以尝试我自己用的无限循环编译脚本,直至ok :)

#!/bin/sh

while true
do
        make V=99
        if (($?== 0)) exit 0;
        sleep 5
done

点评

非常感谢 今晚下班回去试一试  详情 回复 发表于 2016-7-13 09:43
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-7-13 09:43 | 显示全部楼层
fiby2000 发表于 2016-7-12 11:48
make[2]: *** No rule to make target 'package/compile'.  Stop.

没有正常配置config文件。

非常感谢 今晚下班回去试一试
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-7-13 09:43 | 显示全部楼层
pop2009 发表于 2016-7-12 08:38
把环境从新配置一下 然后重新git 最好早上下 或者挂virtual**

非常感谢 今晚下班回去试一试
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛

只谈技术、莫论政事!切勿转播谣言!为了你也为了他人。
只谈技术、莫论政事!(点击见详情) 切记不要随意传播谣言,把自己的日子过安稳了就行,为了自己好也为了大家好。 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。

查看 »

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

GMT+8, 2025-6-19 08:18

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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

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