-
Notifications
You must be signed in to change notification settings - Fork 9
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
python binding cannot be cross-compiled #16
Comments
I am failing to cross-compile pantalaimon, due to an issue with cross-compiling python-olm. Is this the same or should I open a new issue? |
This seems to be a peculiarity of CFFI, other people seem to have solved this by installing the target CFFI besides the host one. Trying to do this myself I experienced the same isssue
We can see that it first invokes the correct gcc with It also leaves a bunch of The build creates a single C file that needs to be compiled so running the compile and link step manually is another valid workaround. To compile i ran this:
This picks up the cross compiled libolm from the Linking it worked with
The resulting file
|
Thanks for the useful hints. My issue was not with the linker but rather the cross-compiling itself. What I am trying to do is to simply compile it via
I set the compiler to Any chance I can get along with this approach or do I need to setup a build script that downloads python-olm sources and builds it as you suggested above? |
Not sure if pydistutils is supposed to work, did you try with overriding |
I finally got it cross-compiled within the Clickable docker image building olm as a shared library and overriding some env vars like:
Thanks for your help! |
Received this report from Nathan O.:
The text was updated successfully, but these errors were encountered: