Hello Guest

FMOD LinkageError on Win32 with v0.97

  • 1 Replies
  • 6619 Views
FMOD LinkageError on Win32 with v0.97
« on: May 23, 2005, 18:25:51 »
With the newest version (v0.97) of LWJGL I get an LinkageError when using FMOD library.
Following Exception is thron at starting test application
org.lwjgl.test.fmod3.MusicPlayer
 
Exception in thread "main" java.lang.LinkageError: Unsupported platform
        at org.lwjgl.fmod3.FMOD.constructFMODSearchPaths(FMOD.java:279)
        at org.lwjgl.fmod3.FMOD.create(FMOD.java:255)
        at org.lwjgl.test.fmod3.MusicPlayer.main(MusicPlayer.java:67)

After checking source code I figured out, this error is located in class FMOD, at "constructFMODSearchPaths()".

// determine os library name
String dllName = FMOD_WIN32_LIBRARY_NAME;
switch (LWJGLUtil.getPlatform()) {
   case LWJGLUtil.PLATFORM_MACOSX:
      dllName = FMOD_OSX_LIBRARY_NAME;
      break;
   case LWJGLUtil.PLATFORM_LINUX:
      dllName = FMOD_LINUX_LIBRARY_NAME;
      break;
   default:
      throw new LinkageError("Unsupported platform");
}

This construct definitely leads to this exception on any OS other than MaxOS or Linux.

Please repair this bug as fast as possible.

Thanx.

*

Offline Matzon

  • *****
  • 2242
FMOD LinkageError on Win32 with v0.97
« Reply #1 on: May 23, 2005, 21:02:16 »
it is repaired in CVS, we're waiting to release a patched release since we want to release some devil fixes too