Openssl Error In Imx6ull

cancel
Showing results for 
Search instead for 
Did you mean: 

Openssl Error In Imx6ull

427 Views
nagaprasad
Contributor I

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.

Labels (4)
0 Kudos
8 Replies

394 Views
Harvey021
NXP Employee
NXP Employee

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

0 Kudos

388 Views
nagaprasad
Contributor I

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

0 Kudos

367 Views
Harvey021
NXP Employee
NXP Employee

Hi

BSP 5.10 actually included ssl.h, the screenshot below for your reference.

Harvey021_0-1656493018324.png

Can you please check if either the ssl.h included in your c file or other problems.

 

Best regards

Harvey

 

0 Kudos

362 Views
nagaprasad
Contributor I

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.

0 Kudos

353 Views
Harvey021
NXP Employee
NXP Employee

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

 

0 Kudos

389 Views
nagaprasad
Contributor I

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

0 Kudos

403 Views
Harvey021
NXP Employee
NXP Employee

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

0 Kudos

399 Views
nagaprasad
Contributor I

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,

 

0 Kudos