coolcokel
V2EX  ›  问与答

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

  •  
  •   coolcokel · Sep 11, 2019 · 1622 views
    This topic created in 2445 days ago, the information mentioned may be changed or developed.

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

    5 replies    2019-09-11 20:54:13 +08:00
    coolcokel
        1
    coolcokel  
    OP
       Sep 11, 2019
    代码:
    extern “C”
    coolcokel
        2
    coolcokel  
    OP
       Sep 11, 2019
    代码里面是这样引入的:
    extern “C”
    #include<common/common.h>
    jworg
        3
    jworg  
       Sep 11, 2019
    我怎么记得这个是 uboot 自带的或者配置生成的,建议找个 mainline 的 uboot 看看目录结构。应该是在{DIR_ROOT}/include/common.h 啊,但你这个找的是{DIR_ROOT}/include/common/common.h,电脑不在旁边记得不是很清楚
    jworg
        4
    jworg  
       Sep 11, 2019
    @jworg 抱歉眼花看错了,当成了 uboot
    coolcokel
        5
    coolcokel  
    OP
       Sep 11, 2019
    @jworg 感觉思路有点相似啊,我要找的文件默认路径是 /usr/local/include/common/common.h
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2802 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 12:08 · PVG 20:08 · LAX 05:08 · JFK 08:08
    ♥ Do have faith in what you're doing.