Openssl 如何在bitbake中设置环境变量?

Openssl 如何在bitbake中设置环境变量?,openssl,yocto,bitbake,libcrypto,Openssl,Yocto,Bitbake,Libcrypto,我是yocto的新手。 在编译tpm2时,yocto中的工具面临以下问题 checking for CRYPTO... no configure: error: Package requirements (libcrypto >= 1.0.2g) were not met: Requested 'libcrypto >= 1.0.2g' but version of OpenSSL-libcrypto is 1.0.2d Consider adjusting the PKG_CO

我是yocto的新手。 在编译
tpm2
时,yocto中的工具面临以下问题

checking for CRYPTO... no
configure: error: Package requirements (libcrypto >= 1.0.2g) were not met:

Requested 'libcrypto >= 1.0.2g' but version of OpenSSL-libcrypto is 1.0.2d

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables CRYPTO_CFLAGS
and CRYPTO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

如上所述,如何以及在何处设置
CRYPTO\u CFLAGS
和C
RYPTO\u LIBS

您不想修改环境变量:消息的相关部分如下

请求的“libcrypto>=1.0.2g”,但OpenSSL libcrypto的版本为 1.0.2d

您正在构建的tpm2工具需要在您的层中不可用的openssl版本

在您尝试任何修复之前,有必要研究一下为什么会发生这种情况:如果您只是使用不同层的兼容分支,那么就不应该发生这种情况(我假设配方没有被您修改过——如果不是这样的话,请提一提)。因此,检查提供openssl和tpm2工具的层:您是否为每个层使用相同的分支

如果你在问题中提到你的图层(以及你正在使用的分支),某人可能会给出更具体的建议