Mac the DevIL libraries and lwjgl

I’m trying to get the lwjgl libraries to work for me. I’ve narrowed the problem down with some image stuff to the libIL.dylib file. I believe something was goofed in the binary. When I try to do a System.loadLibrary, I get this -

resolveUndefined(_jpeg_resync_to_restart) in /xxx/libIL.dylib
Exception in thread “main” java.lang.UnsatisfiedLinkError: /xxx/libIL.dylib:

jpeg_resync_to_restart is listed in il_jpeg.c under the DevIL source tree.

I have no idea how to compile a Mac library. The sourceforge site lists SDK’s for Win/Lin but not Mac. Can anyone help?

Regards,
Dr. A>

try installing this one:
http://prdownloads.sourceforge.net/openil/DevIL_Binary_1.6.7.tgz

The problem is that devil is looking for its support libraries on Mac and Linux. We’re working on a fix, but it’s tricky.

No luck. :frowning: Here is what I’m getting -

Thu Jun 09 13:16:03 CDT 2005: INFO : GL11 Init Complete
Thu Jun 09 13:16:03 CDT 2005: INFO : Initialising sounds…
Thu Jun 09 13:16:03 CDT 2005: INFO : - Sound works
Thu Jun 09 13:16:03 CDT 2005: INFO : - Sounds source generated
Thu Jun 09 13:16:03 CDT 2005: INFO : Loading texture (res/font.png)
Thu Jun 09 13:16:03 CDT 2005: INFO : DEVIL caching texture (res/font.png)
resolveUndefined(_jpeg_resync_to_restart) in libIL.dylib
resolveUndefined(_jpeg_resync_to_restart) in libIL.dylib
resolveUndefined(_jpeg_resync_to_restart) in libIL.dylib
resolveUndefined(_jpeg_resync_to_restart) in libIL.dylib
org.lwjgl.LWJGLException: Could not load devil library.
at org.lwjgl.devil.IL.nCreate(Native Method)
at org.lwjgl.devil.IL.create(IL.java:587)

Is there any way for me to try and compile the sources and make a new lib? It does have an xcode project, but I’ve never really used XCode before.

Cheers,
Dr. A>

hum… I’ll look into this tomorrow.

Any news? Anything I can do to help?

Cheers,
Dr. A>

if I run it without the /usr/local/lib files present I get an immediate error using org.lwjgl.test.devil.BasicTest
however as soon as I install those files (above link), I can run the test just fine (when I disable ILUT.create)
I am not sure what you’re issue is then… perhaps some incompatable files installed? Are you using the 0.97.1 release or 0.97 release ?

I’m using the latest from the devIL site. I don’t understand why I only have a problem with the one library? Also, why is it named differently than normal Mac jni libraries ie- libXXXX.jnilib.

I want to be able to use it from where ever I am running my app, rather than have to install it into my extensions directory.

Any other Mac users have this issue?

Regards,
Dr. A>