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. libGL error using Qt Creator on Fedora
QtWS25 Last Chance

libGL error using Qt Creator on Fedora

Scheduled Pinned Locked Moved Unsolved General and Desktop
linux fedora opopenglqt creator 3.6
11 Posts 5 Posters 10.6k Views
  • 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.
  • M Offline
    M Offline
    mrjj
    Lifetime Qt Champion
    wrote on 12 May 2016, 17:19 last edited by
    #2

    Hi and welcome
    Im not using fedora but it does sounds like it dont see your hardware version
    of opengl.
    Can you check with Gears or any other opengl app that it can run accelerated?

    http://askubuntu.com/questions/541343/problems-with-libgl-fbconfigs-swrast-through-each-update

    1 Reply Last reply
    0
    • F Offline
      F Offline
      FlacoDanziger
      wrote on 12 May 2016, 17:27 last edited by
      #3

      If you are using Fedora through VBOX then you will have to disable the 3D Acceleration under display setting

      C 1 Reply Last reply 12 May 2016, 19:19
      1
      • F FlacoDanziger
        12 May 2016, 17:27

        If you are using Fedora through VBOX then you will have to disable the 3D Acceleration under display setting

        C Offline
        C Offline
        CutiUser
        wrote on 12 May 2016, 19:19 last edited by CutiUser 5 Dec 2016, 19:20
        #4

        Hello @FlacoDanziger, thank's for your nice link...

        Here are my libGL.so files :
        /usr/lib/libGL.so.1.2.0
        /usr/lib/libGL.so.1 -> libGL.so.1.2.0
        /usr/lib/nvidia/libGL.so.358.16
        /usr/lib/nvidia/libGL.so -> libGL.so.358.16
        /usr/lib/nvidia/libGL.so.1 -> libGL.so.358.16
        /usr/lib64/libGL.so.1.2.0
        /usr/lib64/libGL.so -> libGL.so.1.2.0
        /usr/lib64/libGL.so.1 -> libGL.so.1.2.0
        /usr/lib64/nvidia/libGL.so.358.16
        /usr/lib64/nvidia/libGL.so -> libGL.so.358.16
        /usr/lib64/nvidia/libGL.so.1 -> libGL.so.358.16

        Reading your ubuntu link, I have to change a symbolic link, but I don't understand wich I must to change ? I have to delete libGL.so.358.16 symbolic link to /usr/lib64/nvidia/libGL.so.1 to make it to /usr/lib/libGL.so.1.2.0 ?

        GlxGears works well, I don't want to break my system... :-/

        I'm not using VBOX

        1 Reply Last reply
        0
        • C Offline
          C Offline
          CutiUser
          wrote on 13 May 2016, 06:51 last edited by
          #5

          For information, of I type ldd on my application and QtCreator it produce theses results :

          ldd Test_001 | grep libGL
          libGL.so.1 => /usr/lib64/nvidia/libGL.so.1 (0x00007f03bd777000)

          ldd /usr/bin/qtcreator | grep libGL
          libGL.so.1 => /usr/lib64/nvidia/libGL.so.1 (0x00007f045121d000)

          Both two application above don't use :

          /usr/lib/libGL

          I don't see where is the problem and how to fix it ... :-/

          M 1 Reply Last reply 13 May 2016, 06:52
          0
          • C CutiUser
            13 May 2016, 06:51

            For information, of I type ldd on my application and QtCreator it produce theses results :

            ldd Test_001 | grep libGL
            libGL.so.1 => /usr/lib64/nvidia/libGL.so.1 (0x00007f03bd777000)

            ldd /usr/bin/qtcreator | grep libGL
            libGL.so.1 => /usr/lib64/nvidia/libGL.so.1 (0x00007f045121d000)

            Both two application above don't use :

            /usr/lib/libGL

            I don't see where is the problem and how to fix it ... :-/

            M Offline
            M Offline
            mrjj
            Lifetime Qt Champion
            wrote on 13 May 2016, 06:52 last edited by
            #6

            @CutiUser
            what does ldd Gear say?

            1 Reply Last reply
            1
            • C Offline
              C Offline
              CutiUser
              wrote on 13 May 2016, 10:27 last edited by
              #7

              what does ldd Gear say?

              ldd /usr/bin/glxgears

              libGL.so.1 => /usr/lib64/nvidia/libGL.so.1 (0x00007fdd51fb9000)
              libX11.so.6 => /lib64/libX11.so.6 (0x0000003c3e800000)
              libnvidia-tls.so.358.16 => /usr/lib64/nvidia/tls/libnvidia-tls.so.358.16 (0x00007fdd51db3000)
              libnvidia-glcore.so.358.16 => /usr/lib64/nvidia/libnvidia-glcore.so.358.16 (0x00007fdd50152000)

              glxgears and my Qt compiled GL programs works well.
              The problem is just when I try to start my projects using Qt creator start button :-(
              I have just downloaded Qt Creator 4.0 and it's the same problem...

              1 Reply Last reply
              0
              • C Offline
                C Offline
                CutiUser
                wrote on 21 May 2016, 08:25 last edited by
                #8

                No more ideas ?

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  hskoglund
                  wrote on 21 May 2016, 13:02 last edited by
                  #9

                  HI, just a wild guess, but try disabling some plugins (in the list in Qt Creator's About Plugins), first test with disabling the Welcome plugin, then exit and start Qt Creator again, and then see if launching your app works any better.

                  1 Reply Last reply
                  1
                  • C Offline
                    C Offline
                    CutiUser
                    wrote on 24 May 2016, 19:57 last edited by
                    #10

                    Thank's hskoglung, but it doesn't work.

                    A friend tell me to try this command line "export LD_LIBRARY_PATH=/usr/lib64/nvidia:${LD_LIBRARY_PATH}", but it doen't work too. I have always this message :
                    Starting /home/xxxxxxxxxxxxxxxxxxxxxx/Test_QML_001/build-Test_001-Desktop_Qt5-Release/Test_001...
                    libGL error: No matching fbConfigs or visuals found
                    libGL error: failed to load driver: swrast
                    Unrecognized OpenGL version
                    Unrecognized OpenGL version
                    ... when I click on Qt Creator "Run button"... :-/

                    1 Reply Last reply
                    0
                    • N Offline
                      N Offline
                      noone711
                      wrote on 12 Nov 2016, 16:52 last edited by noone711 11 Dec 2016, 16:54
                      #11

                      Hi,

                      I had the same problem on an openSUSE 42.1 machine with Qt Creator 3.2.2 (QT 4.8.6) when installing nvidia video driver. The symptoms I recognized:
                      ---Programs compile within Qt Creator
                      ---Programs started outside Qt Creator runs without any problem
                      ---Programs started inside Qt Creator (by pushing the run button) start, but do not work properly (most of the time nothing or a frozen background is shown) with the following terminal output ("Draw method called" is printed by the program when the draw method is called)

                      libGL error: No matching fbConfigs or visuals found
                      libGL error: failed to load driver: swrast
                      X Error: GLXBadContext 169
                      Extension: 154 (Uknown extension)
                      Minor opcode: 6 (Unknown request)
                      Resource id: 0xba00010
                      X Error: BadValue (integer parameter out of range for operation) 2
                      Extension: 154 (Uknown extension)
                      Minor opcode: 3 (Unknown request)
                      Resource id: 0x0
                      QGLContext::makeCurrent(): Failed.
                      Draw Method called
                      X Error: GLXBadDrawable 171
                      Extension: 154 (Uknown extension)
                      Minor opcode: 11 (Unknown request)
                      Resource id: 0xba00012
                      X Error: GLXBadContext 169
                      Extension: 154 (Uknown extension)
                      Minor opcode: 5 (Unknown request)
                      Resource id: 0xba00010
                      X Error: 0 0
                      Extension: 154 (Uknown extension)
                      Minor opcode: 26 (Unknown request)
                      Resource id: 0x0
                      QGLContext::makeCurrent(): Failed.
                      Draw Method called
                      ...

                      I found a work around by adding a new run configuration of type user defined executable file with the binary file of the program as executable file.

                      If anyone could figure out what is going on there it would be great to find a fix for it.

                      Kind regards
                      noone

                      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