> 文档中心 > rk3568 OpenHarmony 3.1.1 Release 编译(踩坑记)-缺少头文件openssl/bio.h

rk3568 OpenHarmony 3.1.1 Release 编译(踩坑记)-缺少头文件openssl/bio.h

使用LinuxMint-20.3系统编译OpenHarmony 3.1.1 Release时遇到如下错误

[OHOS ERROR] [8264/35450] ACTION //device/hihope/rk3568/kernel:kernel(//build/toolchain/ohos:ohos_clang_arm)[OHOS ERROR] FAILED: ../kernel/src_tmp/linux-5.10/boot_linux ......[OHOS ERROR]   HOSTCC  scripts/asn1_compiler[OHOS ERROR] arch/arm64/boot/dts/rockchip/rk3568.dtsi:1901.18-1916.6: Warning (graph_port): /hdmi@fe0a0000/ports/port: graph node unit address error, expected "0"[OHOS ERROR]   HOSTCC  scripts/extract-cert[OHOS ERROR] scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory[OHOS ERROR]    21 | #include [OHOS ERROR]|   ^~~~~~~~~~~~~~~[OHOS ERROR] compilation terminated.[OHOS ERROR] make[2]: *** [scripts/Makefile.host:95: scripts/extract-cert] Error 1[OHOS ERROR] make[2]: *** Waiting for unfinished jobs....[OHOS ERROR] make[1]: *** [Makefile:1199: scripts] Error 2[OHOS ERROR] make: *** [arch/arm64/Makefile:206: rk3568-toybrick-x0-linux.img] Error 2

这是编译linux-5.10内核时提示的错误,根据错误信息:scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory
大概意思是缺少头文件openssl/bio.h

需要安装相关的依赖包:
sudo apt-get install libssl-dev