Ask Your Question
0

Qt Creator + Nvidia = broken qDebug()

asked 2015-06-05 08:44:59 -0500

AnEagle gravatar image

When build a project:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

Everything is fine but I can't see messages from qDebug(). This is a problem. List of installed nvidia packages:

 % dnf list installed | grep nvidia                                                                                             ~ localhost
akmod-nvidia.x86_64                      1:346.72-2.fc22.1               @System
kmod-nvidia-4.0.4-301.fc22.x86_64.x86_64 1:346.72-2.fc22.1               @System
kmod-nvidia-4.0.4-303.fc22.x86_64.x86_64 1:346.72-2.fc22.1               @System
xorg-x11-drv-nvidia.x86_64               1:346.72-1.fc22                 @System
xorg-x11-drv-nvidia-kmodsrc.x86_64       1:346.72-1.fc22                 @System
xorg-x11-drv-nvidia-libs.i686            1:346.72-1.fc22                 @System
xorg-x11-drv-nvidia-libs.x86_64          1:346.72-1.fc22                 @System

I also have no framebuffer and guess that problem can be there. vga=775 does not solve the problem. Any ideas for how to get qDebug() work as it should?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-06-15 23:53:48 -0500

glitchyme gravatar image

This looks similar to my problem: https://ask.fedoraproject.org/en/ques...

The problem was a bad (not broken) symlink for libGL.so.1. This happened after updating the nvidia drivers recently. Can you try removing libGL.so.1 and pointing it to nvidia/libGL.so.1 ?

sudo rm /usr/lib64/libGL.so.1
sudo ln -s /usr/lib64/nvidia/libGL.so.1 /usr/lib64/libGL.so.1

Make sure to take a backup first, or remember where libGL.so.1 was originally pointing.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-06-05 08:44:59 -0500

Seen: 638 times

Last updated: Jun 05 '15