Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] QGLContext::choose Context(): OpenGL 3.3 is not supported
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 3.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yalnte
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      yalnte
      wrote on last edited by
      #2

      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...

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved