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

Update SDL2 on Android #131

Open
rollerozxa opened this issue Aug 16, 2023 · 0 comments
Open

Update SDL2 on Android #131

rollerozxa opened this issue Aug 16, 2023 · 0 comments

Comments

@rollerozxa
Copy link
Collaborator

Currently the Android version uses the vendored version of SDL2 available in the source tree. This SDL2 seems to be some super ancient beta version from 2012(?) predating even a stable release of SDL2. It also causes a segfault in newer versions of the Android NDK trying to compile the game.

I tried to update it to the latest but ran into several issues, TMS includes internal SDL2 headers that have changed significantly since the SDL2 2012 beta, and the Java code needs a lot of changes to work with newer versions of the SDL2 Android Java wrapper code.

For anyone interested, here's the buildscript I used for building newer SDL2 libraries for Android: https://gist.github.com/rollerozxa/9ff0eaec940cdfd6a23859ef2f26b5c8

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

No branches or pull requests

1 participant