PDA

View Full Version : compiling from sources fails



nuliknol
25th June 2014, 23:35
Hi,
I configure qt like this:

-bash-3.2$ ./configure -no-opengl -no-openssl -no-fontconfig

then I make it and I get this error:

gmake[3]: Entering directory `/home/niko/qt-everywhere-opensource-src-5.3.1/qtbase/examples/opengl'
cd 2dpainting/ && ( test -e Makefile || /home/niko/qt-everywhere-opensource-src-5.3.1/qtbase/bin/qmake /home/niko/qt-everywhere-opensource-src-5.3.1/qtbase/examples/opengl/2dpainting/2dpainting.pro -o Makefile ) && gmake -f Makefile
gmake[4]: Entering directory `/home/niko/qt-everywhere-opensource-src-5.3.1/qtbase/examples/opengl/2dpainting'
g++ -c -pipe -O2 -fno-exceptions -Wall -W -D_REENTRANT -fPIE -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../mkspecs/linux-g++ -I. -I../../../include -I../../../include/QtOpenGL -I../../../include/QtWidgets -I../../../include/QtGui -I../../../include/QtCore -I.moc -o .obj/glwidget.o glwidget.cpp
../../../include/QtOpenGL/../../src/opengl/qgl.h:285: error: ‘GLuint’ does not name a type
../../../include/QtOpenGL/../../src/opengl/qgl.h:287: error: ‘GLuint’ does not name a type
../../../include/QtOpenGL/../../src/opengl/qgl.h:290: error: ‘GLuint’ does not name a type
../../../include/QtOpenGL/../../src/opengl/qgl.h:292: error: ‘GLuint’ does not name a type
../../../include/QtOpenGL/../../src/opengl/qgl.h:294: error: ‘GLuint’ does not name a type
../../../include/QtOpenGL/../../src/opengl/qgl.h:296: error: ‘GLuint’ has not been declared
../../../include/QtOpenGL/../../src/opengl/qgl.h:298: error: ‘GLuint’ has not been declared
../../../include/QtOpenGL/../../src/opengl/qgl.h:298: error: ‘GLenum’ has not been declared
../../../include/QtOpenGL/../../src/opengl/qgl.h:299: error: ‘GLuint’ has not been declared
../../../include/QtOpenGL/../../src/opengl/qgl.h:299: error: ‘GLenum’ has not been declared
../../../include/QtOpenGL/../../src/opengl/qgl.h:298: error: ‘GL_TEXTURE_2D’ was not declared in this scope
../../../include/QtOpenGL/../../src/opengl/qgl.h:299: error: ‘GL_TEXTURE_2D’ was not declared in this scope
../../../include/QtOpenGL/../../src/opengl/qgl.h:411: error: ‘GLuint’ does not name a type
../../../include/QtOpenGL/../../src/opengl/qgl.h:413: error: ‘GLuint’ does not name a type
../../../include/QtOpenGL/../../src/opengl/qgl.h:416: error: ‘GLuint’ does not name a type
../../../include/QtOpenGL/../../src/opengl/qgl.h:418: error: ‘GLuint’ does not name a type
../../../include/QtOpenGL/../../src/opengl/qgl.h:421: error: ‘GLuint’ does not name a type
../../../include/QtOpenGL/../../src/opengl/qgl.h:423: error: ‘GLuint’ has not been declared
../../../include/QtOpenGL/../../src/opengl/qgl.h:425: error: ‘GLuint’ has not been declared
../../../include/QtOpenGL/../../src/opengl/qgl.h:425: error: ‘GLenum’ has not been declared
../../../include/QtOpenGL/../../src/opengl/qgl.h:426: error: ‘GLuint’ has not been declared
../../../include/QtOpenGL/../../src/opengl/qgl.h:426: error: ‘GLenum’ has not been declared
../../../include/QtOpenGL/../../src/opengl/qgl.h:425: error: ‘GL_TEXTURE_2D’ was not declared in this scope
../../../include/QtOpenGL/../../src/opengl/qgl.h:426: error: ‘GL_TEXTURE_2D’ was not declared in this scope
gmake[4]: *** [.obj/glwidget.o] Error 1
gmake[4]: Leaving directory `/home/niko/qt-everywhere-opensource-src-5.3.1/qtbase/examples/opengl/2dpainting'
gmake[3]: *** [sub-2dpainting-make_first] Error 2
gmake[3]: Leaving directory `/home/niko/qt-everywhere-opensource-src-5.3.1/qtbase/examples/opengl'
gmake[2]: *** [sub-opengl-make_first] Error 2
gmake[2]: Leaving directory `/home/niko/qt-everywhere-opensource-src-5.3.1/qtbase/examples'
gmake[1]: *** [sub-examples-make_first] Error 2
gmake[1]: Leaving directory `/home/niko/qt-everywhere-opensource-src-5.3.1/qtbase'
gmake: *** [module-qtbase-make_first] Error 2
-bash-3.2$

Why does it compiles with OpenGL if I asked specifically not to do it ?

here is my system info:

-bash-3.2$ uname -a
Linux mapserver03 2.6.18-348.el5 #1 SMP Wed Nov 28 21:22:00 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
-bash-3.2$ rpm -qa|grep release
redhat-release-5Server-5.9.0.2
redhat-release-notes-5Server-46
-bash-3.2$ pwd
/home/niko/qt-everywhere-opensource-src-5.3.1


Will appreciate very much any ideas on how to solve this.
Regards
Nulik

anda_skoa
26th June 2014, 08:47
The examples build might not check for the flags that are used for the actual Qt build.

If you don't need the examples built configure with -no-examples

Cheers,
_