找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3924|回复: 2

自己编译 coolsnowwolf-lede 选取app后遇到的坑

[复制链接]
发表于 2020-5-11 10:30 | 显示全部楼层 |阅读模式
小白玩家,自己动手编译了下coolsnowwolf-lede的,使用官方配置编译一次成功。后来又研究了下各种app,抱着学习的态度,把所有LuCI里面的app全部购上了。结果编译遇到各种错误,记录一下,有高手请指导。

1. LuCI ---> Applications ---> luci-app-lxc   #LXC容器管理
选中这个app编译的时候,在执行到python setup 的时候,会报找不到 setuptools。检查了一下,是因为这个app使用了lede自己内置的python , 既然我在电脑环境中安装上了setuptools ,依然失败。

2. LuCI ---> Applications ---> OLSR 相关的三个模块

报错如下:

                        /home/liu/lede/staging_dir/toolchain-mipsel_24kc_gcc-7.5.0_musl/include/math.h:203:13: note: expected 'double' but argument is of type 'timespec_t {aka struct timespec}'
                        double      fabs(double);
                                                 ^~~~
                        src/gpsdclient.c:390:7: error: wrong type argument to unary exclamation mark
                           if (!gpsdata->online) {
                                   ^
                        src/gpsdclient.c:457:29: error: 'struct gps_data_t' has no member named 'separation'; did you mean 'version'?
                                 info->height = gpsdata->separation;
                                                                                 ^~~~~~~~~~
                                                                                 version
                        src/gpsdclient.c: In function 'readFromGpsd':
                        src/gpsdclient.c:581:19: error: too few arguments to function 'gps_read'
                                 gpsReadCode = gps_read(gpsdata);
                                                           ^~~~~~~~
                        In file included from src/gpsdclient.h:49:0,
                                                         from src/gpsdclient.c:46:
                        /home/liu/lede/staging_dir/target-mipsel_24kc_musl/usr/include/gps.h:2307:12: note: declared here
                        extern int gps_read(struct gps_data_t *, char *message, int message_len);
                                                ^~~~~~~~
                        make[5]: *** [../../Makefile.inc:352: src/gpsdclient.o] Error 1
                        make[5]: Leaving directory '/home/liu/lede/build_dir/target-mipsel_24kc_musl/olsrd-0.9.7/lib/pud'
                        make[4]: *** [Makefile:241: libs] Error 2
                        make[4]: Leaving directory '/home/liu/lede/build_dir/target-mipsel_24kc_musl/olsrd-0.9.7'
                        make[3]: *** [Makefile:297: /home/liu/lede/build_dir/target-mipsel_24kc_musl/olsrd-0.9.7/.built] Error 2
                        make[3]: Leaving directory '/home/liu/lede/feeds/routing/olsrd'
                        time: package/feeds/routing/olsrd/compile#0.27#0.10#0.33
                        make[2]: *** [package/Makefile:113: package/feeds/routing/olsrd/compile] Error 2
                        make[2]: Leaving directory '/home/liu/lede'
                        make[1]: *** [package/Makefile:107: /home/liu/lede/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
                        make[1]: Leaving directory '/home/liu/lede'
                        make: *** [/home/liu/lede/include/toplevel.mk:227:world] 错误 2


3. LuCI ---> Applications ---> luci-app-shairplay  #支持AirPlay功能

网上找到的解决办法: https://github.com/coolsnowwolf/lede/issues/1161

                cp: cannot stat '/home/lede/0-git-hub/lede/build_dir/target-x86_64_musl/avahi-dbus/avahi-0.8/ipkg-install/usr/lib/libdns_sd.so*': No such file or directory
                Makefile:402: recipe for target '/home/lede/0-git-hub/lede/bin/packages/x86_64/packages/libavahi-compat-libdnssd_0.8-1_x86_64.ipk' failed
                make[3]: *** [/home/lede/0-git-hub/lede/bin/packages/x86_64/packages/libavahi-compat-libdnssd_0.8-1_x86_64.ipk] Error 1
                make[3]: Leaving directory '/home/lede/0-git-hub/lede/feeds/packages/libs/avahi'
                time: package/feeds/packages/avahi/dbus/compile#0.06#0.02#0.22
                package/Makefile:111: recipe for target 'package/feeds/packages/avahi/compile' failed
                make[2]: *** [package/feeds/packages/avahi/compile] Error 2
                make[2]: Leaving directory '/home/lede/0-git-hub/lede'
                package/Makefile:107: recipe for target '/home/lede/0-git-hub/lede/staging_dir/target-x86_64_musl/stamp/.package_compile' failed
                make[1]: *** [/home/lede/0-git-hub/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
                make[1]: Leaving directory '/home/lede/0-git-hub/lede'
                /home/lede/0-git-hub/lede/include/toplevel.mk:225: recipe for target 'world' failed
                make: *** [world] Error 2


                 cannot stat ' target-x86_64_musl/avahi-dbus/avahi-0.8/ipkg-install/usr/lib/libdns_sd.so*': No such file or dir


我的恩山、我的无线 The best wifi forum is right here.
发表于 2020-5-11 23:32 | 显示全部楼层
兄弟,发错了板块。这里是Tomato,你应该发到openwrt版块。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-6-19 12:31 | 显示全部楼层
全部打勾也行?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-25 00:32

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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