Page 1 of 1

Assertion "Problems getting GL version using glGetString"

Posted: Mon Jan 05, 2009 1:34 pm
by nikki
I built Ogre and the Samples on Arch Linux on my laptop, and when I try to run a sample, it says:-

Code: Select all

OgreGLSupport.cpp:57: virtual void Ogre::GLSupport::initialiseExtensions: Assertion `pcVer && "Problems getting GL version string using glGetString"' failed
The log goes until the creation of the GLX subsystem.

I'd installed, built and run Ogre-using applications both on Windows and on Ubuntu on this laptop, so it should run fine with this hardware. I think its a driver issue, but I have 'xf86-video-intel' installed. 'lspci | grep VGA' gives:-

Code: Select all

Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
I did search on the forums, but there isn't much about this. Where ever someone mentions a problem, it was because he didn't have the required hardware or something.

Any ideas? :D

Re: Assertion "Problems getting GL version using glGetString"

Posted: Mon Jan 05, 2009 1:44 pm
by nikki
Oh wait, 'glxinfo' mentions 'Mesa software renderer'. :?

Re: Assertion "Problems getting GL version using glGetString"

Posted: Mon Jan 05, 2009 3:21 pm
by nikki
Well, to check whether glGetString() works, I took the program from the NeHe tutorial and modified it to spit out glGetString results, and it says "Vendor: Mesa Project, Renderer: Software Rasterizer, Version: 2.1 Mesa 7.2". Is this good, or not?

I'm confused. :?

Re: Assertion "Problems getting GL version using glGetString"

Posted: Sun Jan 11, 2009 1:32 pm
by nikki
Finally got around to fixing it! :D

I had to just put this in the xorg.conf. Seems I was missing DRI.

Code: Select all

Section "DRI"
    mode 0666
EndSection

Re: Assertion "Problems getting GL version using glGetString"

Posted: Mon Mar 09, 2009 11:26 am
by surgio
i have the same problem.

compiled ogre from source successfully but attempting to run the samples produces this error.

i've tried the fix suggested. is there something else to the fix than just add those 3 lines to xorg.conf?

i'm trying to get ogre to run on ubuntu as a guest os in vmware.

Re: Assertion "Problems getting GL version using glGetString"

Posted: Mon Mar 09, 2009 1:27 pm
by nikki
Seems Ubuntu isn't able to 'catch' your graphics card from VMWare. Are you sure you have the correct drivers in Ubuntu? You'll have to install one of the 'nvidia-glx-*' packages I believe.

Re: Assertion "Problems getting GL version using glGetString"

Posted: Tue Mar 10, 2009 4:34 pm
by surgio
i think i have. glxgears runs fine. is this a sufficient enough check to make sure that the nvidia driver is installed?

Re: Assertion "Problems getting GL version using glGetString"

Posted: Tue Mar 10, 2009 11:09 pm
by nikki
surgio wrote:i think i have. glxgears runs fine. is this a sufficient enough check to make sure that the nvidia driver is installed?
No, glxgears can run with mesa too, which is a software renderer. Ogre requires hardware support.

Re: Assertion "Problems getting GL version using glGetString"

Posted: Wed Mar 11, 2009 6:02 pm
by surgio
ahh gotcha. been looking around, my answer is vmgl which i read is hard to get working. thanks anyway :)

Re: Assertion "Problems getting GL version using glGetString

Posted: Thu Jan 27, 2011 5:34 pm
by Killix
I have the same problem when compiling and runing Ogre3D 1.7.2 on my VMWare with Ubuntu 9.10.
=> It is come when updating the Ubuntu system and VMWareTools.

The first solution in xorg.conf did not worked.

I solved it by installing the package "nvidia-glx-180". Here is the installation log :

Code: Select all

Commit Log for Thu Jan 27 17:05:29 2011


Removed the following packages:
libgl1-mesa-dev
mesa-common-dev

Installed the following packages:
dkms (2.0.21.1-0ubuntu3)
fakeroot (1.12.1ubuntu1)
libdrm-nouveau1 (2.4.5-0ubuntu4)
nouveau-kernel-source (0.0.11+git20090404-0ubuntu1)
nvidia-180-kernel-source (180.44-0ubuntu1)
nvidia-180-libvdpau (180.44-0ubuntu1)
nvidia-glx-180 (180.44-0ubuntu1)
nvidia-glx-180-dev (180.44-0ubuntu1)
nvidia-settings (180.25-0ubuntu1)
patch (2.5.9-5)


Hope it may help

Nktug

(One of the fan of Ogre3D engine)
http://the-cyber-cube.net