libhv icon indicating copy to clipboard operation
libhv copied to clipboard

Cross compile with OpenSSL

Open frbitten opened this issue 6 months ago • 4 comments

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

frbitten avatar Jul 28 '24 17:07 frbitten