Hello Guest

OpenAL Unsatisfied Link Error

  • 1 Replies
  • 9698 Views
OpenAL Unsatisfied Link Error
« 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);
alGenBuffers(soundBuffer);
alBufferData(soundBuffer.get(0), shot.format, shot.data, shot.samplerate);
shot.dispose();
}

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.

*

Offline oskar

  • *
  • 11
Re: [BUG] OpenAL Unsatisfied Link Error
« Reply #1 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?