glXChooseVisual message

Hello,

 

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?

 

 

 

[Message]

 

root@test-desktop:/gl# ./OGLESInitialization

OGLESPCViewer Version 2, 15/04/05

 

OpenGL ES desktop PC emulation viewer for MBX IP cores

Coptright Imagination Technologies Ltd 2004-2005.

 

Reading oglespcviewer.cfg file...

Using profile: PowerVR MBX1 With VGP - GENERIC PROFILE

PVR: VFrame attempted to use one of these functions:

PVR:             glXChooseVisual

 

PVR: but they are not present on your machine.

 

 

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

Hi,

 

These are my system configuration

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

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

 3. Graphic Driver : nVidia

 

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.

 

On linux emulator, an error occure below:

 

root@test-desktop:/gl/02_HelloTriangle# ./OGLESHelloTriangle

OGLESPCViewer Version 2, 15/04/05

 

OpenGL ES desktop PC emulation viewer for MBX IP cores

Copyright Imagination Technologies Ltd 2004-2005.

 

Reading oglespcviewer.cfg file...

Using profile: PowerVR MBX1 With VGP - GENERIC PROFILE

*ERROR* Failed to open libGL.so

Error: gelInitialize() failed.

 

 

Then, I tried to copy two methods.

 

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

  - result : same error occured

 

2) copy libGLES_CM.so file to emulator and rename it with libGL.so

 - result : PVR:glXChooseVisual  ,

               PVR: but they are not present on your machine

 

Coule you give me a clue to solve this problem?

 

Hello,

 

I tried to some more.

 

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

  libGL.so, libGLU.so, libglut.so, libGLw.so, libOSMesa.so

 

Then, I run the same application which is OGLESHelloTriangle.

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

 

root@test-desktop:/gl/02_HelloTriangle# ./OGLESHelloTriangle

OGLESPCViewer Version 2, 15/04/05

 

OpenGL ES desktop PC emulation viewer for MBX IP cores

Copyright Imagination Technologies Ltd 2004-2005.

 

Reading oglespcviewer.cfg file...

Using profile:PowerVR MBX1 With VGP - GENERIC PROFILE

root@test-desktop:/gl/02_HelloTriangle#

 

 

Do you know why the screen does not show anything?

 

I solved the problem.

 

Solution :

  1) download mesa source codes at http://www.mesa3d.org/

  2) Build mesa with

       make linux-x86

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

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

  4) Run a sample application.