Login  Register

Missing method at jogl_mobile.dll

Posted by Alessandro on Dec 12, 2014; 2:31am
URL: https://forum.jogamp.org/Missing-method-at-jogl-mobile-dll-tp4033748.html

Hi, guys

I'd like to point out that library  jogl_mobile.dll miss the native side version of the following method from jogamp.opengl.egl.EGL.java class:
 
     private static native void dispatch_eglGetConfigAttributes(long dpy, long config,
            int attributeCount,
            Object attributes,
            int attributes_byte_offset,
            Object values,
           int valuesOffset,
           long procAddr);

When I try to run a demo with GLProfile.GL2ES2 and -Djogl.enable.ANGLE=true,  I have the following exception stack trace:

Exception in thread "main" java.lang.UnsatisfiedLinkError: jogamp.opengl.egl.EGL.dispatch_eglGetConfigAttributes(JJILjava/lang/Object;ILjava/lang/Object;IJ)V
        at jogamp.opengl.egl.EGL.dispatch_eglGetConfigAttributes(Native Method)
        at jogamp.opengl.egl.EGL.eglGetConfigAttributes(EGL.java:804)
        at jogamp.opengl.egl.EGLGraphicsConfiguration.EGLConfig2Capabilities(EGLGraphicsConfiguration.java:221)
        at jogamp.opengl.egl.EGLGraphicsConfigurationFactory.eglConfigs2GLCaps(EGLGraphicsConfigurationFactory.java:480)
        at jogamp.opengl.egl.EGLGraphicsConfigurationFactory.getAvailableCapabilities(EGLGraphicsConfigurationFactory.java:210)
        at jogamp.opengl.egl.EGLDrawableFactory.getAvailableCapabilitiesImpl(EGLDrawableFactory.java:718)
        at javax.media.opengl.GLDrawableFactory.getAvailableCapabilities(GLDrawableFactory.java:474)
        at com.jogamp.opengl.JoglVersion.getAvailableCapabilitiesInfo(JoglVersion.java:80)
        at com.jogamp.opengl.JoglVersion.getAllAvailableCapabilitiesInfo(JoglVersion.java:107)
        at com.jogamp.opengl.JoglVersion.getDefaultOpenGLInfo(JoglVersion.java:125)
        at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:218)
        at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:2246)
        at javax.media.opengl.GLProfile.get(GLProfile.java:959)
        at javax.media.opengl.GLProfile.get(GLProfile.java:975)
        at gles.tests.RawGLES2demo.main(RawGLES2demo.java:298)

The line 298 at RawGLES2demo.java is the following:
298   GLCapabilities caps = new GLCapabilities(GLProfile.get(GLProfile.GL2ES2));

Checking the jogl_mobile.dll with PE Viewer is possible to note that above method is missing, in both x86 and AMD64 versions.

It happens on JOGL 2.2.4 and 2.3.
I didn't check others releases

Best regards,
Alessandro "Aces"