QOpenGL issues in Ubuntu
-
wrote on 11 Apr 2018, 17:06 last edited by Maarouf Med Mahdi 4 Nov 2018, 17:07
Hi all,
I'm trying to compile my QtGui project with ubuntu , (the project source has been created ago with windows OS ago ) i would like compile the same code with qt in ubuntu . but many many errors related of the QopenGl has been got .
however , i created a new project and compiled succesflly for checking if the some errors wil disply again .
i use the same qt version with the both OS . don't think if the issues geted case a versionning problem .
any help .
-
Lifetime Qt Championwrote on 11 Apr 2018, 17:17 last edited by mrjj 4 Nov 2018, 17:18
Hi
Did you install the openGl dev libs ?https://wiki.qt.io/Install_Qt_5_on_Ubuntu
Install OpenGL libraries
Execute the following command to install OpenGL libraries:sudo apt-get install mesa-common-dev
also maybe
sudo apt-get install libglu1-mesa-dev -y -
wrote on 11 Apr 2018, 18:37 last edited by
Hi @mrjj
i did that , but the same issues display again,you can see my commands result in the image captured from my terminal . i tried with thats commands in the site to update my packages also , but no thing happy .
-
Hi,
Did you try to build your project with the Qt version provided by your distribution ?
-
wrote on 11 Apr 2018, 20:21 last edited by Maarouf Med Mahdi 4 Nov 2018, 20:22
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 ?
-
wrote on 11 Apr 2018, 20:57 last edited by
@SGaist
Qt 5.9.2 version -
Hi @mrjj
i did that , but the same issues display again,you can see my commands result in the image captured from my terminal . i tried with thats commands in the site to update my packages also , but no thing happy .
@Maarouf-Med-Mahdi After installing mesa stuff - did you run qmake and rebuild your project?
-
@Maarouf-Med-Mahdi After installing mesa stuff - did you run qmake and rebuild your project?
wrote on 12 Apr 2018, 08:23 last edited by Maarouf Med Mahdi 4 Dec 2018, 10:09Hi @jsulm
Yes , clean , run Qmake and rebuild all . nothing new :( -
Did you check with a more recent version of Qt ?
-
wrote on 12 Apr 2018, 22:11 last edited by
On Linux, i'm doing the following:
sudo apt-get install build-essential sudo apt-get install libgl-dev libglu-dev
Work well with Ubuntu, Cinnamon and others.
-
wrote on 12 Apr 2018, 23:20 last edited by Maarouf Med Mahdi
@SGaist
No i didn't installed other version . -
On Linux, i'm doing the following:
sudo apt-get install build-essential sudo apt-get install libgl-dev libglu-dev
Work well with Ubuntu, Cinnamon and others.
wrote on 12 Apr 2018, 23:36 last edited by Maarouf Med Mahdi@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 -
wrote on 12 Apr 2018, 23:47 last edited by Maarouf Med Mahdi 4 Dec 2018, 23:56
just i want to say same thing .
i tested a new empty project has compiled correctly , but my last project can not be done . -
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? -
@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?wrote on 13 Apr 2018, 15:22 last edited by Maarouf Med MahdiHi @jsulm
just i created the project on windows OS , and the same project i try to compile it on ubuntu .
my objective is to deploy my app with Linux OS . -
Is it a newly created default project ?
-
wrote on 14 Apr 2018, 03:07 last edited by Maarouf Med Mahdi
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> -
wrote on 14 Apr 2018, 03:17 last edited by Maarouf Med Mahdi
Hi @SGaist
Yes is it ! -
Looks like there's something fishy with your kit then.
1/21