[SOLVED] QGLContext::choose Context(): OpenGL 3.3 is not supported



  • Hi,

    Does anyone know what this runtime error means please and how to solve it?
    "QGLContext::choose Context(): OpenGL 3.3 is not supported"

    I'm getting it when I compile my own code. I've tried the Qt example here which does operate correctly:
    http://developer.qt.nokia.com/wiki/How_to_use_OpenGL_Core_Profile_with_Qt

    Any help appreciated.



  • I seem to have fixed this now - I was getting (and ignoring as I didn't think it was relevant and the code ran) the compile error:

    /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libGL.so when searching for -lGL

    My project '.pro' file was missing '-L/usr/X11R6/lib64' in the 'LIBS =' line.

    When you create the Makefile (e.g. via 'Run qmake' in Qt-Creator) it creates a makefile with this library call in. You have to remove the existing '-L/usr/X11R6/lib' entry for the 32-bit libraries.

    It then appears to compile okay. It no longer produces the error mentioned above and the shaders compile. Apologies for the convoluted method - it would be better to change the default libraries used. I guess this is done via a different qmake '.conf' file, but I've not worked out how to find / change this via Qt Creator yet...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.