ODE: trouble linking native libraries on OS X

I’m trying to get an ODE project running on OS X that has previously only been deployed on Windows. I’ve made no code changes, but have acquired the release builds of the ODE libraries – libodejava.jnilib and libode.dylib. When I run the program, I get a java.lang.UnsatisfiedLinkError on the ode native library.

I’m fairly confident that libraries are in the proper place, and just in case I made aliases in /usr/lib, /usr/lib/java, and /Library/Java/Extensions. But still I get:

resolveUndefined(_abort) in /Users/brad/testproject/bin/libodejava.jnilib
0 [main] FATAL odejava - Native code library failed to load. java.lang.UnsatisfiedLinkError: /Users/brad/testproject/bin/libodejava.jnilib:
Exception in thread “main” java.lang.UnsatisfiedLinkError: dWorldCreate
at org.odejava.ode.OdeJNI.dWorldCreate(Native Method)
at org.odejava.ode.Ode.dWorldCreate(Ode.java:526)
at org.odejava.World.(World.java:112)

I can’t google any information on the “resolveUndefined” bit in the error message, which appears to be the source of problems. Does anyone have any pointers for me? I appreciate any help you can give.

Thanks,
Brad

I’m running into the same problem in a completely different context: the JNI lib is being found, but giving an UnsatisfiedLinkError when I try to invoke a method in it.

Unfortunately the OS X JVM doesn’t give much more info on what’s happening, but from my experiments on another platform, it may be that some library that libodejava depends on is missing, or not present in java.library.path. So you may be missing a library that this code depends on. (I still haven’t resolved this issue in my own code on OS X, but I got it working on Linux because the JVM there actually tells you what symbol wasn’t found in the native code lib.)

Hope this helps. Reply if you need more info.

hmm … i got odejava running on osx. its easy to compile as long as one doesnt read the osx howto first. just run the make-osx.sh

but xith3d crashes …
:-[

“Process finished with exit code 10”