Imagination PowerVR SDK Blog

Run PoverVR examples on Lunux Ubuntu 12.04 desktop

pvrvframe

#1

I am trying to build and run some PowerVR examples on my Linux Laptop with PVRVFrame by following the user manual.
I am able to build the example and the library seems to be fine as shown below:

ldd OGLES2ChameleonMan
linux-vdso.so.1 => (0x00007fffe5ffc000)
libGLESv2.so => /opt/Imagination/PowerVR_Graphics/PowerVR_Tools/PVRVFrame/Library/Linux_x86_64/libGLESv2.so (0x00007fca99871000)
libEGL.so => /opt/Imagination/PowerVR_Graphics/PowerVR_Tools/PVRVFrame/Library/Linux_x86_64/libEGL.so (0x00007fca995c5000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fca992a8000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fca98fac000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fca98d96000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fca989d6000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fca987b9000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fca985b5000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fca9827f000)
/lib64/ld-linux-x86-64.so.2 (0x00007fca9a174000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fca98061000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fca97e5d000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fca97c57000)
However, the application does not work with the following error:

./OGLES2ChameleonMan
Can’t open keypad input device (/dev/input/event1)
PVRShell: EGL 1.4 initialized
Exit message has been set to: “PVRShell: Unable to create a context
”.
InitAPI failed!
PVRShell: Unable to create a context

The PVRVFRame GUI did record the PID and indicate “loss connection to client”

The other interesting observation is that the only available profile is host.

Can someone shed a light what may happen and how to fix it.


#2

Hi Eric,

PVRVFrame requires OpenGL drivers on your host to emulate OpenGL ES. The PVRVFrame webpage lists the required versions of OpenGL to emulate each revision of OpenGL ES.

Does your development machine have a GPU? Are the graphics drivers up to date?


#3

Hi, Joe:

Thank you so much for your quick response!
I am trying to run an openES 2.0 example and the requirement is

  • OpenGL ES 2.0 emulation (requires a graphics card with OpenGL 2.0 support)
I am able to run the openGL 4.0 examples on the same Linux Ubuntu laptop. Does it mean that the GPU supports OPenGL 2.0 as well?

Best regards,

Eric


#4

Hi Eric,

It looks like PVRVFrame is failing to load your OpenGL driver for some reason. Can you attach the output of the following command?

strace ./OGLES2ChameleonMan 2>&1 | grep '^open(".*\.so'