| View previous topic :: View next topic |
| Author |
Message |
drguildo

Joined: 16 Oct 2007 Posts: 60
|
Posted: Tue Oct 16, 2007 11:35 pm Post subject: OpenAL Exception |
|
|
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 |
|
 |
Jon Oldbie
Joined: 28 Nov 2006 Posts: 428
|
Posted: Wed Oct 17, 2007 4:11 am Post subject: |
|
|
You seem to be missing the DLL files for OpenAL.
- Jon |
|
| Back to top |
|
 |
drguildo

Joined: 16 Oct 2007 Posts: 60
|
Posted: Wed Oct 17, 2007 11:25 am Post subject: |
|
|
| 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 |
|
 |
drguildo

Joined: 16 Oct 2007 Posts: 60
|
Posted: Sat Oct 20, 2007 10:04 pm Post subject: |
|
|
| I fixed this by downloading LWJGL 1.1.2 and copying across jinput.jar, lwjgl.jar and the Linux natives. |
|
| Back to top |
|
 |
|