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,
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
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.
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?
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.
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.
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,