恩山无线论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 267|回复: 6

编译时一直出现这种错误,大佬们帮看看

[复制链接]
发表于 2020-12-23 12:14 | 显示全部楼层 |阅读模式
export MAKEFLAGS= ;make -w -r buildinfo
make[2]: Entering directory '/home/juedy/123/lede'
make[3] diffconfig buildversion feedsversion
make[2]: Leaving directory '/home/juedy/123/lede'
make[2]: Entering directory '/home/juedy/123/lede'
rm -rf /home/juedy/123/lede/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-ipq40xx
make[2]: Leaving directory '/home/juedy/123/lede'
make[2]: Entering directory '/home/juedy/123/lede'
make[3]: Entering directory '/home/juedy/123/lede/package/libs/libjson-c'
make[3]: Leaving directory '/home/juedy/123/lede/package/libs/libjson-c'
time: package/libs/libjson-c/host-compile#0.30#0.12#0.50
make[3]: Entering directory '/home/juedy/123/lede/package/libs/libubox'
CFLAGS="-O2 -I/home/juedy/123/lede/staging_dir/host/include -I/home/juedy/123/lede/staging_dir/hostpkg/include -I/home/juedy/123/lede/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/host/include" CPPFLAGS="-I/home/juedy/123/lede/staging_dir/host/include -I/home/juedy/123/lede/staging_dir/hostpkg/include -I/home/juedy/123/lede/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/host/include" CXXFLAGS="" LDFLAGS="-L/home/juedy/123/lede/staging_dir/host/lib -L/home/juedy/123/lede/staging_dir/hostpkg/lib -L/home/juedy/123/lede/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/host/lib" make -j1 -C /home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee  
make[4]: Entering directory '/home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee'
make[5]: Entering directory '/home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee'
make[6]: Entering directory '/home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee'
make[6]: Leaving directory '/home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee'
[ 40%] Built target ubox
make[6]: Entering directory '/home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee'
make[6]: Leaving directory '/home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee'
[ 45%] Built target json_script
make[6]: Entering directory '/home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee'
make[6]: Leaving directory '/home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee'
make[6]: Entering directory '/home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee'
[ 47%] Building C object CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o
/home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee/blobmsg_json.c:23:11: fatal error: json/json.h: No such file or directory
   23 |  #include <json/json.h>
      |           ^~~~~~~~~~~~~
compilation terminated.
make[6]: *** [CMakeFiles/blobmsg_json.dir/build.make:80: CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o] Error 1
make[6]: Leaving directory '/home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee'
make[5]: *** [CMakeFiles/Makefile2:226: CMakeFiles/blobmsg_json.dir/all] Error 2
make[5]: Leaving directory '/home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee'
make[4]: *** [Makefile:147: all] Error 2
make[4]: Leaving directory '/home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee'
make[3]: *** [Makefile:110: /home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee/.built] Error 2
make[3]: Leaving directory '/home/juedy/123/lede/package/libs/libubox'
time: package/libs/libubox/host-compile#1.01#0.74#1.94
make[2]: *** [package/Makefile:111: package/libs/libubox/host/compile] Error 2
make[2]: Leaving directory '/home/juedy/123/lede'
make[1]: *** [package/Makefile:107: /home/juedy/123/lede/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/juedy/123/lede'
make: *** [/home/juedy/123/lede/include/toplevel.mk:224: world] Error 2
juedy@ubuntu:~/123/lede$


来自安卓客户端来自安卓客户端
我的恩山、我的无线 The best wifi forum is right here.
发表于 2020-12-23 13:00 | 显示全部楼层
有编译工具及环境没装好,
来自安卓客户端来自安卓客户端
我的恩山、我的无线 The best wifi forum is right here.
发表于 2020-12-23 13:18 | 显示全部楼层

点评

[ 47%] Building C object CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o In file included from /usr/include/json/autolink.h:9, from /usr/include/json/json.h:9, from /  详情 回复 发表于 2020-12-23 20:08
我的恩山、我的无线 The best wifi forum is right here.
发表于 2020-12-23 14:34 | 显示全部楼层
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2020-12-23 20:08 | 显示全部楼层
jjit 发表于 2020-12-23 13:18
试一下这个方法:https://blog.csdn.net/zhangpeterx/article/details/92175479

[ 47%] Building C object CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o
In file included from /usr/include/json/autolink.h:9,
                 from /usr/include/json/json.h:9,
                 from /home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee/blobmsg_json.c:23:
/usr/include/json/config.h:9:10: fatal error: string: No such file or directory
    9 | #include <string> //typdef String
      |          ^~~~~~~~
compilation terminated.
make[6]: *** [CMakeFiles/blobmsg_json.dir/build.make:80: CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o] Error 1
make[6]: Leaving directory '/home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee'
make[5]: *** [CMakeFiles/Makefile2:226: CMakeFiles/blobmsg_json.dir/all] Error 2
make[5]: Leaving directory '/home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee'
make[4]: *** [Makefile:147: all] Error 2
make[4]: Leaving directory '/home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee'
make[3]: *** [Makefile:110: /home/juedy/123/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee/.built] Error 2
make[3]: Leaving directory '/home/juedy/123/lede/package/libs/libubox'
time: package/libs/libubox/host-compile#1.20#0.84#2.38
make[2]: *** [package/Makefile:111: package/libs/libubox/host/compile] Error 2
make[2]: Leaving directory '/home/juedy/123/lede'
make[1]: *** [package/Makefile:107: /home/juedy/123/lede/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/juedy/123/lede'
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2020-12-23 20:09 | 显示全部楼层
ligaojun 发表于 2020-12-23 13:00
有编译工具及环境没装好,

重装了还不行
来自安卓客户端来自安卓客户端
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2020-12-23 20:19 | 显示全部楼层
cd node_modules/react-native/third-party/glog-0.3.4

../../scripts/ios-configure-glog.sh
来自安卓客户端来自安卓客户端
我的恩山、我的无线 The best wifi forum is right here.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )|网站地图

GMT+8, 2021-1-24 11:59

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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