cccicl
cccicl
发布于 1个月前

编译高通代码报错解决fatal error: openssl/bio.h: fatal error: openssl/opensslv.h

最近编译高通代码一直报错

scripts/kconfig/conf --silentoldconfig Kconfig

CHK include/config/kernel.release

GEN ./Makefile

CHK include/generated/uapi/linux/version.h

Using /home/wangxiaosheng/Y1_03_12/SC66/kernel/msm-4.4 as source for kernel

CHK include/generated/utsrelease.h

HOSTCC scripts/sign-file

HOSTCC scripts/extract-cert

/home/wangxiaosheng/Y1_03_12/SC66/kernel/msm-4.4/scripts/extract-cert.c:21:25: fatal error: openssl/bio.h: No such file or directory

compilation terminated.

/home/wangxiaosheng/Y1_03_12/SC66/kernel/msm-4.4/scripts/sign-file.c:23:30: fatal error: openssl/opensslv.h: No such file or directory

compilation terminated.

CHK include/generated/timeconst.h

CHK include/generated/bounds.h

CHK include/generated/asm-offsets.h

CALL /home/wangxiaosheng/Y1_03_12/SC66/kernel/msm-4.4/scripts/checksyscalls.sh

scripts/Makefile.host:91: recipe for target 'scripts/sign-file' failed

make[2]: *** [scripts/sign-file] Error 1

make[2]: *** Waiting for unfinished jobs....

scripts/Makefile.host:91: recipe for target 'scripts/extract-cert' failed

make[2]: *** [scripts/extract-cert] Error 1

/home/wangxiaosheng/Y1_03_12/SC66/kernel/msm-4.4/Makefile:560: recipe for target 'scripts' failed

make[1]: *** [scripts] Error 2

make[1]: *** Waiting for unfinished jobs....

make[1]: Leaving directory '/home/wangxiaosheng/Y1_03_12/SC66/out/target/product/sdm660_64/obj/kernel/msm-4.4'

Makefile:150: recipe for target 'sub-make' failed

make: *** [sub-make] Error 2

make: Leaving directory '/home/wangxiaosheng/Y1_03_12/SC66/kernel/msm-4.4'

[ 2% 2425/96324] target C++: libsdmcore <= hardware/qcom/display/sdm/libs/core/hw_interface.cpp

[ 2% 2426/96324] target C++: libsdmcore <= hardware/qcom/display/sdm/libs/core/resource_default.cpp

[ 2% 2427/96324] target C++: libsdmcore <= hardware/qcom/display/sdm/libs/core/color_manager.cpp

[ 2% 2428/96324] target C++: libsdmcore <= hardware/qcom/display/sdm/libs/core/fb/hw_info.cpp

[ 2% 2429/96324] target C++: libsdmcore <= hardware/qcom/display/sdm/libs/core/fb/hw_primary.cpp

[ 2% 2430/96324] target C++: libsdmcore <= hardware/qcom/display/sdm/libs/core/fb/hw_hdmi.cpp

[ 2% 2431/96324] target C++: libsdmcore <= hardware/qcom/display/sdm/libs/core/fb/hw_device.cpp

ninja: build stopped: subcommand failed.

10:03:02 ninja failed with: exit status 1

从log 看 工具不行,安装最新工具

解决方法:

$ sudo apt install libssl-dev

搞定。

相关文章

©2020 edoou.com   京ICP备16001874号-3