LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: tanukitzu on March 29, 2006, 16:52:45

Title: UnsatisfiedLinkError: nSetSwapInterval
Post by: tanukitzu on March 29, 2006, 16:52:45
I checked out lwjgl from CVS but was unable to build the mac os x native so I linked to the lwjgl 0.99 version of liblwjgl.jnilib and ran WindowCreationTest getting the following error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: nSetSwapInterval
   at org.lwjgl.opengl.MacOSXContextImplementation.nSetSwapInterval(Native Method)
   at org.lwjgl.opengl.MacOSXContextImplementation.setSwapInterval(MacOSXContextImplementation.java:116)
   at org.lwjgl.opengl.Context.setSwapInterval(Context.java:221)
   at org.lwjgl.opengl.Display.setSwapInterval(Display.java:800)
   at org.lwjgl.opengl.Display.createWindow(Display.java:269)

When I comment out the line:

setSwapInterval(swap_interval);

in Display.createWindow() it works fine.

Any explanation about what is going wrong?  Thanks in advance!
Title: UnsatisfiedLinkError: nSetSwapInterval
Post by: oNyx on March 30, 2006, 13:40:55
setSwapInterval is a new method which was added after 0.99 was released.