Posted by
Headmade on
Oct 25, 2015; 3:01am
URL: https://forum.jogamp.org/JOGL-2-0-OpenGL-OpenGL-ES-backend-for-LibGDX-tp4027689p4035577.html
Hi,
I tried to get my LibGdx game working on Raspberry Pi 2 (running Raspbian), but I keep getting the error below.
I did the following steps:
- clone
https://github.com/gouessej/libgdx/tree/b69245a72fbb1af77c801ba9d4bab70d3da77b90 (I know it's not the latest but this is the version my game is using)
- mvn install
- made my game use this libgdx version, changes equivalent to
https://github.com/xranby/libgdx-demo-pax-britannica/commit/4c2bafc104c2d7104dad5299d196423d932cf7c5?diff=split with the exception of using JoglNewtApplication
- Exported the game as a runnable jar
Art_Treachery-Headmade_Games-0.5.jar- I inserted libgdxarm.so and libgdxarmgnueabihf.so into my gdx-platform-1.6.6-SNAPSHOT-natives-desktop.jar However I was unable to build the so files on my raspberry pi so I used the files included in the Pax Brianica demo
http://labb.zafena.se/jogamp/vc4/libgdx-demo-pax-britannica-1.6.3-armhf.jarIf there is an easier way or if I did anything wrong please let me know.
The source code can be seen here:
https://github.com/headmadegames/ArtTag/blob/raspberry/desktop/src/headmade/arttag/desktop/ArtTagLauncher.javaThe error when I run it on my raspberry is:
RunnableTask.run(): A caught exception occured on thread
main-Display-.x11_:0.0-2-EDT-1: RunnableTask[executed false, tTotal 1
ms, tExec 0 ms, tQueue 1 ms, attachment null, throwable
java.lang.RuntimeException: java.lang.RuntimeException: Waited 5000ms
for: <e8b6be, 357fb2>[count 1, qsz 0, owner <main-AWTAnimator#00>] -
<main-Display-.bcm.vc.iv_nil-1-EDT-1>]
java.lang.RuntimeException: java.lang.RuntimeException: Waited 5000ms
for: <e8b6be, 357fb2>[count 1, qsz 0, owner <main-AWTAnimator#00>] -
<main-Display-.bcm.vc.iv_nil-1-EDT-1>
at jogamp.newt.DefaultEDTUtil.invokeImpl(DefaultEDTUtil.java:249)
at jogamp.newt.DefaultEDTUtil.invoke(DefaultEDTUtil.java:163)
at jogamp.newt.DisplayImpl.runOnEDTIfAvail(DisplayImpl.java:427)
at jogamp.newt.WindowImpl.runOnEDTIfAvail(WindowImpl.java:2585)
at jogamp.newt.WindowImpl.setPosition(WindowImpl.java:2711)
at jogamp.newt.driver.x11.X11UnderlayTracker.windowMoved(X11UnderlayTracker.java:140)
at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:4174)
at jogamp.newt.WindowImpl.sendWindowEvent(WindowImpl.java:4105)
at jogamp.newt.WindowImpl.positionChanged(WindowImpl.java:4329)
at jogamp.newt.WindowImpl.sizePosMaxInsetsChanged(WindowImpl.java:4493)
at jogamp.newt.driver.x11.DisplayDriver.DispatchMessages0(Native Method)
at jogamp.newt.driver.x11.DisplayDriver.dispatchMessagesNative(DisplayDriver.java:112)
at jogamp.newt.WindowImpl.waitForVisible(WindowImpl.java:4237)
at jogamp.newt.WindowImpl.waitForVisible(WindowImpl.java:4231)
at jogamp.newt.WindowImpl.createNative(WindowImpl.java:673)
at jogamp.newt.WindowImpl.setVisibleActionImpl(WindowImpl.java:1130)
at jogamp.newt.WindowImpl$VisibleAction.run(WindowImpl.java:1185)
at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:133)
at jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:372)
Caused by: java.lang.RuntimeException: Waited 5000ms for: <e8b6be,
357fb2>[count 1, qsz 0, owner <main-AWTAnimator#00>] -
<main-Display-.bcm.vc.iv_nil-1-EDT-1>
at jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:198)
at jogamp.newt.WindowImpl$SetPositionAction.run(WindowImpl.java:2684)
at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:150)
... 1 more
DefaultEDT.run(): Caught exception occured on thread
main-Display-.x11_:0.0-2-EDT-1: RunnableTask[executed true, tTotal
7221 ms, tExec 7220 ms, tQueue 1 ms, attachment null, throwable
java.lang.RuntimeException: java.lang.RuntimeException: Waited 5000ms
for: <e8b6be, 357fb2>[count 1, qsz 0, owner <main-AWTAnimator#00>] -
<main-Display-.bcm.vc.iv_nil-1-EDT-1>]
java.lang.RuntimeException: java.lang.RuntimeException: Waited 5000ms
for: <e8b6be, 357fb2>[count 1, qsz 0, owner <main-AWTAnimator#00>] -
<main-Display-.bcm.vc.iv_nil-1-EDT-1>
at jogamp.newt.DefaultEDTUtil.invokeImpl(DefaultEDTUtil.java:249)
at jogamp.newt.DefaultEDTUtil.invoke(DefaultEDTUtil.java:163)
at jogamp.newt.DisplayImpl.runOnEDTIfAvail(DisplayImpl.java:427)
at jogamp.newt.WindowImpl.runOnEDTIfAvail(WindowImpl.java:2585)
at jogamp.newt.WindowImpl.setPosition(WindowImpl.java:2711)
at jogamp.newt.driver.x11.X11UnderlayTracker.windowMoved(X11UnderlayTracker.java:140)
at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:4174)
at jogamp.newt.WindowImpl.sendWindowEvent(WindowImpl.java:4105)
at jogamp.newt.WindowImpl.positionChanged(WindowImpl.java:4329)
at jogamp.newt.WindowImpl.sizePosMaxInsetsChanged(WindowImpl.java:4493)
at jogamp.newt.driver.x11.DisplayDriver.DispatchMessages0(Native Method)
at jogamp.newt.driver.x11.DisplayDriver.dispatchMessagesNative(DisplayDriver.java:112)
at jogamp.newt.WindowImpl.waitForVisible(WindowImpl.java:4237)
at jogamp.newt.WindowImpl.waitForVisible(WindowImpl.java:4231)
at jogamp.newt.WindowImpl.createNative(WindowImpl.java:673)
at jogamp.newt.WindowImpl.setVisibleActionImpl(WindowImpl.java:1130)
at jogamp.newt.WindowImpl$VisibleAction.run(WindowImpl.java:1185)
at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:133)
at jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:372)
Caused by: java.lang.RuntimeException: Waited 5000ms for: <e8b6be,
357fb2>[count 1, qsz 0, owner <main-AWTAnimator#00>] -
<main-Display-.bcm.vc.iv_nil-1-EDT-1>
at jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:198)
at jogamp.newt.WindowImpl$SetPositionAction.run(WindowImpl.java:2684)
at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:150)
... 1 more