LWJGL Forum
Archive => FMOD => Topic started by: Catfish on April 10, 2005, 11:51:11
-
Heya,
I'm having trouble persuading the fmod samples to work in OS X.
java -cp .:res:jar/lwjgl.jar:jar/lwjgl_test.jar:jar/lwjgl_util.jar:jar/lwjgl_fmod3.jar:jar/lwjgl_devil.jar: -Djava.library.path=native org.lwjgl.test.fmod3.DSPTest res/phero.mp3
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl-fmod3 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at org.lwjgl.fmod3.FMOD.initialize(FMOD.java:218)
at org.lwjgl.fmod3.FMOD.<clinit>(FMOD.java:206)
at org.lwjgl.test.fmod3.DSPTest.main(DSPTest.java:74)
I've been to the fmod site, and wasn't entirely sure which binaries I'm supposed to get...so I got both the NativeFmod Runtime and the FMod API packages. I put the libraries from those in the native dir - is that right?
Any other hints would be appreciated. I'm not a java programmer, so I'm feeling a little lost right here...
-
fmod3 for lwjgl doesn not work at the moment, because fmod people didn't include a dynamic header for fmod on mac.
It's being worked on.
NativeFMod and FMOD4Java are 2 other implementations that are incompatible with lwjgl
-
Ah. That would explain a lot...
It's being worked on.
Got any rough ETA? Days/weeks/months?
Cheers,
Cat
-
Sorry, no idea at all since I haven't looked at it yet. It looks rather simple, but being in this business for some time now, I know that looks can be deceiving ;)
-
right, so people can't stop whining about it - so I took a look at it yesterday - and got it working!!
There are still some small kinks I need to work out (missing methods on mac (??) and some crashes). But basically it works as expected. I'll commit the build file later today (pending a talk with elias) and people should be able to build it themselves.
/matzon
-
there - stuff comitted!
cd src/native/common/fmod3
export FMOD=path/to/fmod
make -f Makefile.macosx
... lots of warnings ...
compiled (hopefully)
copy liblwjgl-fmod3.jnilib to a folder and test
Callbacks are broken, and perhaps other stuff too. Will work on this, later this week.
-
Oooh, neat. I'll give it a try - thanks. :)
-
Apologies if I'm missing something obvious, but shouldn't there be a org_lwjgl_fmod3_FMOD.h somewhere in there?
Cat
-
no, you need to build the headers by running:
ant headers
-
Ahhhh. That's much easy than me generating the headers by going through the .c files & stripping out the definitions ;)
The lwjgl fmod samples seem to be working nicely now - thanks for all the help.