LWJGL
May 22, 2012, 05:09:15 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: Unsatisfied Link Error using OpenAL  (Read 1838 times)
Eistoeter
Newbie
*
Posts: 15


« on: February 23, 2010, 08: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
Logged
kappa
Administrator
Nerdus Imperius
*****
Posts: 961



« Reply #1 on: February 23, 2010, 11:20:11 »

which OS are you on?
Logged
Matzon
Administrator
Demigod
*****
Posts: 2177



« Reply #2 on: February 23, 2010, 11:23:49 »

Code:
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?
Logged

http://certusgames.com (Free Online Multiplayer Java Games)
http://lwjgl.org (OpenGL/OpenAL for Java)
Eistoeter
Newbie
*
Posts: 15


« Reply #3 on: February 23, 2010, 11: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 ...
Logged
Eistoeter
Newbie
*
Posts: 15


« Reply #4 on: February 23, 2010, 12:41:12 »

Solved, I forgot to call AL.create  Roll Eyes
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!