Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt5 + OpenGL fails to run under Qt Creator

    Tools
    qt creator run opengl
    1
    1
    1260
    Loading More Posts
    • 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.
    • J
      JohnE last edited by

      Hi!

      If a make a qmainwindow with a QGLWidget in it and add some gl code to that widget. The program fails to run under qt creator. Running it from terminal works without errors.
      I am guessing that I need to add some enviroment variables to my run configuration, but have no clue which ones.

      Error messages:
      libGL error: No matching fbConfigs or visuals found
      libGL error: failed to load driver: swrast
      Unrecognized OpenGL Version

      Versions:
      qt5-qtbase-devel: 5.5.0
      mesa-libGL-devel: 10.6.3-3.20150729
      qt-creator: 3.5.0-1

      Any help is appreciated.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post