LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: WiESi on February 15, 2004, 18:10:05

Title: java.lang.UnsatisfiedLinkError: nglGenTextures
Post by: WiESi on February 15, 2004, 18:10:05
Hi!

I have a big problem with a new game I'm writing
on. When I use glGenTextures I get this exception:
QuoteException in thread "main" java.lang.UnsatisfiedLinkError: nglGenTextures
  at org.lwjgl.opengl.CoreGL11.nglGenTextures(Native Method)
  at org.lwjgl.opengl.CoreGL11.glGenTextures(Unknown Source)
  at Font.<init>(Font.java:37)
  at Breakout3D.<init>(Breakout3D.java:45)
  at Breakout3D.main(Breakout3D.java:71)
Press any key to continue...  


I'm using LWJGL 0.8.

WiESi
Title: java.lang.UnsatisfiedLinkError: nglGenTextures
Post by: Matzon on February 15, 2004, 21:56:03
Hmm, a bit puzzled - the error seems very real, but looking in the source for 0.8:
public static void glGenTextures(IntBuffer textures) {
nglGenTextures(textures.remaining(), textures, textures.position());
}
private static native void nglGenTextures(int n, IntBuffer textures, int textures_offset);


JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL11_nglGenTextures(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset)
{
GLuint *address = offset + (GLuint *)env->GetDirectBufferAddress(buffer);
glGenTextures((GLint) p0, address);
CHECK_GL_ERROR
}


and besides, glGenTextures is used *quite* often, and you're the first to report this... you have somekind of weird homemade build?
Title: java.lang.UnsatisfiedLinkError: nglGenTextures
Post by: princec on February 15, 2004, 22:55:00
This is almost certainly an older version of LWJGL hiding somewhere in the library path. Do a search for lwjgl_d.dll and lwjgl.dll and make sure you've only got one of each!

Cas :)
Title: java.lang.UnsatisfiedLinkError: nglGenTextures
Post by: WiESi on February 16, 2004, 13:13:19
Quote from: "princec"This is almost certainly an older version of LWJGL hiding somewhere in the library path. Do a search for lwjgl_d.dll and lwjgl.dll and make sure you've only got one of each!

Cas :)

I already did and replaced all those dll's through the new one. I also
tried LWJGL 0.7 and there was the same problem.

WiESi

EDIT: Can somebody please upload the DLLs and the JAR-file. Maybe
I've got a broken DLL or something...

EDIT: I solved the problem. Before calling GL-Functions I have to
open a window :lol: