Login  Register

Re: Porting RoomTiny to Jogl

Posted by elect on Aug 19, 2014; 10:38pm
URL: https://forum.jogamp.org/Porting-RoomTiny-to-Jogl-tp4032722p4032849.html

BrickFarmer wrote
elect wrote
You should checkout two projects here

https://github.com/elect86

Jglm and unofficialJavaSdk

or if you lazy and want it immediately ^^ you can get all the jars here

https://mega.co.nz/#!KAE00bAS!HUV6nUjBKSzqGQF8y8KQKLMhHsWlszUrOOQn1XLWDRo
Thanks! You have been busy :) I took the trouble to build them, but found some more dependencies.  I couldn't extract the .7z (unsupported method of compression using Zipeg under OSX) but I was able to see the file names :)  I've tracked down and built all the dependencies. The code builds, and now I'm trying to run the code, but I get an error on the native linking:

java -cp dist/OculusRoomTiny.jar:lib/jogl-all.jar:lib/Jglm.jar:lib/javaUnofficialOpenglSDK.jar:lib/jovr-0.4.1.2-SNAPSHOT.jar:lib/jna-3.0.9.jar:lib/gluegen-rt.jar:gluegen-rt-natives-macosx-universal.jar:jogl-all-natives-macosx-universal.jar -Djava.library.path=lib roomTinySimplified.core.OculusRoomTiny
setupOculus()
Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'OVR_C': dlopen(libOVR_C.dylib, 1): image not found

I have libovr.a in lib directory, what else am I missing please?

I also tried the 'non-simple' demo but get the following...


java -cp dist/OculusRoomTiny.jar:lib/jogl-all.jar:lib/Jglm.jar:lib/javaUnofficialOpenglSDK.jar:lib/jovr-0.4.1.2-SNAPSHOT.jar:lib/jna-3.0.9.jar:lib/gluegen-rt.jar:gluegen-rt-natives-macosx-universal.jar:jogl-all-natives-macosx-universal.jar -Djava.library.path=lib oculusRoomTiny.core.OculusRoomTiny
init
Exception in thread "main-AWTAnimator" com.jogamp.opengl.util.AnimatorBase$UncaughtAnimatorException: javax.media.opengl.GLException: Caught GLException: Not a GL3 implementation on thread main-AWTAnimator
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:84)

Ah, are you on mac os? Shit I guess that error sounds like sdk related... which dk you have? Have you been successfully running a demo?