laggykiller / rlottie-python

A ctypes API for rlottie, with additional functions for getting Pillow Image.
https://rlottie-python.readthedocs.io/en/latest/
GNU Lesser General Public License v2.1
15 stars 1 forks source link

Help in building ARM 64-bit architecture (AARCH64) for rlottie. #4

Closed salvecom333 closed 1 year ago

salvecom333 commented 1 year ago

i got this error when i installed a test apk in my phone, OSError: dlopen failed: "/data/data/org.lottie.lottie/files/app/_python_bundle/site-packages/rlottie_python/librlottie.so" is for EM_X86_64 (62) instead of EM_AARCH64 (183). How can i build a AARCH64 architecture to get this to work, or do you have a librlottie.so file that already has this architecture. I'm trying to build a simple lottie viewer to get this to work in the kivy framework, and it does work in my windows enviroment, but in andriod it doesn't work. Can you point me to right direction how i can accomplish this. anything in the c-language is beyond me. Any help is greatly apprecitated.

laggykiller commented 1 year ago

You have to somehow install the Linux aarch64 version of rlottie-python wheel instead of x86_64 version (https://pypi.org/project/rlottie-python/#files). Good luck.

salvecom333 commented 1 year ago

Thank you so much for your help. God bless you man.

On Tue, Jul 25, 2023, 9:28 PM laggykiller @.***> wrote:

You have to somehow install the Linux aarch64 version of rlottie-python wheel instead of x86_64 version ( https://pypi.org/project/rlottie-python/#files). Good luck.

— Reply to this email directly, view it on GitHub https://github.com/laggykiller/rlottie-python/issues/4#issuecomment-1650961640, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKVEVWJDPLCSAW3N3UAIYJTXSCMGLANCNFSM6AAAAAA2X5VKDY . You are receiving this because you authored the thread.Message ID: @.***>

laggykiller commented 12 months ago

Try this:

python -m venv venv
venv/Scripts/activate # On Windows
source venv/bin/activate # On Linux
pip install rlottie-python --platform manylinux2014_aarch64 --only-binary=:all: -t venv/lib/python3.xx/site-packages # Replace 3.xx with your version of python