Hello Guest

帮忙看看这是为什么,谢谢

  • 2 Replies
  • 2244 Views
帮忙看看这是为什么,谢谢
« on: October 09, 2015, 07:03:36 »
大家好,
我们语言好像不太通我直接上代码吧:
package test.EGL;
import org.lwjgl.egl.*;
public class EGLTest {
   public static void main(String[]args){
      long display = EGL10.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY);
      if(display !=EGL10.EGL_NO_DISPLAY){
         System.out.println("HOHO");
      }
   }
}
----------------------------------------------------
Exception in thread "main" java.lang.ExceptionInInitializerError
   at org.lwjgl.egl.EGL10.getInstance(EGL10.java:147)
   at org.lwjgl.egl.EGL10.eglGetDisplay(EGL10.java:388)
   at test.EGL.EGLTest.main(EGLTest.java:11)
Caused by: java.lang.RuntimeException: Failed to load library: libEGL.dll (error code = 126)
   at org.lwjgl.system.windows.WindowsUtil.windowsThrowException(WindowsUtil.java:28)
   at org.lwjgl.system.windows.WindowsLibrary.<init>(WindowsLibrary.java:33)
   at org.lwjgl.system.APIUtil.apiCreateLibrary(APIUtil.java:54)
   at org.lwjgl.LWJGLUtil.loadLibraryNative(LWJGLUtil.java:200)
   at org.lwjgl.egl.EGL.create(EGL.java:79)
   at org.lwjgl.egl.EGL.create(EGL.java:70)
   at org.lwjgl.egl.EGL.<clinit>(EGL.java:50)
   ... 3 more
-----------------------------------------------------------------------
使用的是LWJGL3.0.0b
在这里谢谢各位了^_^

*

Offline spasi

  • *****
  • 1988
    • WebHotelier
Re: 帮忙看看这是为什么,谢谢
« Reply #1 on: October 09, 2015, 12:10:10 »
EGL support in LWJGL requires an EGL implementation to be available. On Windows you can use ANGLE or the AMD OpenGL ES SDK.

This topic may also be helpful.

Re: 帮忙看看这是为什么,谢谢
« Reply #2 on: October 10, 2015, 08:19:50 »
EGL support in LWJGL requires an EGL implementation to be available. On Windows you can use ANGLE or the AMD OpenGL ES SDK.

This topic may also be helpful.
thank you