zoukankan      html  css  js  c++  java
  • 关于OpenWRT第一次编译时出现的一些问题

     

    广西.河池学院

    广西重点高校重点实验室培训基地

    系统控制与信息处理重点实验室

    本片博文来自于河池学院:OpenWRT无线路由组

    由于误操作不小心把系统搞崩溃了,然后再次开始重装系统。结果编译时居然一直出现错误。找了很久才找到解决办法,于是赶快记下来以免下次再出现这样的问题能够直接解决。

    问题表现:

    在进行包的安装和更新过程中出现缺少 "libselinux" 这个依赖的提示,而后在编译过程中就会出现以下问题。

    问题日志:

    [ 47%] Building C object CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o
    /home/zx/桌面/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee/blobmsg_json.c:21:11: fatal error: json.h: No such file or directory
       21 |  #include <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/zx/桌面/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/zx/桌面/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee'
    make[4]: *** [Makefile:147: all] Error 2
    make[4]: Leaving directory '/home/zx/桌面/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee'
    make[3]: *** [Makefile:110: /home/zx/桌面/lede/build_dir/hostpkg/libubox-2020-05-25-66195aee/.built] Error 2
    make[3]: Leaving directory '/home/zx/桌面/lede/package/libs/libubox'
    time: package/libs/libubox/host-compile#2.08#0.56#2.84
    make[2]: *** [package/Makefile:111: package/libs/libubox/host/compile] Error 2
    make[2]: Leaving directory '/home/zx/桌面/lede'
    make[1]: *** [package/Makefile:107: /home/zx/桌面/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
    make[1]: Leaving directory '/home/zx/桌面/lede'
    make: *** [/home/zx/桌面/lede/include/toplevel.mk:224:world] 错误 2

    问题产生原因:
    在安装Ubuntu时选择的字体为中文,导致虚拟机路径设为了中文路径

    解决办法:
    重装虚拟机,字体选择默认的英文;或者将系统的中文路径更改为英文路径。
  • 相关阅读:
    swift 中 Self 与self
    Swift 中的泛型
    mac 报文件已损坏 怎么办
    winxp秘钥
    字符串拷贝函数strcpy, strcat, sprintf, strncpy, strncat和snprintf的区别
    【原创】Linux应用程序完整调用自己写的字符设备驱动过程
    idea中新建git分支,并提交到远程github
    (JS-PHP)使用RSA算法进行加密通讯
    Linux日志相关的命令
    hibernate中关于is null的查询
  • 原文地址:https://www.cnblogs.com/heng-xing/p/13507420.html
Copyright © 2011-2022 走看看