Programming => OpenAL => Topic started by: monsieurdozier on July 08, 2012, 15:24:00

Title: OpenAL Unsatisfied Link Error
Post by: monsieurdozier on July 08, 2012, 15:24:00
I started working on sound for my game, starting with a basic gunshot noise.

Here's the loading code:
Code: [Select]
private void loadSounds() {
WaveData shot = WaveData.create("/res/sound/gun.wav");
soundBuffer = BufferUtils.createIntBuffer(1);
alBufferData(soundBuffer.get(0), shot.format, shot.data, shot.samplerate);

And here's the Unsatisfied Link Error I get:

Code: [Select]
Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: org.lwjgl.openal.AL10.nalGenBuffers(IJ)V
at org.lwjgl.openal.AL10.nalGenBuffers(Native Method)
at org.lwjgl.openal.AL10.alGenBuffers(AL10.java:1019)
at DemonCycle.Game.loadSounds(Game.java:102)
at DemonCycle.Game.access$3(Game.java:99)
at DemonCycle.Game$1.run(Game.java:58)

I'm running Ubuntu 12.04 64 bit, Eclipse Indigo with Java 6, and LWJGL 2.8.4.  I didn't get any response from the OpenAL section, and since this deals with the natives I figured I should post it here.
Title: Re: [BUG] OpenAL Unsatisfied Link Error
Post by: oskar on August 04, 2012, 07:28:52
This seems like the natives have not been set up correctly. Have you tried doing a clean install of the latest version of the LWJGL?