-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross compile with OpenSSL #596
Comments
Try |
I don't have a path where OpenSSh is located. The sysroot has the folders /usr/include and /usr/lib that contain the information for cross-compilation. That's why -DOPENSSL_ROOT_DIR can't be set. And setting it as /usr doesn't work. |
First of all, you need to have a compiled openssl library of arm64 version locally, otherwise how can you find and link openssl libraries? |
I have openssl compiled in ARM64 because the sysroot variable of the toolchain points to a folder with the same structure as the OS but with all the ARM64 version libraries. |
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
Has anyone tried compiling in this scenario?
Thanks
The text was updated successfully, but these errors were encountered: