找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2174|回复: 14

问个新人问题哈,怎么添加自己的软件包到menuconfig里面可以选择呢

[复制链接]
发表于 2019-12-6 13:33 | 显示全部楼层 |阅读模式
怎么编译一个带自己特有软件包的固件呢,网上找了下都是说编译三个文件然后再menuconfig里面就可以看见了,我想知道我从网上找到一个软件包的源码地址,通过./scripts/feeds -update -a 和-install 下载到了我的openwrt文件夹当中了,我该怎么弄才能在make menuconfig里面发现这个软件包呢,新人求教。
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-12-6 13:57 | 显示全部楼层
本帖最后由 tplink740n 于 2019-12-6 13:59 编辑

源码放到 package   

模板  https://github.com/Ameykyl/luci-app-koolproxyR

看     “使用方法”

点评

不行耶,进入make menuconfig里面没有我的那个包,make package/luci-app-koolproxyR/{clean,compile} V=s 换成我的包编译显示出错, time: target/linux/prereq#0.24#0.10#0.46 make[1]: Entering directory '/h  详情 回复 发表于 2019-12-6 14:35
谢谢我试试看  详情 回复 发表于 2019-12-6 14:16
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-12-6 14:16 | 显示全部楼层
tplink740n 发表于 2019-12-6 13:57
源码放到 package   

模板  https://github.com/Ameykyl/luci-app-koolproxyR

谢谢我试试看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-12-6 14:35 | 显示全部楼层
tplink740n 发表于 2019-12-6 13:57
源码放到 package   

模板  https://github.com/Ameykyl/luci-app-koolproxyR

不行耶,进入make menuconfig里面没有我的那个包,make package/luci-app-koolproxyR/{clean,compile} V=s
换成我的包编译显示出错,
time: target/linux/prereq#0.24#0.10#0.46
make[1]: Entering directory '/home/cdw/op/lede-v17.01'
make[1]: *** No rule to make target 'package/gmrender-resurrect/clean'.  Stop.
make[1]: Leaving directory '/home/cdw/op/lede-v17.01'
/home/cdw/op/lede-v17.01/include/toplevel.mk:225: recipe for target 'package/gmrender-resurrect/clean' failed
make: *** [package/gmrender-resurrect/clean] Error 2
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-6 14:48 | 显示全部楼层
源码放到 package   
make menuconfig 应该可以看到 软件包  

make package/luci-app-koolproxyR/{clean,compile} V=s   单独编译某个 ipk 时才用的命令  前提是之前已经完整编译过才行 否则单独编译 ipk 必定 报错
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-6 14:51 | 显示全部楼层
源码方便给我一份不? 我试试看

点评

https://github.com/hzeller/gmrender-resurrect 这个比较新  详情 回复 发表于 2019-12-6 15:05
可以啊就是gmediarender而已。补丁放在了github. https://github.com/JiapengLi/OpenWrt-gmediarender 1. git clone 或者直接下载压缩包. 2. 转至 trunk/feeds/packages目录. 3. 打补丁然后编译 论坛看见的  详情 回复 发表于 2019-12-6 14:58
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-12-6 14:58 | 显示全部楼层
tplink740n 发表于 2019-12-6 14:51
源码方便给我一份不? 我试试看

可以啊就是gmediarender而已。补丁放在了github.
https://github.com/JiapengLi/OpenWrt-gmediarender

1. git clone 或者直接下载压缩包.
2. 转至 trunk/feeds/packages目录.
3. 打补丁然后编译
论坛看见的,里面有的makelife要改这个很老 了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-12-6 15:05 | 显示全部楼层
tplink740n 发表于 2019-12-6 14:51
源码方便给我一份不? 我试试看

https://github.com/hzeller/gmrender-resurrect 这个比较新
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-6 15:24 | 显示全部楼层
这个有啥用啊...

点评

大佬懂得怎么弄吗  详情 回复 发表于 2019-12-6 15:39
https://github.com/nejidev/gmediarender-openwrt18 我用来推送dlna到路由器进行播放的  详情 回复 发表于 2019-12-6 15:39
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-12-6 15:39 | 显示全部楼层

https://github.com/nejidev/gmediarender-openwrt18  我用来推送dlna到路由器进行播放的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-12-6 15:39 | 显示全部楼层

大佬懂得怎么弄吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-6 15:55 | 显示全部楼层
https://github.com/coolsnowwolf/lede  试试 大雕 的源码 一整套 看看用的上不

点评

好的。  详情 回复 发表于 2019-12-6 15:58
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-12-6 15:58 | 显示全部楼层
tplink740n 发表于 2019-12-6 15:55
https://github.com/coolsnowwolf/lede  试试 大雕 的源码 一整套 看看用的上不

好的。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-6 17:26 | 显示全部楼层
5楼说了,需要整个固件编译才会成功。

点评

我用的lede17.01的源码,编译之前已经编译了一次好了,然后再选择全部编译还是错误。 Makefile:391: recipe for target 'upnp_device.o' failed make[6]: *** Error 1 make[6]: Leaving directory '/home/cdw/op  详情 回复 发表于 2019-12-7 09:49
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-12-7 09:49 | 显示全部楼层
wulishui 发表于 2019-12-6 17:26
5楼说了,需要整个固件编译才会成功。

我用的lede17.01的源码,编译之前已经编译了一次好了,然后再选择全部编译还是错误。
Makefile:391: recipe for target 'upnp_device.o' failed
make[6]: *** [upnp_device.o] Error 1
make[6]: Leaving directory '/home/cdw/op/lede-v17.01/build_dir/target-mipsel_24kc_musl/gmediarender-0.0.7/src'
Makefile:365: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/home/cdw/op/lede-v17.01/build_dir/target-mipsel_24kc_musl/gmediarender-0.0.7'
Makefile:306: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/cdw/op/lede-v17.01/build_dir/target-mipsel_24kc_musl/gmediarender-0.0.7'
Makefile:62: recipe for target '/home/cdw/op/lede-v17.01/build_dir/target-mipsel_24kc_musl/gmediarender-0.0.7/.built' failed
make[3]: *** [/home/cdw/op/lede-v17.01/build_dir/target-mipsel_24kc_musl/gmediarender-0.0.7/.built] Error 2
make[3]: Leaving directory '/home/cdw/op/lede-v17.01/package/gmrender-resurrect-openwrt18'
time: package/gmrender-resurrect-openwrt18/compile#3.78#1.52#216.63
package/Makefile:111: recipe for target 'package/gmrender-resurrect-openwrt18/compile' failed
make[2]: *** [package/gmrender-resurrect-openwrt18/compile] Error 2
make[2]: Leaving directory '/home/cdw/op/lede-v17.01'
package/Makefile:107: recipe for target '/home/cdw/op/lede-v17.01/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/cdw/op/lede-v17.01/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/cdw/op/lede-v17.01'
/home/cdw/op/lede-v17.01/include/toplevel.mk:225: recipe for target 'world' failed
make: *** [world] Error 2
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-26 07:47

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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