Skip to content
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

doesn't work with buildozer/kivy : ImportError: dlopen failed: cannot locate symbol __gxx_personality_v0 #11

Open
magowiz opened this issue Jun 11, 2024 · 9 comments

Comments

@magowiz
Copy link

magowiz commented Jun 11, 2024

Hi,
I'm trying to build an android app with kivy/buildozer, using architecture arm64-v8a, shazamio-core build is fine (no error on compile), but when running on smartphone the app crashes with this error:

ImportError: dlopen failed: cannot locate symbol "__gxx_personality_v0" referenced by "/data/data/net.magowiz.musenote/files/app/_python_bundle/site-packages/shazamio_core/shazamio_core.so"...

What I miss?
from python-for-android (here: kivy/python-for-android#3030) they suggested me to add -lstdc++ to LDFLAGS but I still get the error.

@dotX12
Copy link
Collaborator

dotX12 commented Jun 11, 2024

Hi @magowiz,
Can you do uname -a in termux and show the result? Perhaps I will try to check and build a package for your device.

@magowiz
Copy link
Author

magowiz commented Jun 11, 2024

Sure, here it is:

Linux localhost 4.14.186-g7c18952d3c68 #1 SMP PREEMPT Wed May 25 19:55:45 WIB 2022 aarch64 Android

@dotX12
Copy link
Collaborator

dotX12 commented Jun 11, 2024

install command:

python -m pip install file_name.whl

@magowiz
Copy link
Author

magowiz commented Jun 11, 2024

are they available via pypi ? In buildozer I can only put a package name, if it matches a recipe (specific instructions for that package) it will use it, otherwise downloads using pypi, I'm trying to get some information about how to use those whl inside a recipe. By the way thank you very much for providing me those packages.

@dotX12
Copy link
Collaborator

dotX12 commented Jun 11, 2024

are they available via pypi ? In buildozer I can only put a package name, if it matches a recipe (specific instructions for that package) it will use it, otherwise downloads using pypi, I'm trying to get some information about how to use those whl inside a recipe. By the way thank you very much for providing me those packages.

I'll add them to pypi within tomorrow, I'm working late today

@magowiz
Copy link
Author

magowiz commented Jun 11, 2024

oh great, it's fantastic, thank you very much indeed!

@dotX12
Copy link
Collaborator

dotX12 commented Jun 16, 2024

oh great, it's fantastic, thank you very much indeed!

Uploading shazamio_core-1.0.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.2/2.2 MB • 00:01 • 1.6 MB/s
Uploading shazamio_core-1.0.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.2/2.2 MB • 00:00 • 12.5 MB/s
Uploading shazamio_core-1.0.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.2/2.2 MB • 00:00 • 143.2 MB/s
Uploading shazamio_core-1.0.7-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.2/2.2 MB • 00:00 • 143.3 MB/s
Uploading shazamio_core-1.0.7-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.2/2.2 MB • 00:00 • 134.5 MB/s

View at:
https://pypi.org/project/shazamio-core/1.0.7/

Try now

@magowiz
Copy link
Author

magowiz commented Jun 16, 2024

Sorry I forgot to update you about this: I thought that somehow since I cited the python-for-android issue 3030 (kivy/python-for-android#3030) you get some notification about that.

T-Dynamos told me that those wheels are not going to work on android, here's reference to his comment : kivy/python-for-android#3030 (comment)

So currently I'm waiting for instructions from T-Dynamos to fix my p4a recipe or some evolution in p4a to handle this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants