Attached sslconnect.rar is my legato project trying to use openSSL function in AR7550.
It is ok to build it in Developer Studio by adding the following:
Properties-> c/C++ build -> Settings ->tool settings-> C build options-> additional linker option(-L) -> add “-lcrypto” and “-lssl”
However when I run it, the legato console in Developer studio always says:
02:53:19 =ERR= | sslconnect | sslconnect: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
I found that when programs start, it never import the /lib/libcrypto.so.1.0.0 into the sandbox directory :/tmp/legato/sandboxes/sslconnect/lib
Any idea on this?
FYI, the sslconnect.c can be compiled directly by the following and run successfully in the UART console:
owner@ubuntu:~/Legato/sslconnect$ /opt/swi/y17-ext/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -o sslconnect.arm.o sslconnect.c -lssl -lcrypto
Problem now only cannot run in the legato sandbox.