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

Add support for pygame-ce #1278

Open
damusss opened this issue Oct 29, 2024 · 5 comments
Open

Add support for pygame-ce #1278

damusss opened this issue Oct 29, 2024 · 5 comments
Labels

Comments

@damusss
Copy link

damusss commented Oct 29, 2024

It'd be great if I could run pygame-ce (2.5.2) applications on a phone. Not pygame, I mean pygame-ce. Thank you if you consider it. If you tell me how, I could even try and make the PR myself, but I have no idea how to "support" a library.

@rmartin16
Copy link

FYI: I didn't follow all the details but someone at least somewhat affiliated with pygame-ce was trying to build it for Android; I'm not sure where it stands now though.

@mhsmith
Copy link
Member

mhsmith commented Oct 30, 2024

The instructions for building Android packages are here. But a complete user interface framework like Pygame, Kivy or PyQT is likely to require significant changes to add Android support, which could only be done by someone familiar with the framework's internals.

@mhsmith
Copy link
Member

mhsmith commented Oct 30, 2024

Originally posted by @oddbookworm in beeware/briefcase#1906 (comment)

Alright, I started trying to work through that guide. Question:
pygame-ce has several C dependencies, which each have their own dependencies. Do I need to create recipes for every dep down to system-level libraries? i.e.
libsdl2 requires libhidapi
libhidapi requires libusb
...


Originally posted by @mhsmith in beeware/briefcase#1906 (comment)

Unfortunately yes. But Android has its own APIs for all the things a game library would need – graphics, sound, input, etc. So the first thing you should check is the state of SDL's Android support, and which libraries it actually requires on that platform.

@oddbookworm
Copy link

Yeah, I was never successful lol. I'm probably going to try again at some point, but I've got a lot going on that'll probably delay it

@oddbookworm
Copy link

@damusss If you're willing to give it a shot, then go for it lol. Although, I suspect (as has already been mentioned) that this will require changes on the pygame-ce side as well, so maybe it would be better for someone with more experience to handle?

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

No branches or pull requests

4 participants