Library names

What should the correct library names passed to System.loadLibrary() be? Just checking if these are right…

Linux:-

[tr][td]File[/td][td] System.loadLibrary()[/td][/tr]
[tr][td]liblwjgl.so[/td][td] lwjgl[/td][/tr]
[tr][td]liblwjgl_d.so[/td][td] lwjgl_d[/td][/tr]
[tr][td]libopenal.so[/td][td] openal[/td][/tr]

Mac:-

[tr][td]File[/td][td] System.loadLibrary()[/td][/tr]
[tr][td]liblwjgl.jnilib[/td][td] lwjgl[/td][/tr]
[tr][td]liblwjgl_d.jnilib[/td][td] lwjgl_d[/td][/tr]
[tr][td]openal.dylib[/td][td] openal or openal.dylib ?[/td][/tr]

(I know the Windows ones work!)

I am bit confused, as to why you’re asking this… you really shouldn’t have to change the name!

anyway - the name passed is lwjgl, on Windows the VM will then mangle the name to lwjgl.dll, on linux liblwjgl.so and on mac os x liblwjgl.jnilib.
The _d version isn’t used anymore, and the openal library isn’t loaded by the VM (it is however loaded by our code, using the LodeOpenAL code (http://cvs.sourceforge.net/viewcvs.py/checkout/java-game-lib/LWJGL/src/native/common/extal.cpp?content-type=text%2Fplain&rev=1.20) in conjunction with create() from
http://cvs.sourceforge.net/viewcvs.py/checkout/java-game-lib/LWJGL/src/java/org/lwjgl/openal/AL.java?content-type=text%2Fplain&rev=1.24

However, as Matzon alluded to, you shouldn’t really care about this at all!

LWJGL handles locating and loading the native libraries when needed. Just start calling OpenGL/OpenAL methods and it’ll take care of things.

Erm, I thought it was needed for JWS :-[ It wasn’t a show stopper under Windows so it seemed like the right thing at the time. I’ve taken it out this pointlessness for UridiumGL 0.3 and it works (for me anyway)!

I just tested the latest version of UridiumGL 0.3 - webstart seems to load all libs fine, the display turns fullscreen, but I’m just left with blackness. :frowning:

Hope there’s a way to fix this, as I’m really looking forward to playing this classic! :slight_smile:

[quote]I just tested the latest version of UridiumGL 0.3 - webstart seems to load all libs fine, the display turns fullscreen, but I’m just left with blackness. :frowning:

Hope there’s a way to fix this, as I’m really looking forward to playing this classic! :slight_smile:
[/quote]
You might have to wait a bit longer. I had to wait at least half a minute whilst looking at black screen before anything happened (although the harddisk was quitely churning away, I guess loading images or something)