Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  ODE: trouble linking native libraries on OS X  (Read 1852 times)
0 Members and 1 Guest are viewing this topic.
Offline werth

Innocent Bystander

Aspiring Intermediate

« Posted 2005-04-12 04:58:52 »

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(
       at org.odejava.World.<init>(

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.

Offline rdi

Innocent Bystander

Java games rock!

« Reply #1 - Posted 2005-04-22 13:23:36 »

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.
Offline holodri

Senior Newbie

Java games rock!

« Reply #2 - Posted 2005-04-23 10:53:21 »

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

but xith3d crashes ..

"Process finished with exit code 10"

Pages: [1]
  ignore  |  Print  

EgonOlsen (45 views)
2018-06-10 19:43:48

EgonOlsen (27 views)
2018-06-10 19:43:44

EgonOlsen (47 views)
2018-06-10 19:43:20

DesertCoockie (210 views)
2018-05-13 18:23:11

nelsongames (127 views)
2018-04-24 18:15:36

nelsongames (126 views)
2018-04-24 18:14:32

ivj94 (867 views)
2018-03-24 14:47:39

ivj94 (128 views)
2018-03-24 14:46:31

ivj94 (779 views)
2018-03-24 14:43:53

Solater (143 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!