-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
ARM processor support #385
Comments
I'm not aware of whether LibGDX supports Linux ARM. Obviously the Java code should work, but there may be missing native libraries. There should be more information in the crash than just that though, can you run the JAR from the command line and let me know if more info is printed out? |
I did run the JAR from command line and posted the output in the first code block above. It gives no stack trace. Here is the output for the previous version:
|
Hmm, well at the very least it seems like the new desktop version is eating the full error message, so I will look into that. Unfortunately that pretty clearly points toward missing native libs. It looks like LibGDX only supports ARM in the context of mobile OSes. It's worth noting that the old desktop version also uses LibGDX, just a slightly different implementation based on the older LWJGL2 desktop backend. This new desktop version is LWJGL3 based, but the LibGDX native are probably similar or the same. |
It would be cool to have support for desktop builds, so to run shattered on the Raspberry pi4. There seem to be some ports allowing LibGDX on GNU/Linux arm systems, so far I haven't have enough time to try everything, but here for reference: https://www.raspberrypi.org/forums/viewtopic.php?t=249098&p=1524338 |
The https://github.com/LWJGL/lwjgl3/releases/tag/3.2.3 release says that they've
which should be the two architectures for the pinephone and raspberry pi. For reference, here is my test:
@SimonSchubert, this should work for you on the pinephone, too, if you use arm64. (It is my understanding that this is a test to see if the native building block of libgdx is running). |
Looks like libgdx/libgdx@5fa5f61 |
That's good to hear, Assuming there aren't any issues (there's murmurs of increasing the minimum android version in 1.9.11) I'll likely update to 1.9.11 when it's properly released. |
(One a side note: please to not raise the necessary Android version, as it makes the game less accessible, there are many devices around that only support elder versions for good). |
I try to avoid dropping support for old Android versions wherever possible. Because Shattered depends on more libraries these days (LibGDX everywhere, several Google libs on Google Play) it's not always possible though, I did already drop support for Android 2.2 about a year back. I try to avoid dropping old Android support unless it's absolutely necessary though, and Android 2.3 is still used by a small but significant number of players. I already employ a few tricks to keep supporting Android 2.3 and 4.0 on Google Play. |
Actually after checking it seems 100% certain that LibGDX 1.9.11+ will require a minimum of android 4.0 (API level 14). For that reason I may delay updating LibGDX for some time. |
Going to defer this as it looks like I won't be updating to LibGDX 1.9.11 anytime soon, due to it being unreleased and dropping Android 2.3 support. I might look into whether the platform can be supported while sticking to LibGDX 1.9.10, but I suspect that'll involve using a fork of libGDX or similar. |
For anyone on the PinePhone wanting to play SPD, I hacked together a version that runs on Linux ARM. I forked the game into this repo: https://github.com/moxvallix/shattered-pixel-dungeon-pinephone. |
Shattered is now set to be updated to libGDX 1.10.0 in the next update. |
Shattered should support arm processors on the desktop build as of v1.0.0, let me know if there's an issue with that. Relevant commit: 9b63eb5 |
Hereby I confirm that v1.0.3 (the jar) directly works on Raspian OS in a Raspberry Pi4. Thanks again! Whoever reads this and likes the ARM support, consider becoming a patron to support the game! |
Congratulation for successfully merging the desktop and mobile codebase in version 0.8.0 🥳 .
I was hoping that after the merge the game would run on my Pinephone. But executing the jar file gives me a NPE.
ARM is generally supported by
libgdx
, right? Do you know what the reason for the NPE is?Here some info:
https://www.pine64.org/pinephone/
OS: Debian GNU/Linux bullseye/sid aarch64
Kernel: 5.5-pinephone
DE: Wayland
I'm happy to provide more information if needed.
The text was updated successfully, but these errors were encountered: