# Run PoverVR examples on Lunux Ubuntu 12.04 desktop

**URL:** <https://forums.imgtec.com/t/run-povervr-examples-on-lunux-ubuntu-12-04-desktop/2279>\
**Category:** PowerVR Insider\
**Tags:** pvrvframe\
**Created:** [April 1, 2015, 4:12pm UTC](https://forums.imgtec.com/t/run-povervr-examples-on-lunux-ubuntu-12-04-desktop/2279 "2015-04-01T16:12:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericruei](https://avatars.discourse-cdn.com/v4/letter/e/49beb7/32.png) [@ericruei](https://forums.imgtec.com/u/ericruei)\
**Post date:** [April 1, 2015, 4:12pm UTC](https://forums.imgtec.com/t/run-povervr-examples-on-lunux-ubuntu-12-04-desktop/2279/1 "2015-04-01T16:12:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [April 2, 2015, 7:02am UTC](https://forums.imgtec.com/t/run-povervr-examples-on-lunux-ubuntu-12-04-desktop/2279/2 "2015-04-02T07:02:55Z")

</div>

Hi Eric,

PVRVFrame requires OpenGL drivers on your host to emulate OpenGL ES. The [PVRVFrame webpage](https://www.imgcommunity.local/developers/powervr/tools/pvrvframe/) 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?

---

<div class="post-metadata">

**Author:** ![ericruei](https://avatars.discourse-cdn.com/v4/letter/e/49beb7/32.png) [@ericruei](https://forums.imgtec.com/u/ericruei)\
**Post date:** [April 2, 2015, 3:59pm UTC](https://forums.imgtec.com/t/run-povervr-examples-on-lunux-ubuntu-12-04-desktop/2279/3 "2015-04-02T15:59:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ChrisPenrose](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@ChrisPenrose](https://forums.imgtec.com/u/ChrisPenrose)\
**Post date:** [April 7, 2015, 9:10am UTC](https://forums.imgtec.com/t/run-povervr-examples-on-lunux-ubuntu-12-04-desktop/2279/4 "2015-04-07T09:10:58Z")

</div>

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'
