Hi,
I got a working project on a PC under Windows Vista with an older version of lwjgl (2.0.X I think). I move to another PC with a fresh install with Windows Under and the lastest version of lwjgl (2.2.2). When I put the mouse over the display, I get :
1 2 3 4 5 6 7 8 9 10 11 12
| Exception in thread "main" java.lang.UnsatisfiedLinkError: org.lwjgl.opengl.WindowsDisplay.nTrackMouseEvent(J)Z at org.lwjgl.opengl.WindowsDisplay.nTrackMouseEvent(Native Method) at org.lwjgl.opengl.WindowsDisplay.doHandleMessage(WindowsDisplay.java:822) at org.lwjgl.opengl.WindowsDisplay.handleMessage(WindowsDisplay.java:756) at org.lwjgl.opengl.WindowsDisplay.nUpdate(Native Method) at org.lwjgl.opengl.WindowsDisplay.update(WindowsDisplay.java:410) at org.lwjgl.opengl.Display.processMessages(Display.java:628) at org.lwjgl.opengl.Display.update(Display.java:660) at net.bonbonchan.pairs.MainTools.run(MainTools.java:1043) at java.lang.Thread.run(Thread.java:619) at net.bonbonchan.pairs.MainTools.<init>(MainTools.java:92) at net.bonbonchan.pairs.MainTools.main(MainTools.java:639) |
I think that I saw something like that in this forum but I didn't find it.
My init code don't have anything special :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| private void initlwjgl(String title) { try { canvasLWJGL.setIgnoreRepaint(true);
Display.setTitle(title); Display.setFullscreen(false); Display.setVSyncEnabled(true); Display.setParent(canvasLWJGL);
PixelFormat pf = new PixelFormat(2, 0, 1, 1);
try { Display.create(pf); } catch(LWJGLException e) { System.err.println("No antialiasing"); pf = new PixelFormat(2, 0, 1, 0); Display.create(pf); } } catch (LWJGLException e) { System.err.println("Cant' create Display : "+e.toString()); System.exit(0); }
try { Keyboard.create(); Mouse.create(); } catch (LWJGLException ex) { ex.printStackTrace(); } } |
Why
