libhv
libhv copied to clipboard
Cross compile with OpenSSL
Hi I'm trying to cross-compile for arm64 with OpenSSL. When using cmake, findpackage searches for OpenSSL from x86 and not from the toolchain.
When compiling, the error below is generated because it uses OpenSSL from x86_64-linux-gnu
In file included from /usr/include/openssl/ssl.h:21, from /home/bitten/libhv/ssl/openssl.c:5:
/usr/include/openssl/macros.h:14:10: fatal error: openssl/opensslconf.h: No such file or directory
14 | #include <openssl/opensslconf.h>
| ^~~~~~~~~~~~~~~~~~~~~~~
Has anyone tried compiling in this scenario?
Thanks