Skip to content

PygameShader shader bloom on more platforms #8

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

Open
ikvk opened this issue Jun 15, 2023 · 1 comment
Open

PygameShader shader bloom on more platforms #8

ikvk opened this issue Jun 15, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@ikvk
Copy link

ikvk commented Jun 15, 2023

Greetengs.

Is your feature request related to a problem? Please describe.
I have tried to use bloom on android device.

from PygameShader.shader import bloom

Builds with p4a apk: (python-for-android==2023.5.21)

  --arch=arm64-v8a \
  --arch=armeabi-v7a \

and got "shader.so has unexpected e_machine: 62 (EM_X86_64)":

I/python: Traceback (most recent call last):
I/python:   File "/home/kvk/proj1/main.py", line 10, in <module>
I/python:   File "/home/kvk/proj1/fall/systems.py", line 18, in <module>
I/python:   File "/home/kvk/proj1/fall/sprites.py", line 10, in <module>
I/python:   File "/home/kvk/.local/share/python-for-android/build/python-installs/proj1_fall/arm64-v8a/PygameShader/__init__.py", line 4, in <module>
I/python: ImportError: dlopen failed: "/data/data/game.ikvk.trigfall/files/app/_python_bundle/site-packages/PygameShader/shader.so" has unexpected e_machine: 62 (EM_X86_64)
I/python: Python for android ended.

Describe the solution you'd like
Implement it on more archs (as I understand it is possible)

Describe alternatives you've considered
May be I am doing somesthing wrong?

Additional context
xiaomi mi 6 android phone

@yoyoberenguer
Copy link
Owner

Hi and thank you for taking the time to report this,
This essentially means that PygameShader is built with X86_64 architecture support and you are trying to load it on
--arch=arm64-v8a or --arch=armeabi-v7a.
I am yet to do some internal testing to check if the project can be ported to mobile architecture armeabi-v7a or arm64-v8a
Kind Regards

@yoyoberenguer yoyoberenguer added the enhancement New feature or request label Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants