Hi all,
we are using I.mx6ull for our project, having yocto version 5.10.when we try to use openssl library getting error as follows
fatal error: openssl/ssl.h: No such file or directory
Can anyone help us to resolve this error, we tried by adding openssl to local.conf file but we are still experiencing this error.
Thanks & regards,
Naga Prasad.
Hi
Support that you do the cross-compiling on Ubuntu, you need to run this command line sudo apt-get install libssl-dev.
More details, here the link is for your reference. "openssl/ssl.h: No such file or directory" during Installation of Git - Stack Overflow
Best regards
Harvey
Hi @Harvey021
Please find attached the image for your reference, I am able to compile using 5.4 version but I am getting errors while using the 5.10-hardknott yocto version.
best regards,
naga prasad
Hi
BSP 5.10 actually included ssl.h, the screenshot below for your reference.
Can you please check if either the ssl.h included in your c file or other problems.
Best regards
Harvey
Hi @Harvey021
i have not found openssl folder in /opt/fsl-imx-fb/5.10-hardknott/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi/usr/include/.
Could you please suggest to us if anything is missed while generating yocto image for imx6ull?
Best Regards,
NagaPrasad.
Hi @nagaprasad
The command below for your reference.
DISTRO=fsl-imx-fb MACHINE=Target-Machine bitbake core-image-minimal -c populate_sdk
Best regards
Harvey
Hi @Harvey021
Thanks for your support.
in my ubuntu pc, libssl-dev is already installed, but when we are cross compiling it will search for libraries/include files in /opt/fsl-imx-fb/5.10-hardknott/sysroots/x86_64-pokysdk-linux/.in this path i am not getting library include files by default.
Best regards,
nagaPrasad
Hi @nagaprasad
openssl already included in yocto build by default. I am not quite catching what operation you were trying with openssl. According to the error, then have you tried install "libssl-dev", which will depends on your host.
Best regards
Harvey
Hi,
when i am trying to use SSL library API in our application like SSL_library_init/SSL_Write().when cross-compiling application using cross-compiler,getting error as
fatal error: OpenSSL/SSL.h: No such file or directory
Could you please suggest us to resolve this error?
Thanks & Regards,