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

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

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

Postby pabbuu28 » Mar 19th, '20, 22:19

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
Last edited by pabbuu28 on Mar 20th, '20, 18:33, edited 2 times in total.
pabbuu28
 
Posts: 25
Joined: Jan 8th, '19, 18:10
Location: Tashkent, Uzbekistan

Re: libGL error: failed to load driver: swrast

Postby doktor5000 » Mar 19th, '20, 23:37

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18042
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: libGL error: failed to load driver: swrast

Postby pabbuu28 » Mar 20th, '20, 18:32

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
pabbuu28
 
Posts: 25
Joined: Jan 8th, '19, 18:10
Location: Tashkent, Uzbekistan


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron