I use Qt 6.2.2
in ubuntu 20.04
and I install OpenGL like this:
sudo apt install libgl1-mesa-dev
After I install my graphics card driver (NVDI 470.86) I get this error each time I open QtCreator IDE
.
why did this happen and how can I fix this?
I cant compile examples that use qt quick like
output from glxinfo | egrep -i version
CodePudding user response:
Had the same problem since this morning. Not sure why this worked (any contribution is appreciated), but I solved it by adding my user to the video group and rebooting:
sudo usermod -a -G video *username*
CodePudding user response:
I understand that qt creator save its settings in /home/username/.config/QtProject
and It understand OpenGL from there.
So I delete my .config
folder and reboot my system and let my OS
create it again this Fix my problem but as @merosss said that he change his usermod to the video that was one way because qt creator
will create it in that path and problem will fix again.
Since I install the NVIDIA driver it seems that Qt cant understand which OpenGL should use and that problem happens.