QOpenGL issues in Ubuntu
-
Hi,
Did you try to build your project with the Qt version provided by your distribution ?
-
Hi @SGaist
Yes , hs been compiled successfully ,you can see my first project qt with ubuntu os in my last questions ,
https://forum.qt.io/topic/85060/how-to-create-a-qt-project-under-linux -
So which version of Qt does not work ?
-
@Maarouf-Med-Mahdi After installing mesa stuff - did you run qmake and rebuild your project?
-
Did you check with a more recent version of Qt ?
-
@mpergand
i tried all the commands that i got from this question also the site :
https://wiki.qt.io/Install_Qt_5_on_Ubuntutake a look
sudo apt-get install mesa-common-dev
sudo apt-get install libglu1-mesa-dev -y
sudo apt-get install build-essential
sudo apt-get install libgl-dev libglu-dev
sudo apt-get install libfontconfig1
sudo apt-get install mesa-common-dev
sudo apt-get install libglu1-mesa-dev -y
sudo apt-get install mesa-common-dev -
just i want to say same thing .
i tested a new empty project has compiled correctly , but my last project can not be done . -
@Maarouf-Med-Mahdi Delete the build folder of your project and do a clean rebuild.
Also, are you doing anything special in this (not working) project? -
Is it a newly created default project ?
-
Hi All ,
NEWS,
i tested some class of my project and i got the principal cause of that .
i can't include QtGui library in any class ,if i do ,i will get this errors .
Exception QtGui !!!!???
any one can explain to me why ?
#include<QtGui> -
Looks like there's something fishy with your kit then.
-
@SGaist
more than that .
I removed all my inclusion of Qtgui library in all the class of my project , and i got build my project finally . i can say my problem has fixed ,but i don't know what is ambiguous in my kit .