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

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

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

seahorse
How do I interface JOGL with PowerVR OpenGL ES 2.0 dlls and libs on windows?
PowerVR i.e. Imagination technologies provide an OpenGL ES 2.0 Emulator
called libglesv2.lib and libGLESv2.dll along with libegl.lib and libegl.dll.
How do I connect JOGL to these?
Reply | Threaded
Open this post in threaded view
|

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

Sven Gothel
Administrator
On 02/10/2012 04:51 AM, sarvesh [via jogamp] wrote:
>
>
> How do I interface JOGL with PowerVR OpenGL ES 2.0 dlls and libs on windows?
> PowerVR i.e. Imagination technologies provide an OpenGL ES 2.0 Emulator
> called libglesv2.lib and libGLESv2.dll along with libegl.lib and libegl.dll.
> How do I connect JOGL to these?
>

Hmm .. I did that in the past using with some success using NEWT.
Last time I tried it still worked on Linux/X11.
All you have to do is to add the libraries to the PATH (Windows) /
LD_LIBRARY_PATH (X11).

The difficulty is to connect the native windowing id-s to EGL,
which may differ from platform to platform in case we emulate them.

In EGLDrawable line 145 Ihave added a hack to allow using the
Windows surface handle (DC) as the native display to derive the EGL display handle:

if( NativeWindowFactory.TYPE_WINDOWS.equals(NativeWindowFactory.getNativeWindowType(false)) ) {
     nDisplay = surface.getSurfaceHandle(); // don't even ask ..
} else {
     nDisplay = aDevice.getHandle(); // 0 == EGL.EGL_DEFAULT_DISPLAY
}

However, since nothing is guaranteed to be stable (API/Impl.) in those emulations
your mileage may vary.

If the profile test (etc/test.bat) exposes ES2, you are lucky then.

There is also the ANGLE emulation (from Google?) included in Chrome (at least on Windows).
Just checked .. we don't pick up ES2 with this emulation.

I will go through these scenarios while working on mobile within the next 2 weeks,
until then you may just use the GL2ES2 profile (common subset).
Sure you can also attempt to fix it yourself and we can discuss the changes while I pull them.

~Sven


signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

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

Sven Gothel
Administrator
In reply to this post by seahorse
On 02/10/2012 10:09 AM, Sven Gothel wrote:
> On 02/10/2012 04:51 AM, sarvesh [via jogamp] wrote:
>>
>>
>> How do I interface JOGL with PowerVR OpenGL ES 2.0 dlls and libs on windows?
>> PowerVR i.e. Imagination technologies provide an OpenGL ES 2.0 Emulator
>> called libglesv2.lib and libGLESv2.dll along with libegl.lib and libegl.dll.
>> How do I connect JOGL to these?
>>
>

I finished the evaluation and fixed the use of ES2 on desktop.

See ..

- http://jogamp.org/git/?p=jogl.git;a=commit;h=4011e70eed8c88aee0fcd051a50ab3f15bb94f68
- http://jogamp.org/git/?p=jogl.git;a=blob;f=doc/Platform.GLES.txt;hb=HEAD

So on Windows, you can use Google's ANGLE (included in Chrome)
or PowerVR/PVR (I tested 2.09.29.0649, 32bit).

The docs says it all I guess (drop them in your PATH env var).

~Sven


signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

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

seahorse
Thanks a lot!!!,

I will try this out ASAP but currently I am facing a problem as described at the url
http://forum.jogamp.org/cl-failed-with-return-code-1073741515-td3739622.html
Reply | Threaded
Open this post in threaded view
|

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

seahorse
I managed to download/compile JOGL  and it's unit tests from git.
When I run TestRedSquareGLES2 it runs first using Nvidia card(my system card)
and then using ARM(I guess this is prepackaged in the git source?).
How do I change it to run using libGLESv2, libEGL lib and dll from imagination?
 
Reply | Threaded
Open this post in threaded view
|

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

seahorse
This post was updated on .
In reply to this post by seahorse
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

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

Sven Gothel
Administrator
On 02/17/2012 05:23 PM, seahorse [via jogamp] wrote:
>
>
> I managed to download/compile JOGL  and it's unit tests from git.
> When I run TestRedSquareGLES2 it runs first using Nvidia card(my system
> card)
> and then using ARM(I guess this is prepackaged in the git source?).
> How do I change it to run using libGLESv2, libEGL lib and dll from
> imagination?
>  

http://jogamp.org/git/?p=jogl.git;a=blob;f=doc/Platform.GLES.txt;hb=HEAD#l18

Ensure that the native ES2/EGL libraries are available in your LD_LIBRARY_PATH
(or equivalent). Note that JOGL favors the spec lib names for it's lib name order:
  ES2: libGLESv2.so.2, libGLESv2.so, GLES20, GLESv2_CM
  EGL: libEGL.so.1, libEGL.so, EGL

Unix:
  In case you have libGLESv2.so.2 etc preinstalled, make sure you create the symbolic link:
    libGLESv2.so -> libGLESv2.so.2
    libEGL.so -> libEGL.so.1

.. then put both in front of your PATH (Windows) / LD_LIBRARY_PATH (Unix) / ..

~Sven


signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

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

seahorse
This post was updated on .
I pasted both libEGL.dll and libGLESv2.dll (I am on windows 7) to C:\Program Files\Java\jdk1.6.0_26\bin(PATH)
But when I run TestRedsquareES2NEWT.java it runs fine with Nvidia card but gives following error with libGLESv2.dll from PowerVR.

ime: 13.015
There was 1 failure:
1) test02GLES2(com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestRedSquareES2NEWT)
java.lang.RuntimeException: 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.newt.DefaultEDTUtil.invokeImpl(DefaultEDTUtil.java:189)
        at jogamp.newt.DefaultEDTUtil.invoke(DefaultEDTUtil.java:122)
        at jogamp.newt.DisplayImpl.runOnEDTIfAvail(DisplayImpl.java:191)
        at jogamp.newt.WindowImpl.runOnEDTIfAvail(WindowImpl.java:1587)
        at jogamp.newt.WindowImpl.setVisible(WindowImpl.java:783)
        at com.jogamp.newt.opengl.GLWindow.setVisible(GLWindow.java:336)
        at com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestRedSquareES2NEWT.runTestGL(TestRedSquareES2NEWT.java:95)
        at com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestRedSquareES2NEWT.test02GLES2(TestRedSquareES2NEWT.java:120)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
        at org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:48)
        at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at org.junit.runners.Suite.runChild(Suite.java:128)
        at org.junit.runners.Suite.runChild(Suite.java:24)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
        at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
        at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
        at org.junit.runner.JUnitCore.main(JUnitCore.java:45)
        at 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)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:361)
        at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:562)
        at com.jogamp.newt.opengl.GLWindow$1.windowResized(GLWindow.java:91)
        at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:2304)
        at jogamp.newt.WindowImpl.sendWindowEvent(WindowImpl.java:2247)
        at jogamp.newt.WindowImpl.setVisibleActionImpl(WindowImpl.java:764)
        at jogamp.newt.WindowImpl$VisibleAction.run(WindowImpl.java:775)
        at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:128)
        at jogamp.newt.DefaultEDTUtil$EventDispatchThread.run(DefaultEDTUtil.java:295)

FAILURES!!!
Tests run: 2,  Failures: 1

PVRVFrameSetGlesLibraryPath: C:\Program Files\Java\jdk1.6.0_26\bin\libGLES_CM.dll
PVRVFrameSetGlesv2LibraryPath: C:\Program Files\Java\jdk1.6.0_26\bin\libGLESv2.dll

==========================================================

 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?
Reply | Threaded
Open this post in threaded view
|

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

Sven Gothel
Administrator
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
Reply | Threaded
Open this post in threaded view
|

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

seahorse
I was trying with PVR 2.08 version.
I upgraded to PVR 2.09 and tried again.
This time I get the error below(Shader compilation failed)

[Also I noticed that without the PVR path setting the ARM version passes succesfully.
Can you tell me where the ARM dll and lib is located because when i searched in JOGL(which
was pulled from git) for libGLESv2.dll(I assume that is name of ARM dll) I could not find the same.]

+++ UITestCase.setUp: com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestRedSquareES2NEWT - test02GLES2
.Detected screen origin 0 / 0, size 1600 x 900
Thread[main-Display-Windows_nil-2-EDT-1,5,main] RedSquareES2.init ...
Thread[main-Display-Windows_nil-2-EDT-1,5,main]Chosen GLCapabilities: 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]]
Thread[main-Display-Windows_nil-2-EDT-1,5,main]INIT GL IS: jogamp.opengl.es2.GLES2Impl
Thread[main-Display-Windows_nil-2-EDT-1,5,main]GL_VENDOR: Imagination Technologies (Host GL: `NVIDIA Corporation`)
Thread[main-Display-Windows_nil-2-EDT-1,5,main]GL_RENDERER: PowerVR PVRVFrame 8.1 SGX (Host GL: `GeForce 8400 GS/PCI/SSE2`)
Thread[main-Display-Windows_nil-2-EDT-1,5,main]GL_VERSION: OpenGL ES 2.0 ( SDK build: 2.09.29.0646 )
Thread[main-Display-Windows_nil-2-EDT-1,5,main] GL Profile: GLProfile[GLES2/GLES2]
Thread[main-Display-Windows_nil-2-EDT-1,5,main] GL:jogamp.opengl.es2.GLES2Impl@1d7ad1c
Thread[main-Display-Windows_nil-2-EDT-1,5,main] GL_VERSION=OpenGL ES 2.0 ( SDK build: 2.09.29.0646 )
++++ UITestCase.tearDown: com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestRedSquareES2NEWT - test02GLES2
ESLOCK 1329828546252 --- localhost/127.0.0.1:59999 - Unlock ok

Time: 3.733
There was 1 failure:
1) test02GLES2(com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestRedSquareES2NEWT)
java.lang.RuntimeException: javax.media.opengl.GLException: createAndCompileShader: ShaderSource failed, GL Error: 0x501
        at jogamp.newt.DefaultEDTUtil.invokeImpl(DefaultEDTUtil.java:189)
        at jogamp.newt.DefaultEDTUtil.invoke(DefaultEDTUtil.java:122)
        at jogamp.newt.DisplayImpl.runOnEDTIfAvail(DisplayImpl.java:191)
        at jogamp.newt.WindowImpl.runOnEDTIfAvail(WindowImpl.java:1587)
        at jogamp.newt.WindowImpl.setVisible(WindowImpl.java:783)
        at com.jogamp.newt.opengl.GLWindow.setVisible(GLWindow.java:336)
        at com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestRedSquareES2NEWT.runTestGL(TestRedSquareES2NEWT.java:95)
        at com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestRedSquareES2NEWT.test02GLES2(TestRedSquareES2NEWT.java:120)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
        at org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:48)
        at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at org.junit.runners.Suite.runChild(Suite.java:128)
        at org.junit.runners.Suite.runChild(Suite.java:24)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
        at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
        at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
        at org.junit.runner.JUnitCore.main(JUnitCore.java:45)
        at com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestRedSquareES2NEWT.main(TestRedSquareES2NEWT.java:134)
Caused by: javax.media.opengl.GLException: createAndCompileShader: ShaderSource failed, GL Error: 0x501
        at com.jogamp.opengl.util.glsl.ShaderUtil$GL2ES2Impl.createAndCompileShader(ShaderUtil.java:360)
        at com.jogamp.opengl.util.glsl.ShaderUtil.createAndCompileShader(ShaderUtil.java:459)
        at com.jogamp.opengl.util.glsl.ShaderCode.compile(ShaderCode.java:210)
        at com.jogamp.opengl.util.glsl.ShaderProgram.add(ShaderProgram.java:162)
        at com.jogamp.opengl.test.junit.jogl.demos.es2.RedSquareES2.init(RedSquareES2.java:86)
        at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:150)
        at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:169)
        at com.jogamp.newt.opengl.GLWindow$InitAction.run(GLWindow.java:622)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:420)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:361)
        at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:562)
        at com.jogamp.newt.opengl.GLWindow$1.windowResized(GLWindow.java:91)
        at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:2304)
        at jogamp.newt.WindowImpl.sendWindowEvent(WindowImpl.java:2247)
        at jogamp.newt.WindowImpl.setVisibleActionImpl(WindowImpl.java:764)
        at jogamp.newt.WindowImpl$VisibleAction.run(WindowImpl.java:775)
        at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:128)
        at jogamp.newt.DefaultEDTUtil$EventDispatchThread.run(DefaultEDTUtil.java:295)

FAILURES!!!
Tests run: 2,  Failures: 1

In glShaderSource error: 501 (GL_INVALID_VALUE) : (null)
PVRVFrameSetGlesLibraryPath: C:\Program Files\Java\jdk1.6.0_26\bin\libGLES_CM.dll
PVRVFrameSetGlesv2LibraryPath: C:\Program Files\Java\jdk1.6.0_26\bin\libGLESv2.dll


Reply | Threaded
Open this post in threaded view
|

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

seahorse
Ok ARM emulator for OpenGL ES 2.0 is also named as libGLESv2.dll and since this was installed, it worked on windows 7.
But PVR version still doesnt work and even with 2.09 version and gives the shader compilation error I indicated
above.
Reply | Threaded
Open this post in threaded view
|

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

Sven Gothel
Administrator
On 02/21/2012 03:09 PM, seahorse [via jogamp] wrote:
>
>
> Ok ARM emulator for OpenGL ES 2.0 is also named as libGLESv2.dll and I had
> this on my PC so it worked on windows 7.:-)
Never tried it.

> But PVR version still doesnt work and even with 2.09 version and gives the
> shader compilation error I indicated
> above.
I just tried GLProfile availability, sorry :)

Displaimer: Even using the PVR emulation/wrapper, since your mileage
may vary anyways w/ real hardware drivers .. the benefit of using such
wrappers is IMHO very limited.

However, I will check the shader code after the whole ARMv7 endeavor.
Which may take a while (end of the week or so).

~Sven


signature.asc (910 bytes) Download Attachment