Openssl Error In Imx6ull

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Openssl Error In Imx6ull

2,391件の閲覧回数
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.

ラベル(4)
0 件の賞賛
8 返答(返信)

2,358件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

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 件の賞賛

2,352件の閲覧回数
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 件の賞賛

2,331件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

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 件の賞賛

2,326件の閲覧回数
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 件の賞賛

2,317件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

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 件の賞賛

2,353件の閲覧回数
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 件の賞賛

2,367件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

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 件の賞賛

2,363件の閲覧回数
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 件の賞賛