Could not locate OpenAL library

Been going through all the tutorials, and the first one with sound fails. Went back and tried the sound test as well and it also fails. All the other librarys seem to load, but the libopenal.so doesn't seem to load. Any ideas?


Aug 12, 2007 12:30:25 PM com.jme.app.BaseGame start
INFO: Application started.
Aug 12, 2007 12:30:25 PM com.jme.system.PropertiesIO <init>
INFO: PropertiesIO created
Aug 12, 2007 12:30:25 PM com.jme.system.PropertiesIO load
INFO: Read properties
Aug 12, 2007 12:31:45 PM com.jme.input.joystick.DummyJoystickInput <init>
INFO: Joystick support is disabled
Aug 12, 2007 12:31:45 PM com.jme.system.lwjgl.LWJGLDisplaySystem <init>
INFO: LWJGL Display System created.
Aug 12, 2007 12:31:46 PM com.jme.system.lwjgl.LWJGLDisplaySystem getValidDisplayMode
INFO: Selected DisplayMode: 640 x 480 x 24 @53Hz
Aug 12, 2007 12:31:46 PM com.jme.system.PropertiesIO save
INFO: Saved properties
Aug 12, 2007 12:31:46 PM com.jme.app.BaseSimpleGame initSystem
INFO: jME version 1.0 alpha
Aug 12, 2007 12:31:46 PM com.jme.renderer.lwjgl.LWJGLRenderer <init>
INFO: LWJGLRenderer created. W:  640H: 480
Aug 12, 2007 12:31:47 PM com.jme.app.BaseSimpleGame initSystem
INFO: Running on: null
Driver version: null
NVIDIA Corporation - GeForce FX 5700LE/AGP/SSE2 - 2.1.1 NVIDIA 100.14.11
Aug 12, 2007 12:31:47 PM com.jme.renderer.AbstractCamera <init>
INFO: Camera created.
Aug 12, 2007 12:31:47 PM com.jme.util.lwjgl.LWJGLTimer <init>
INFO: Timer resolution: 1000 ticks per second
Aug 12, 2007 12:31:47 PM com.jme.scene.Node <init>
INFO: Node created.
Aug 12, 2007 12:31:47 PM com.jme.scene.Node <init>
INFO: Node created.
Aug 12, 2007 12:31:47 PM com.jme.scene.Node attachChild
INFO: Child (FPS label) attached to this node (FPS node)
Aug 12, 2007 12:31:47 PM com.jmex.sound.openAL.SoundSystem <clinit>
INFO: DETECT OPERATING SYSTEM
Aug 12, 2007 12:31:47 PM com.jmex.sound.openAL.SoundSystem <clinit>
INFO: CREATE OPENAL
Aug 12, 2007 12:31:47 PM com.jmex.sound.openAL.SoundSystem initializeOpenAL
SEVERE: Failed to Initialize OpenAL...
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:189)
        at com.jmex.sound.openAL.SoundSystem.initializeOpenAL(Unknown Source)
        at com.jmex.sound.openAL.SoundSystem.<clinit>(Unknown Source)
        at jmetest.sound.openal.TestSoundGraph.simpleInitGame(Unknown Source)
        at com.jme.app.BaseSimpleGame.initGame(Unknown Source)
        at com.jme.app.BaseGame.start(Unknown Source)
        at jmetest.sound.openal.TestSoundGraph.main(Unknown Source)
Aug 12, 2007 12:31:47 PM com.jmex.sound.openAL.SoundSystem <clinit>
INFO: CREATE LISTENER
Aug 12, 2007 12:31:47 PM com.jme.scene.Node attachChild
INFO: Child (Box) attached to this node (rootNode)
Aug 12, 2007 12:31:47 PM com.jme.scene.Node attachChild
INFO: Child (Box2) attached to this node (rootNode)
Aug 12, 2007 12:31:47 PM com.jme.scene.Node attachChild
INFO: Child (Box3) attached to this node (rootNode)
Aug 12, 2007 12:31:47 PM com.jmex.sound.openAL.scene.SoundNode <init>
INFO: Node created.
Aug 12, 2007 12:31:48 PM class jmetest.sound.openal.TestSoundGraph start()
SEVERE: Exception in game loop
java.lang.UnsatisfiedLinkError: org.lwjgl.openal.AL10.nalGenSources(ILjava/nio/IntBuffer;I)V
        at org.lwjgl.openal.AL10.nalGenSources(Native Method)
        at org.lwjgl.openal.AL10.alGenSources(AL10.java:718)
        at com.jmex.sound.openAL.objects.util.StreamPlayer.generateSource(Unknown Source)
        at com.jmex.sound.openAL.objects.util.StreamPlayer.add(Unknown Source)
        at com.jmex.sound.openAL.objects.util.StreamPlayer.openStream(Unknown Source)
        at com.jmex.sound.openAL.objects.MusicStream.<init>(Unknown Source)
        at com.jmex.sound.openAL.SoundSystem.createStream(Unknown Source)
        at com.jmex.sound.openAL.SoundSystem.createStream(Unknown Source)
        at jmetest.sound.openal.TestSoundGraph.simpleInitGame(Unknown Source)
        at com.jme.app.BaseSimpleGame.initGame(Unknown Source)
        at com.jme.app.BaseGame.start(Unknown Source)
        at jmetest.sound.openal.TestSoundGraph.main(Unknown Source)
Aug 12, 2007 12:31:48 PM com.jme.app.BaseSimpleGame cleanup
INFO: Cleaning up resources.
Aug 12, 2007 12:31:48 PM com.jme.app.BaseGame start
INFO: Application ending.



OS: Linux Fedora Core 7
CPU: AMD64

Maybe a conflicting OpenAL installed and already loaded ? (try lsmod) i remember problems on suse with that.



edit: nah forget it, that was a quickshot and OpenAl should use ALSA or any other low level sound system but in Your case

it really looks that it can't load the shared object. Are You sure it is there and in Your library path ? maybe re-download it to be sure it's ok.

(but still look for another libopenal.so)

I actually had the exact same problem on Fedora 7 with my AMD64.  I was working on something else so I didn't explore it, but it probably has to do with a lacking 64-bit build of OpenAL for Linux?

Yep, that is the problem…



http://www.jmonkeyengine.com/jmeforum/index.php?topic=5134.msg41120#msg41120



In this thread I posted a solution.