How to get rid of OpenGL Warning
-
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
@ -
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 card0ui
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
-
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
@ -
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 -
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
-
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