Hello Guest

Unsatisfied Link Error using OpenAL

  • 4 Replies
  • 13892 Views
Unsatisfied Link Error using OpenAL
« on: February 23, 2010, 16:25:54 »
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

*

Offline kappa

  • *****
  • 1319
Re: Unsatisfied Link Error using OpenAL
« Reply #1 on: February 23, 2010, 19:20:11 »
which OS are you on?

*

Offline Matzon

  • *****
  • 2242
Re: Unsatisfied Link Error using OpenAL
« Reply #2 on: February 23, 2010, 19:23:49 »
Code: [Select]
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?

Re: Unsatisfied Link Error using OpenAL
« Reply #3 on: February 23, 2010, 19:52:13 »
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 ...

Re: Unsatisfied Link Error using OpenAL
« Reply #4 on: February 23, 2010, 20:41:12 »
Solved, I forgot to call AL.create  ::)