-
Notifications
You must be signed in to change notification settings - Fork 293
feat(android): add Rust cross-compilation setup for Android environment #2650
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
base: main
Are you sure you want to change the base?
Conversation
|
For Rust projects built with Maturin, it currently does not work. Maturin has some cross-compilation issues on Android that still need to be fixed. For details, please see PyO3/maturin#2810 |
|
This looks nice and neat! Is there an example of it working in a real project that you've been testing it with? |
|
I want to test, but I did not know how to run this without the github action,if you know how to do, you can tell me,and I will test it. This commit is a modification I made based on the actual missing environment configuration built on Android using cbuildwheel. Of course, I manually configured it externally in a non-isolated environment, and after the configuration, I built the wheel correctly and it can run on Android |
|
You can test a project using something like this in a github workflow- - name: Build wheels
uses: ririv/cibuildwheel@main |
1384753 to
99ee18a
Compare
…_DIR to link against libpython3.x.so explicitly
|
Thanks, I have tested it, and made some new commits. Now, it works.
The
|
|
https://github.com/ririv/android-wheels/blob/main/.github/workflows/cbuildweel-repair-test.yml Here are some logs:
|
Like platform
windowscibuildwheel/cibuildwheel/platforms/windows.py
Lines 206 to 232 in c53e541
Add Rust cross-compilation setup for Android environment, it can fix the cross-compilation problem for the rust project built with setuptools-rust