-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Temporary Resolved] Python 4 android in mac os with Apple Silicon via Roseta #2528
Comments
@jhay06 in your requirements can you try to force |
thanks for the response , so i have to run this p4a command and do your suggested resolution but has the same error , please see below |
Okay i think i know the issue here, it is how hostpython3 built in macos ,using the p4a . when p4a run the hostpython3 building , the build architecture of hostpython3 is for linux that's why library files shown on the images above are in .so file which is standard library of a linux , this will not work on mac os device, because mac os uses dylib file not .so file, so i have to create a temporary resolution for this , i have to go to /Users/cebx/.pyton-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build and remove python.exe , python3 files as well as Python folder and build folder there , then create a link of python and python3 from my python virtualenv folder , python = python.exe and python3 = python3 then re run the p4a, and it works this is just a temporary solution i made , hope that this will fix on the next update of the python-for-android , also to resolve the libfi i have to remove automake , autoconf , libtool , pkgconfig that was installed using homebrew and replace it using macports , |
would like to ask if i can join as contributor to this project , will try to contribute maybe i can create a permanent fix for this issue. |
Fixed via #2586, feel free to re-open the issue if you're still encountering it on the |
Hi ,
Any one here managed to build apk successfully on mac device with Apple silicon cpu via Rosetta?
I did all i can but building in P4a or buildozer has the same error ,
it always fails on import binascii, symbol not found _crc32
Device: Macbook Air
OS: Big Sur
Please see attached image
The text was updated successfully, but these errors were encountered: