OpenAL Unsatisfied Link Error

Started by monsieurdozier, July 08, 2012, 15:24:00

Previous topic - Next topic

monsieurdozier

I started working on sound for my game, starting with a basic gunshot noise.

Here's the loading code:
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:

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.

oskar

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?