Jump to content

OpenGL Version wrong detected - XUbuntu 16.04.1 LTS [solved]


ligginator

Recommended Posts

Hi,

 

I have purchased the game via Steam and wanted to start it. Some libs were missing. Except for libGLEW.so.1.10, I could install all dependencies via apt-get. For libGLEW.so.1.10 I have created a symlink to libGLEW.so.1.13, which is the Version GLEW version installed at my Ubuntu.

 

When starting the game detects a wrong OpenGL-Version (see log). I use the nvidea driver from the repositories.

 

glxinfo | grep 'version':

server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL core profile version string: 3.3.0 NVIDIA 304.134
OpenGL core profile shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL version string: 3.3.0 NVIDIA 304.134
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL ES profile version string: OpenGL ES 2.0 NVIDIA 304.134 304.134
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.00

 

 

A small program linked against libGLEW.so.1.13

#include <GL/glew.h>
#include <GL/glut.h>
#include <cstdio>

int main(int argc, char **argv)
{
    glutInit(&argc, argv);
    glutCreateWindow("GLUT");

    glewInit();
    printf("OpenGL version supported by this platform (%s): \n", glGetString(GL_VERSION));
}

 

yields:

OpenGL version supported by this platform (3.3.0 NVIDIA 304.134): 

 

Thanks for your help in advance.

 

Cheers,

 

Gerrit

 

P.S.:

My system is:

NVIDIA GeForce 9400M

Intel® Core2 Duo CPU    P7550  @ 2.26GHz

8 GB RAM

 

P.P.S.:

I have replaced the libGLEW.so.1.10 by the file from this: http://packages.ubuntu.com/de/trusty/amd64/libglew1.10/download

But the output does not change.

So even with the libaray Version 1.10 the problem exists.

clientlog_Sat_Feb_11_13-08-43_2017.txt

Link to comment
Share on other sites

  • Boxelware Team

glGetString(GL_VERSION) is exactly what I'm using when querying for version numbers fails. Which happens in your case:

Sat Feb 11 13:08:44 2017| ContextInformation::ContextInformation():15: GLError in glGetIntegerv(GL_MAJOR_VERSION, &majorVersion): GL_INVALID_ENUM
Sat Feb 11 13:08:44 2017| ContextInformation::ContextInformation():16: GLError in glGetIntegerv(GL_MINOR_VERSION, &minorVersion): GL_INVALID_ENUM
Sat Feb 11 13:08:44 2017| Error detecting OpenGL version, trying to parse unknown version string

 

The result from retrieving the version string can be seen here:

Sat Feb 11 13:08:44 2017| Version: 2.1
Sat Feb 11 13:08:44 2017| VersionString: 2.1.2 NVIDIA 304.134

For some reason your driver/GPU reports version string "2.1.2 NVIDIA 304.134" to Avorion, from which Avorion parses the version number 2.1.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...