V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
coolcokel
V2EX  ›  问与答

ubuntu 下编译一套源码,文件缺失问题

  •  
  •   coolcokel · 2019-09-11 20:33:14 +08:00 · 952 次点击
    这是一个创建于 1696 天前的主题,其中的信息可能已经有所发展或是发生改变。

    例如 error:openssl/ssl.h no such file or directory 下载 openssl 源码编译安装错误就没了 现在遇到一个错误 error:common/common.h such file or directory 这个需要安装哪个库文件啊

    5 条回复    2019-09-11 20:54:13 +08:00
    coolcokel
        1
    coolcokel  
    OP
       2019-09-11 20:35:12 +08:00
    代码:
    extern “C”
    coolcokel
        2
    coolcokel  
    OP
       2019-09-11 20:36:12 +08:00
    代码里面是这样引入的:
    extern “C”
    #include<common/common.h>
    jworg
        3
    jworg  
       2019-09-11 20:45:53 +08:00
    我怎么记得这个是 uboot 自带的或者配置生成的,建议找个 mainline 的 uboot 看看目录结构。应该是在{DIR_ROOT}/include/common.h 啊,但你这个找的是{DIR_ROOT}/include/common/common.h,电脑不在旁边记得不是很清楚
    jworg
        4
    jworg  
       2019-09-11 20:47:37 +08:00
    @jworg 抱歉眼花看错了,当成了 uboot
    coolcokel
        5
    coolcokel  
    OP
       2019-09-11 20:54:13 +08:00
    @jworg 感觉思路有点相似啊,我要找的文件默认路径是 /usr/local/include/common/common.h
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2149 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 01:52 · PVG 09:52 · LAX 18:52 · JFK 21:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.