Page 1 of 1

[SOLVED]libGL error: failed to load driver: swrast

PostPosted: Mar 19th, '20, 22:19
by pabbuu28
Hello All

In Qt Creator i have such kind of problem when trying to run project:
QML debugging is enabled. Only use this in a safe environment.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

below glxinfo output:
Code: Select all
[jasur@localhost lib64]$ glxinfo | grep "version"
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL core profile version string: 3.3.0 NVIDIA 340.108
OpenGL core profile shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL version string: 3.3.0 NVIDIA 340.108
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL ES profile version string: OpenGL ES 2.0 NVIDIA 340.108 340.108
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.00


How to solve this problem?

Regards,
Jasur

Re: libGL error: failed to load driver: swrast

PostPosted: Mar 19th, '20, 23:37
by doktor5000
Apart from that message, does your project run as expected ?

Can you please show the whole output when running qtcreator from a terminal, including when you hit this issue ?

Also, what settings do you have in Projects - Run - Run Environment ?
Sometimes you may need to edit LD_LIBRARY_PATH / LD_PRELOAD, see
https://stackoverflow.com/questions/276 ... -qtcreator

Or maybe qt-creator needs a rebuild, see https://bugzilla.redhat.com/show_bug.cgi?id=1476442 for some hints on how to find out what it actually tries to load and where it fails.

Re: libGL error: failed to load driver: swrast

PostPosted: Mar 20th, '20, 18:32
by pabbuu28
I don't understand where from come this error, before with QML was not such problems. But disabling Projects->Build&Run->Run->Add_build_library_search_path_to_LD_LIBRARY_PATH in QtCreator allows me run project without errors.
Thanks

Regards,
Jasur