Slick Forums Forum Index Slick Forums
Discuss the Slick 2D Library
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OpenAL Exception

 
Post new topic   Reply to topic    Slick Forums Forum Index -> Help / Discussion
View previous topic :: View next topic  
Author Message
drguildo



Joined: 16 Oct 2007
Posts: 60

PostPosted: Tue Oct 16, 2007 11:35 pm    Post subject: OpenAL Exception Reply with quote

I'm trying to get org.newdawn.slick.tests.SoundTest to run but am getting the following exception.

Code:

Wed Oct 17 00:20:41 BST 2007 INFO:Slick Build #179
Wed Oct 17 00:20:41 BST 2007 INFO:LWJGL Version: 1.1
Wed Oct 17 00:20:41 BST 2007 INFO:OriginalDisplayMode: 1680 x 1050 x 24 @50Hz
Wed Oct 17 00:20:41 BST 2007 INFO:TargetDisplayMode: 800 x 600 x 0 @0Hz
Wed Oct 17 00:20:42 BST 2007 INFO:Starting display 800x600
Wed Oct 17 00:20:42 BST 2007 INFO:Controllers not available
Wed Oct 17 00:20:42 BST 2007 INFO:Initialising sounds..
Wed Oct 17 00:20:42 BST 2007 ERROR:Sound initialisation failure.
Wed Oct 17 00:20:42 BST 2007 ERROR:Could not locate OpenAL library.
org.lwjgl.LWJGLException: Could not locate OpenAL library.
   at org.lwjgl.openal.AL.create(AL.java:153)
   at org.lwjgl.openal.AL.create(AL.java:104)
   at org.lwjgl.openal.AL.create(AL.java:191)
   at org.newdawn.slick.openal.SoundStore$1.run(SoundStore.java:271)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.newdawn.slick.openal.SoundStore.init(SoundStore.java:268)
   at org.newdawn.slick.Sound.<init>(Sound.java:54)
   at org.newdawn.slick.tests.SoundTest.init(SoundTest.java:54)
   at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:307)
   at org.newdawn.slick.tests.SoundTest.main(SoundTest.java:201)
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.lwjgl.openal.AL10.nalGenBuffers(ILjava/nio/IntBuffer;I)V
   at org.lwjgl.openal.AL10.nalGenBuffers(Native Method)
   at org.lwjgl.openal.AL10.alGenBuffers(AL10.java:987)
   at org.newdawn.slick.openal.OpenALStreamPlayer.<init>(OpenALStreamPlayer.java:60)
   at org.newdawn.slick.openal.SoundStore.getOggStream(SoundStore.java:749)
   at org.newdawn.slick.Music.<init>(Music.java:113)
   at org.newdawn.slick.tests.SoundTest.init(SoundTest.java:58)
   at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:307)
   at org.newdawn.slick.tests.SoundTest.main(SoundTest.java:201)


The command I'm running is:

Code:
java -cp lib/slick.jar:lib/lwjgl.jar -Djava.library.path=lib org.newdawn.slick.tests.SoundTest


I'd be grateful for any ideas as to what I might be doing wrong.

Thanks.
Back to top
View user's profile Send private message
Jon
Oldbie


Joined: 28 Nov 2006
Posts: 428

PostPosted: Wed Oct 17, 2007 4:11 am    Post subject: Reply with quote

You seem to be missing the DLL files for OpenAL.

- Jon
Back to top
View user's profile Send private message
drguildo



Joined: 16 Oct 2007
Posts: 60

PostPosted: Wed Oct 17, 2007 11:25 am    Post subject: Reply with quote

Jon wrote:
You seem to be missing the DLL files for OpenAL.

If you mean libopenal.so, it's in the lib directory along with all the other native stuff.
Back to top
View user's profile Send private message
drguildo



Joined: 16 Oct 2007
Posts: 60

PostPosted: Sat Oct 20, 2007 10:04 pm    Post subject: Reply with quote

I fixed this by downloading LWJGL 1.1.2 and copying across jinput.jar, lwjgl.jar and the Linux natives.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Slick Forums Forum Index -> Help / Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group