Login  Register

Re: How do I interface JOGL with PowerVR OpenGL ES 2.0 dlls and libs on windows?

Posted by Sven Gothel on Feb 21, 2012; 11:22am
URL: https://forum.jogamp.org/How-do-I-interface-JOGL-with-PowerVR-OpenGL-ES-2-0-dlls-and-libs-on-windows-tp3731608p3763271.html

On 02/21/2012 08:29 AM, seahorse [via jogamp] wrote:
>
>
> I pasted both libEGL.dll and libGLESv2.dll (I am on windows 7) to C:\Program
> Files\Java\jdk1.6.0_26\bin(PATH)

I simply did setup the PATH (not putting it in the jdk bin ..

set PATH=%JAVA_HOME%\bin;%ANT_PATH%\bin;\PVRVFrame\OGLES-2.0\Windows_x86_32;%PATH%

Only tried linux/win7 32bit w/ NV as the 'host'.

Was using: PVRVFrame_2.09.29.0649.tar.gz

I will try it again on win7 after my current tasks (jenkins-omap4 etc).

> But when I run TestRedsquareES2NEWT.java it runs fine with Nvidia card but
> gives following error.
>
> ime: 13.015
> There was 1 failure:
> 1)

<snip/>

> com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestRedSquareES2NEWT.main(TestRedSquareES2NEWT.java:134)
> Caused by: javax.media.opengl.GLException: Error creating OpenGL context:
> eglDisplay 0x2, eglConfig
> EGLGraphicsConfiguration[DefaultGraphicsScreen[EGLGraphicsDevice[type EGL,
> connection decon, unitID 0, handle 0x2], idx 0], eglConfigID 0x5,
> requested GLCaps[on-scr, rgba 0x8/8/8/0, opaque, accum-rgba 0/0/0/0,
> dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GLES2/GLES2]],
> chosen    GLCaps[0x5: vid 0x0, on-scr, rgba 0x8/8/8/8, opaque, accum-rgba
> 0/0/0/0, dp/st/ms: 24/8/0, dbl, mono  , hw, GLProfile[GLES2/GLES2],
> [GLES2]]], GLProfile[GLES2/GLES2], shareWith 0x0, error 0x3003
> at jogamp.opengl.egl.EGLContext.createImpl(EGLContext.java:190)
> at
> jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:509)
> at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:428)
> at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:412)
>
<snip/>

>
>  I noticed the file  EGLES2DynamicLibraryBundleInfo.java has the following
>   // for windows distributions using the 'unlike' lib prefix
>             // where our tool does not add it.
>             libsGL.add("libGLESv2");
>             libsGL.add("libGLESv2_CM");
>             libsGL.add("libGLES20");
>
> Do i need to change the first line to libGLESv2.dll?

Nope, it's been picked up automatically
and it has in your example.

If in doubt, run with: '-Djogamp.debug.NativeLibrary=true'

~Sven


signature.asc (910 bytes) Download Attachment