Okay, I'm having serious issues with jME2Physics. To be more precise, I have issues with ODEJava.
There is no native library available that works on a 64bit Mac OS X system. So far, I have had no luck in getting to compile ODEJava by hand with 64bit Mac support. I'm running the most current Java SE 1.6 (64bit) on my mac.
The big problem for jME and jMEPhysics here is that NO game or app that uses physics will run on a modern 64bit Mac! I hope that some one more able than me can pick this up and help me (and the rest of us Mac users) out.
Here's what happens when I run a sample project that uses jME2Physics.
Jul 21, 2009 1:34:08 PM com.jmex.physics.PhysicsSpace scanAvailableImplementations
INFO: Physics implementation 'com.jmex.physics.impl.physx.PhysXSpace$PhysXFactory' not present.
Jul 21, 2009 1:34:08 PM org.odejava.Odejava <clinit>
SEVERE: Native code library (32 and 64 bit library) failed to load: java.lang.UnsatisfiedLinkError: /Users/kirk/droids/jME2Physics/impl/ode/lib/libodejava.jnilib: no suitable image found. Did find: /Users/kirk/droids/jME2Physics/impl/ode/lib/libodejava.jnilib: no matching architecture in universal wrapper
java.lang.UnsatisfiedLinkError: /Users/kirk/droids/jME2Physics/impl/ode/lib/libodejava.jnilib: no suitable image found. Did find: /Users/kirk/droids/jME2Physics/impl/ode/lib/libodejava.jnilib: no matching architecture in universal wrapper
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1881)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1798)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1047)
at org.odejava.Odejava.<clinit>(Odejava.java:88)
at com.jmex.physics.impl.ode.OdePhysicsSpace$OdeFactory.getImplementationVersion(OdePhysicsSpace.java:188)
at com.jmex.physics.PhysicsSpace.scanAvailableImplementations(PhysicsSpace.java:371)
at com.jmex.physics.PhysicsSpace.create(PhysicsSpace.java:340)
at com.jmex.physics.util.SimplePhysicsGame.initSystem(SimplePhysicsGame.java:91)
at com.jme.app.BaseGame.start(BaseGame.java:70)
at jmesample.Main.main(Main.java:26)
Jul 21, 2009 1:34:08 PM com.jmex.physics.PhysicsSpace scanAvailableImplementations
WARNING: Failed to use physics implementation 'com.jmex.physics.impl.ode.OdePhysicsSpace$OdeFactory' due to Exception/Error: java.lang.UnsupportedOperationException: Failed to load natives
java.lang.UnsupportedOperationException: Failed to load natives
at org.odejava.Odejava.init(Odejava.java:125)
at com.jmex.physics.impl.ode.OdePhysicsSpace$OdeFactory.getImplementationVersion(OdePhysicsSpace.java:188)
at com.jmex.physics.PhysicsSpace.scanAvailableImplementations(PhysicsSpace.java:371)
at com.jmex.physics.PhysicsSpace.create(PhysicsSpace.java:340)
at com.jmex.physics.util.SimplePhysicsGame.initSystem(SimplePhysicsGame.java:91)
at com.jme.app.BaseGame.start(BaseGame.java:70)
at jmesample.Main.main(Main.java:26)
Caused by: java.lang.UnsatisfiedLinkError: /Users/kirk/droids/jME2Physics/impl/ode/lib/libodejava.jnilib: no suitable image found. Did find: /Users/kirk/droids/jME2Physics/impl/ode/lib/libodejava.jnilib: no matching architecture in universal wrapper
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1881)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1798)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1047)
at org.odejava.Odejava.<clinit>(Odejava.java:88)
... 6 more
Jul 21, 2009 1:34:08 PM com.jmex.physics.PhysicsSpace scanAvailableImplementations
INFO: Physics implementation 'com.jmex.physics.impl.joode.JoodePhysicsSpace$JoodeFactory' not present.
Jul 21, 2009 1:34:08 PM com.jmex.physics.PhysicsSpace scanAvailableImplementations
INFO: Physics implementation 'com.jmex.physics.impl.jbullet.JBulletPhysicsSpace$JBulletFactory' not present.
Jul 21, 2009 1:34:08 PM class jmesample.Main start()
SEVERE: Exception in game loop
java.lang.IllegalStateException: No physics implementation was registered nor found!
at com.jmex.physics.PhysicsSpace.create(PhysicsSpace.java:348)
at com.jmex.physics.util.SimplePhysicsGame.initSystem(SimplePhysicsGame.java:91)
at com.jme.app.BaseGame.start(BaseGame.java:70)
at jmesample.Main.main(Main.java:26)
Does anyone have 64bit Mac native libs that will make jME2Physics work on a modern Mac? As I stated before, this is a huge problem for running physics apps on any 64bit Mac.
I have been trying to compile ODEJava myself, but with no luck at all. I have compiled ODE itself, but I'm not sure it turned out to be a 64bit library. The supplied script with ODEJava and the different topics on this forum have been no help at all to get 64bit natives ready.
Please help! (Not the desperation in my voice ;))