Unsatisfied Link Error using OpenAL

Started by Eistoeter, February 23, 2010, 16:25:54

Previous topic - Next topic

Eistoeter

Hello,

I'm trying to get OpenAL working, but I always receive the following error when calling any of the AL functions:

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.lwjgl.openal.AL10.nalGetSourcei(II)I
   at org.lwjgl.openal.AL10.nalGetSourcei(Native Method)
   at org.lwjgl.openal.AL10.alGetSourcei(AL10.java:810)

What's the problem here? Using LWJGL 2.3.0

kappa


Matzon

lwjgl-2.3>java -cp jar\lwjgl.jar;jar\lwjgl_test.jar;jar\lwjgl_util.jar;res -Djava.library.path=native\windows org.lwjgl.test.openal.PlayTest
Default device: DirectSound Software
Available devices:
0: DirectSound Software
1: Wave File Writer
no argument supplied, assuming Footsteps.wav
Waiting 5 seconds for sound to complete


seems to work fine...

Maybe you have some old stuff lying around in jre/ext?

Eistoeter

I'm on Windows XP SP3.

The test posted by Matzon is working with my system, too.

Maybe I have set up something wrong in my project? I'm programming with Eclipse. I have lwjgl.jar and lwjgl_util.jar in my build path. I linked lwjgl.jar with the lwjgl.dll in the properties dialog of the referenced library. This way I don't need to set -Djava.library.path in the VM arguments. I tought OpenAL32.dll cannot be found this way. But I get the same error if I use the VM argument to set the library path ...

Eistoeter