找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2156|回复: 7

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

[复制链接]
发表于 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.
回复

使用道具 举报

发表于 2022-3-17 17:25 | 显示全部楼层
执行 make dirclean 之后再重新编译下试试
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-17 04:19

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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