# glXChooseVisual message

**URL:** <https://forums.imgtec.com/t/glxchoosevisual-message/218>\
**Category:** PowerVR Insider\
**Created:** [January 5, 2009, 5:18am UTC](https://forums.imgtec.com/t/glxchoosevisual-message/218 "2009-01-05T05:18:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![esyjun](https://avatars.discourse-cdn.com/v4/letter/e/e47774/32.png) [@esyjun](https://forums.imgtec.com/u/esyjun)\
**Post date:** [January 5, 2009, 5:18am UTC](https://forums.imgtec.com/t/glxchoosevisual-message/218/1 "2009-01-05T05:18:48Z")

</div>

Hello,

&nbsp;
  

When I try to run Open GL/ES 1.1 training codes, I got en errors.
  

Coule you tell me how I can solve this problem?
  

&nbsp;
  

&nbsp;
  

&nbsp;
  

[Message]
  

&nbsp;
  

[root@test-desktop:/gl](mailto:root@test-desktop:/gl)# ./OGLESInitialization
  

OGLESPCViewer Version 2, 15/04/05
  

&nbsp;
  

OpenGL ES desktop PC emulation viewer for MBX IP cores
  

Coptright Imagination Technologies Ltd 2004-2005.
  

&nbsp;
  

Reading oglespcviewer.cfg file...
  

Using profile: PowerVR MBX1 With VGP - GENERIC PROFILE
  

PVR: VFrame attempted to use one of these functions:
  

PVR:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; glXChooseVisual
  

&nbsp;
  

PVR: but they are not present on your machine.
  

&nbsp;
  

&nbsp;

---

<div class="post-metadata">

**Author:** ![xmas](https://avatars.discourse-cdn.com/v4/letter/x/958977/32.png) [@xmas](https://forums.imgtec.com/u/xmas)\
**Post date:** [January 5, 2009, 11:29am UTC](https://forums.imgtec.com/t/glxchoosevisual-message/218/2 "2009-01-05T11:29:32Z")

</div>

Could you please give some details on the system you are using: hardware, linux version, graphics drivers?

---

<div class="post-metadata">

**Author:** ![esyjun](https://avatars.discourse-cdn.com/v4/letter/e/e47774/32.png) [@esyjun](https://forums.imgtec.com/u/esyjun)\
**Post date:** [January 7, 2009, 5:48am UTC](https://forums.imgtec.com/t/glxchoosevisual-message/218/3 "2009-01-07T05:48:58Z")

</div>

Hi,

&nbsp;
  

These are my system configuration
  

&nbsp;1. H/W : LG XNote M2 notebook (Dual Core Intel CPU)
  

&nbsp;2. S/W : Ubuntu 7.10(Gutsy Gibbon) on Vmware Workstation
  

&nbsp;3. Graphic Driver : nVidia
  

&nbsp;
  

I have two system environment. One is LinuxPC and the other is Emulator on LinuxPC.
  

on LinuxPC, PowerVR works fine, but on emulator it does not work.
  

&nbsp;
  

On linux emulator, an error occure below:
  

&nbsp;
  

[root@test-desktop:/gl/02\_HelloTriangle](mailto:root@test-desktop:/gl/02_HelloTriangle)# ./OGLESHelloTriangle
  

OGLESPCViewer Version 2, 15/04/05
  

&nbsp;
  

OpenGL ES desktop PC emulation viewer for MBX IP cores
  

Copyright Imagination Technologies Ltd 2004-2005.
  

&nbsp;
  

Reading oglespcviewer.cfg file...
  

Using profile: PowerVR MBX1 With VGP - GENERIC PROFILE
  

\*ERROR\* Failed to open libGL.so
  

Error: gelInitialize() failed.
  

&nbsp;
  

&nbsp;
  

Then, I tried to copy two methods.
  

&nbsp;
  

1) copy libGL.so file on LinuxPC to emulator.
  

&nbsp; - result : same error occured
  

&nbsp;
  

2) copy libGLES\_CM.so file to emulator and rename it with libGL.so
  

&nbsp;- result : PVR:glXChooseVisual&nbsp;&nbsp;,
  

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PVR: but they are not present on your machine
  

&nbsp;
  

Coule you give me a clue to solve this problem?
  

&nbsp;

---

<div class="post-metadata">

**Author:** ![esyjun](https://avatars.discourse-cdn.com/v4/letter/e/e47774/32.png) [@esyjun](https://forums.imgtec.com/u/esyjun)\
**Post date:** [January 8, 2009, 5:42am UTC](https://forums.imgtec.com/t/glxchoosevisual-message/218/4 "2009-01-08T05:42:20Z")

</div>

Hello,

&nbsp;
  

I tried to some more.
  

&nbsp;
  

I downloaded mesa source codes and build it.&nbsp; After building, I copied files below on /usr/lib
  

&nbsp; libGL.so, libGLU.so, libglut.so, libGLw.so, libOSMesa.so
  

&nbsp;
  

Then, I run the same application which is OGLESHelloTriangle.
  

I did not see any errors, but the screen blinked once and nothing happened. Message&nbsp;is as follows:
  

&nbsp;
  

[root@test-desktop:/gl/02\_HelloTriangle](mailto:root@test-desktop:/gl/02_HelloTriangle)# ./OGLESHelloTriangle
  

OGLESPCViewer Version 2, 15/04/05
  

&nbsp;
  

OpenGL ES desktop PC emulation viewer for MBX IP cores
  

Copyright Imagination Technologies Ltd 2004-2005.
  

&nbsp;
  

Reading oglespcviewer.cfg file...
  

Using profile:PowerVR MBX1 With VGP - GENERIC PROFILE
  

[root@test-desktop:/gl/02\_HelloTriangle](mailto:root@test-desktop:/gl/02_HelloTriangle)#
  

&nbsp;
  

&nbsp;
  

Do you know why the screen does not show anything?
  

&nbsp;

---

<div class="post-metadata">

**Author:** ![esyjun](https://avatars.discourse-cdn.com/v4/letter/e/e47774/32.png) [@esyjun](https://forums.imgtec.com/u/esyjun)\
**Post date:** [January 12, 2009, 6:13am UTC](https://forums.imgtec.com/t/glxchoosevisual-message/218/5 "2009-01-12T06:13:17Z")

</div>

I solved the problem.

&nbsp;
  

Solution : 
  

&nbsp; 1) download mesa source codes at [http://www.mesa3d.org/](http://www.mesa3d.org/)
  

&nbsp; 2) Build mesa with
  

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; make linux-x86
  

&nbsp; 3) copy libGL.so in your path, for example /usr/lib/libGL.so
  

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - if there is already libGL.so, back up the file just in case.
  

&nbsp; 4) Run a sample application.
  

&nbsp;
