I wanted to learn Qt and so downloaded Qt library(5.0) and Qt creator for windows. There, I was not able to access QNetworkAccessManager..it gave an error when I included QNetworkAccessManager I wasn't able to figure out the reason of the error and I was dual-booting with Ubuntu. So I downloaded Qt for Ubuntu and started using it, but, this time it is giving an error when I am including QtGui. The errors are:
/home/shaarad/Qt5.0.0/5.0.0/gcc_64/include/QtGui/qopenglcontext.h:60:
In file included from ../../../Qt5.0.0/5.0.0/gcc_64/include/QtGui/qopenglcontext.h:60:0,
/home/shaarad/Qt5.0.0/5.0.0/gcc_64/include/QtGui/QtGui:33:
from ../../../Qt5.0.0/5.0.0/gcc_64/include/QtGui/QtGui:33,
/home/shaarad/Documents/JIGS/JIGS-FILE-SHARING-master/MainFrame.cpp:5:
from ../JIGS-FILE-SHARING-master/MainFrame.cpp:5:
/home/shaarad/Qt5.0.0/5.0.0/gcc_64/include/QtGui/qopengl.h:98:
error: GL/gl.h: No such file or directory
Any workaround will be helpful, thanks a lot! :)
sudo apt-get install mesa-common-dev
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev
Those two provided the solution.
You are missing the OpenGL include files. Install the mesa-common-dev
package:
# apt-get install mesa-common-dev
This includes the /usr/include/GL
directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With