build.gradle of LibGDX project (top one) has two 'repositories' sections (one in 'buildscript' at the top and one in 'allprojects'). The second one should now(*) have:
Code: Select all
maven { url "http://repository.abstracthorizon.org/maven2/abstracthorizon.snapshot/" }
Code: Select all
repositories {
mavenLocal()
mavenCentral()
maven { url "http://repository.abstracthorizon.org/maven2/abstracthorizon.snapshot/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
}
Next is for 'allprojects\ext\gdxVersion' to have new value: '1.9.5.rpi-SNAPSHOT'. That's one of the snapshots (currently a build from the source as of week starting on 17th October 2016) of LibGDX with 'bits'(**).
Lastly you need to add:
Code: Select all
compile "com.badlogicgames.gdx:gdx-backend-jogamp:$gdxVersion"
Code: Select all
compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
Code: Select all
JoglNewtApplicationConfiguration config = new JoglNewtApplicationConfiguration();
new JoglNewtApplication(new MyGdxGame(), config);
And - that's all! Export your desktop project as onejar (runnable jar) and copy it to Raspberry Pi. Oh, one more thing - all .so libraries (main gdx library, bullet, gdx-controller, box2d and freetype) are compiled on my RPi which is hf (hardfloat) flavour. I don't mind adding soft if someone desperately needs - but I'll need to set up RPi and/or can always accept help - someone leading me how to/building themselves with my help.
In following days I'll explain what I've done and setup github project with keep all in. In nutshell - I've taken https://github.com/gouessej/libgdx repo, updated it to the latest LibGDX (will endeavour to do pull request for him) then applied xanby's repo over it and then fixed all other libraries and pom files to include those libs (plus a few to/fro RPi rsync-es and manual invocation of build scripts for .so libraries to be compiled). Last is just ensure all .jars aside of standard desktop (Linux/Mac/Windows) jars have included 'xxx-gnu.so' and 'xxx-armgnueabihf.so'.
(*) now as in at the time of the post. Since it is almost automated (aside of plenty of 'paste' button for ssh key password) and I can update it with the latest with hope first release version being 1.9.5 (1.9.5.rpi) and then following LibGDX to next versions.
Credits go to xranby for his efforts and posts here, J. Gousse for maintaining Jogl LibGDX fork(?)/repo and @EntangledLoops for his encouraging posts in original RPi to LibGDX pull request and above linked topic.
Oh, and another last thing - I'll try to pick out changes I've done to xranby's and make a pull request to his work on it. So - stay tuned. Also, the moment I push all to github everyone will be able to repeat all more or less easily!
