Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to get rid of OpenGL Warning
Forum Updated to NodeBB v4.3 + New Features

How to get rid of OpenGL Warning

Scheduled Pinned Locked Moved Installation and Deployment
16 Posts 3 Posters 19.8k 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.
  • O Offline
    O Offline
    onio
    wrote on last edited by
    #5

    Hi sierdzlo,

    I already have 3D Acceleration enabled thanks.

    Regards

    onio

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #6

      try to run your app with LIBGL_DEBUG=verbose
      @
      export LIBGL_DEBUG=verbose
      ./yourapp
      @

      what does it say?
      If you run glxinfo or glxgears does it produce the same error?

      what is output of
      @
      ls -l /dev/dri
      @

      Does Linux Mint has a video group?
      @
      grep video /etc/group
      @

      Is you user a part of the video group?
      @
      id
      @

      1 Reply Last reply
      0
      • O Offline
        O Offline
        onio
        wrote on last edited by
        #7

        Hi andreyc

        Thanks for your reply. Please find information requested.

        export LIBGL_DEBUG=verbose
        ./yourapp
        The above command started the applications outside the IDE but with the same warning outline in my first email.

        If you run glxinfo or glxgears does it produce the same error?
        The glxinfo displayed lots of information in table form. Part of the data shown contains the warning I descibed in my first email.
        The glxgears showed gear animation dialog box.

        ls -l /dev/dri
        crw-rw----+ 1 root video 226, 0 Mar 25 16:29 card0

        ui
        uid=1000(onio) gid=1000(onio) groups=1000(onio),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),108(lpadmin),125(sambashare)

        Regards

        onio

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andreyc
          wrote on last edited by
          #8

          As a first step please add your username in group video and try to run your app.

          what is output of
          @
          ldd ./yourapp | grep GL
          @

          What is version of mesa libraries do you have?

          With export LIBGL_DEBUG=verbose you should have more info regarding libGL error. It is different from OpenGL Warning.

          Do you have the same error when you run qtcreator from Qt5.2?
          what is output of
          @
          ldd /part/to/qtcreator | grep GL
          @

          1 Reply Last reply
          0
          • O Offline
            O Offline
            onio
            wrote on last edited by
            #9

            ldd /part/to/qtcreator | grep GL
            libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007f67e2b40000)

            Note:
            In order for my test program to build I had to create a symbolic link to libGL.so.1 as shown below.

            sudo ln -s libGL.so.1 libGL.so

            Regards
            onio

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andreyc
              wrote on last edited by
              #10

              Do you have the same error when you run qtcreator from Qt5.2?

              1 Reply Last reply
              0
              • O Offline
                O Offline
                onio
                wrote on last edited by
                #11

                Qt5.2.1 is my first ever Qt applications I am not aware of qtcreator Qt5.2. May I clarify that the initial post was about "Warnings" and not "Errors".

                The only time I got a build error was before I made a symbolic link to the libGL shared library object.

                Once that was done the program runs correctly, but with the above "Warnings" output to the console. It does not seem to affect the application for now as I am not doing anything complicated at present.

                At this point I am only playing with basic stuff such as reading edit box control on the press of push button and display it on MessageBox. This seems to work as expected.

                Regards

                onio

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andreyc
                  wrote on last edited by
                  #12

                  QtCreator is an IDE that comes with Qt.

                  Maybe if you will install the latest mesa you will get rid of these messages.

                  1 Reply Last reply
                  0
                  • O Offline
                    O Offline
                    onio
                    wrote on last edited by
                    #13

                    I will try and install that tomorrow. I however can't recall explicitly installing mesa on my system.
                    I will report findings tomorrow. I assume that I should be able to install with sudo apt-get install mesa

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      andreyc
                      wrote on last edited by
                      #14

                      You already have it on your system.
                      I think that the version that comes with Linux Mint Oliva is a bit behind.

                      Also I'm not 100% sure that installing the latest mesa will fix a problem.

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        andreyc
                        wrote on last edited by
                        #15

                        Couple questions:
                        What version of VirtualBox do you use?
                        Is version of Guest Additions the same as VirtualBox?

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          andreyc
                          wrote on last edited by
                          #16

                          Try to set LIBGL_ALWAYS_SOFTWARE=1 before starting your app.
                          @
                          export LIBGL_ALWAYS_SOFTWARE=1
                          ./yourapp
                          @

                          What is the result?

                          There are bunch of other mesa3d environment variables described "here":http://www.mesa3d.org/envvars.html

                          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