【问题标题】:fatal error: openssl/bio.h: No such file or directory in Yocto致命错误:openssl/bio.h:Yocto 中没有这样的文件或目录
【发布时间】:2021-05-19 03:13:19
【问题描述】:

我的 Yocto 资源目前位于 Warrior,我正在将它们迁移到 dunfell,因此我克隆了 dunfell 分支所需的所有层,包括 meta-swupdate

现在,我正在尝试通过 bitbake swupdate-image 命令为 dunfell 生成 swupdate 图像,但出现如下错误:

    .
    .      
    In file included from /home/panther2/dunfell/build/tmp/work/corei7-64-poky-linux/swupdate/2021.04-r0/git/corelib/verify_signature.c:15:
    /home/panther2/dunfell/build/tmp/work/corei7-64-poky-linux/swupdate/2021.04-r0/git/include/sslapi.h:31:10: fatal error: openssl/bio.h: No such file or directory
       31 | #include <openssl/bio.h>
          |          ^~~~~~~~~~~~~~~
    compilation terminated.
    .
    .
    make[2]: *** [core/swupdate.o] Error 1
    /home/panther2/dunfell/build/tmp/work/corei7-64-poky-linux/swupdate/2021.04-r0/git/mongoose/mongoose.c:4473:10: fatal error: openssl/ssl.h: No such file or directory
     4473 | #include <openssl/ssl.h>
          |          ^~~~~~~~~~~~~~~
    compilation terminated.
    .
    .

似乎无法找到 ssl 相关的头文件。有这方面的线索吗?

【问题讨论】:

    标签: ssl openssl yocto swupdate


    【解决方案1】:

    swupdate 配方中没有 openssl 依赖项。

    swupdate_%.bbappend 文件中添加DEPENDS += "openssl" 会有所帮助。

    【讨论】:

    • 是的,我做了同样的事情。只是想检查这是否是正确的方法。我对此的想法是,它应该是meta-swupdate 的一部分。
    猜你喜欢
    • 2012-10-13
    • 2018-10-02
    • 1970-01-01
    • 2020-04-13
    • 2017-09-19
    • 2022-07-21
    • 2017-05-09
    • 2021-05-15
    • 2014-10-31
    相关资源
    最近更新 更多