User avatar
Posts: 515
Joined: Thu Oct 25, 2012 7:34 am

LibGDX + Eclipse on RPi with 64bit Raspberry OS

Wed Jun 24, 2020 11:43 am

As title said: I've pushed updates to ... /mvn-repo/

What works:
- JOGL backend
- gdx-box2d

What should work (that is dependent on native, .so libraries):
- gdx-freetypes
- gdx-controllers

What doesn't work:
- gdx-bullet: I found out that version I'm maintaining is not quite there with all the changes from head of main libgdx repo and something broke bullet native code and I had trouble fixing it yesterday afternnoon)
- OpenAL sound under JOGL backend: not 100% sure is it really broken or it is just missing /dev/dsp (or whatever needed)

What I haven't done, yet:
- pushed source code changes for aarch64 to work

What is next:
- I'll see into sound issue on my device
- I've seen that the head of libgdx has moved to version 3.2.1 of lwjgl which is only two patch versions away from 3.2.3 which provides arm32 and arm64 - so, maybe we can have lwjgl running on RPi again (on both 32 and 64 bit OSes)
- try to fix bullet (but that's lower priority)
- try to update head of RPi branch to match head of LibGDX repo head branch (top of 1.9.11-SNAPSHOT version) <- higher priority

What I haven't checked:
- if all is still working on 32 bit Raspberry OS.

User avatar
Posts: 515
Joined: Thu Oct 25, 2012 7:34 am

Re: The LATEST (1.9.11-SNAPSHOT @ 24/6/2020) LibGDX on RPi with 64bit Raspberry OS

Thu Jun 25, 2020 9:15 am

Great news: Lwjgl3 is now working on RPi! :D

I've updated head of rpi-1.9.11-SNAPSHOT branch (1.9.11.rpi-SNAPSHOT version of gdx artifacts from ... x/mvn-repo repository - see example project from here: to the latest from master @ and it already moved lwjgl to 3.2.3 which (re?) introduced arm32 and arm64 builds - so, practically it worked out-of-box without any need for extra tinkering! There is no more need to run Jogl backend for RPi specifically (although it worked on other platforms - at least on OSX). Using Lwjgl3 across the platforms should just work! :)

On the other news - these are tested and working on Raspberry OS 64bit:
- gdx-box2d
- gdx-bullet
- gdx-freetype
(check examples project

Haven't tested:
- gdx-controllers-desktop <- ELF 32-bit LSB shared object, ARM, EABI5 and ELF 64-bit LSB shared object, ARM aarch64 libraries are present along side of all other standard ones in gdx-controllers-platform (gdx-controllers-platform-1.9.11.rpi-SNAPSHOT-natives-desktop.jar), so I suspect it will be fine, too.

All code is back in
Binaries (jars) are in repo: ... x/mvn-repo

Still need to check:
- that armhf still works well on Raspberry Pi OS 32bit version
- check sound - Lwjgl3 doesn't complain about sound, but failed to make my desktop switch from HDMI to 3.5mm out for Java app, nor heard anything from monitor (not sure if that's because sound doesn't work, my app didn't play any, or just my desktop setup ¯\_(ツ)_/¯)
- check Jogl's OpenAL sound issue (really low priority as Lwjgl3 works! :D

When I get time I'll write short piece how to setup RPi for 2d/3d development with LibGDX and Eclipse... It definitively feels like that I had no other computer at disposal for development, this RPi setup would do just fine for me! :D

PS just checked - all still works on, at least, OSX (with version of 1.9.11.rpi-SNAPSHOT and at least Lwjgl3 backend)

Posts: 6
Joined: Thu Nov 09, 2017 6:41 pm

Re: LibGDX + Eclipse on RPi with 64bit Raspberry OS

Mon Dec 07, 2020 5:42 pm

Great news! Thanks clicky

Return to “Java”