Ask Your Question

Qt Creator + Nvidia = broken qDebug()

asked 2015-06-05 13:44:59 +0000

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

answered 2015-06-16 04:53:48 +0000

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

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

1 follower


Asked: 2015-06-05 13:44:59 +0000

Seen: 612 times

Last updated: Jun 05 '15