LWJGL
May 19, 2013, 09:33:25 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL is now using GitHub
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: java.lang.UnsatisfiedLinkError: nFSOUND_Stream_Open, OSX Intel, lwjgl 1.1  (Read 5925 times)
Owen Butler
Newbie
*
Posts: 5


« on: July 10, 2007, 06:54:01 »

Hi,

I'm getting the following error when trying to call

Code:
FSound.FSOUND_Stream_Open(data, FSound.FSOUND_LOADMEMORY)

Code:
java.lang.UnsatisfiedLinkError: nFSOUND_Stream_Open

Here's the full stack trace.

Code:
java.lang.UnsatisfiedLinkError: nFSOUND_Stream_Open
at org.lwjgl.fmod3.FSound.nFSOUND_Stream_Open(Native Method)
at org.lwjgl.fmod3.FSound.FSOUND_Stream_Open(FSound.java:2103)
at org.jgameengine.audio.fmod.FMODStreamHandle.loadStreamFromFile(FMODStreamHandle.java:57)
at org.jgameengine.audio.fmod.FMODAudioManager.loadMusicInMemory(FMODAudioManager.java:84)
at org.jgameengine.testgame.initialiser.TestGameClientInitialiser.initialiseEngine(TestGameClientInitialiser.java:33)
at org.jgameengine.engine.Engine.initEngine(Engine.java:267)
at org.jgameengine.launcher.FirstLauncher.main(FirstLauncher.java:47)

I'm fairly sure it's not an obvious error like I don't have the native library path set.  The reason I'm sure of this is that I've successfully called

Code:
FSound.FSOUND_Init(getSampleRate(), getNumberOfChannels(), 0)

And:

Code:
FSound.FSOUND_Update();

Here's the bit I'm adding to the command line to set the native library path:

Code:
-Djava.library.path=/Users/owenbutler/lib/lwjgl-1.1/native/macosx:/Users/owenbutler/lib/lwjgl_optional-1.1/native/macosx

I'm at a bit of a loss.  I've pretty much just copy and pasted example code from this example here:

http://svn.sourceforge.net/viewvc/java-game-lib/trunk/LWJGL/src/java/org/lwjgl/test/fmod3/StreamPlayerMemory.java?view=markup

Any ideas?
Logged
Fool Running
Nerdus Imperius
*****
Posts: 740


« Reply #1 on: July 10, 2007, 07:01:50 »

Unless it was changed, LWJGL doesn't come with the FMOD dll for licensing reasons since it isn't free software.
The only thing I can think of is that you don't have the FMOD dll. You need to go to the FMOD website and get the dll from there and add it to your path as well.

Hope that helps Grin
Logged

Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option Grin
Owen Butler
Newbie
*
Posts: 5


« Reply #2 on: July 10, 2007, 07:06:10 »

Hi Fool Running,

From reading the thread here:

http://lwjgl.org/forum/index.php/topic,1898.0.html

I'm led to believe that you don't need to download a dll for OSX.  Seems that the OSX equivalent of a dll is included in the optional zip.  Specifically:

http://lwjgl.org/forum/index.php/topic,1898.msg11156.html#msg11156
Logged
Matzon
Administrator
Demigod
*****
Posts: 2237



« Reply #3 on: July 10, 2007, 09:00:05 »

have you made sure to call FMOD.create(); before loading?
Logged

Owen Butler
Newbie
*
Posts: 5


« Reply #4 on: July 10, 2007, 14:29:57 »

have you made sure to call FMOD.create(); before loading?

Hi Matzon,

I'm a complete fool!  I had a call to this, but I recently re-organized a few lines in my initialization code and the music start ended up before the audio init.  Thanks Matzon!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!