Xiaomi_Kernel_OpenSource icon indicating copy to clipboard operation
Xiaomi_Kernel_OpenSource copied to clipboard

fatal error: openssl/opensslv.h: No such file or directory

Open RainbowXie opened this issue 2 years ago • 0 comments

Kernel: nitrogen-q-oss System Version: Ubuntu 22.04 LTS on Windows 10 x86_64

I'm trying to compile kernel, and I got this:

/LineageOS/LinageOS/kernel/xiaomi/nitrogen/scripts/sign-file.c:23:30: fatal error: openssl/opensslv.h: No such file or directory
 #include <openssl/opensslv.h>

However, many answers told me to install libssl-dev, which I did it as follows.

sudo apt install libssl-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libssl-dev is already the newest version (3.0.2-0ubuntu1.6).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

but it doesn't work for me, I got the same error. And I also tried openssl, It didn't work either.

How can I fix this?

RainbowXie avatar Jul 18 '22 07:07 RainbowXie