-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
libgit2 cross-compile failure #10010
Comments
Yeah, cmake is kind of a pain with cross-compiling. You need a whole bunch of flags to tell it to look in a different sysroot, and not check the usual locations. The Linux-to-Windows cross-compile of libgit2 does work, so something similar could possibly be made to work here. Though note this also might break USE_CCACHE. |
yeah, although it looks like it works mostly because it's heavily hacked into the libgit2 file. it's unfortunate that |
Right, cross-compiling is probably cmake's biggest weakness as far as I'm concerned. I think what people commonly do is use a toolchain file where they start throwing all the flags they end up needing for cross-compiling. Or on the opensuse build service they've got some convenient |
multilib does still confuse cmake when it comes to finding openssl you will likely need to install libssl-dev:i386
(whoops, put this in the wrong place, moved from #11021) looks like Ubuntu has a convenient |
@garrison
edit: nevermind, you need to temporarily uninstall/rename pkg-config, or figure out how to tell cmake not to use it - it works properly when pkg-config is not installed, but fails if it is |
libgit2 doesn't compile correctly for x86 on 64-bit.
here's a start at patching it:
but cmake seems to get very confused that it isn't using the system libraries/headers/compiler and it ends up computing the dependency locations wrong.
The text was updated successfully, but these errors were encountered: