I followed this stack overflow post to cross compile the openssl for arm. I was able to successfully do the steps, and I have an folder named as opensslArm in /home directory. However when I am trying to compile just a hello world program by using the following command
arm-linux-gnueabi-gcc helloworld.c -o sslarm -static
It gets me this error.
/usr/include/openssl/e_os2.h:56:33: fatal error: openssl/opensslconf.h: No such file or directory
Following is the program that I had been using to compile (Nothing fancy, I just added a include statement to check whether cross compilation works before using real function)
#include <stdio.h>
#include <openssl/rsa.h>
int main(){
printf("Hello World\n");
return 0;
}
Could somebody please help me how to correctly compile to ARM with the linking of openssl libraries. I feel that I am not correctly linking the compiled openssl library. I tried searching in the internet and could not find an answer. Thank you in advance.