I'm using ubuntu and I'm trying to cross-compile a C program for OpenWrt distribution.
I tried to compile the code on ubuntu using gcc
and it's working correctly.
But when I tried to compile it using mips-openwrt-linux-gcc
I get errors about headers (fatal error: openssl/conf.h: No such file or directory
).
Main C file is main.c , I used to compile it using gcc main.c -lssl -lcrypto -o exec
on ubuntu , now for cross-compilation I'm using mips-openwrt-linux-gcc main.c -lssl -lcrypto -o exec
and this causes the problem I just mentioned.
Should I include headers in the toolchain directory? If yes how to do it for openwrt target?