Results 1 to 2 of 2

Thread: compiling from sources fails

  1. #1
    Join Date
    Apr 2014
    Posts
    53
    Thanks
    9

    Default compiling from sources fails

    Hi,
    I configure qt like this:
    Qt Code:
    1. -bash-3.2$ ./configure -no-opengl -no-openssl -no-fontconfig
    To copy to clipboard, switch view to plain text mode 
    then I make it and I get this error:
    Qt Code:
    1. gmake[3]: Entering directory `/home/niko/qt-everywhere-opensource-src-5.3.1/qtbase/examples/opengl'
    2. 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
    3. gmake[4]: Entering directory `/home/niko/qt-everywhere-opensource-src-5.3.1/qtbase/examples/opengl/2dpainting'
    4. 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
    5. ../../../include/QtOpenGL/../../src/opengl/qgl.h:285: error: ‘GLuint’ does not name a type
    6. ../../../include/QtOpenGL/../../src/opengl/qgl.h:287: error: ‘GLuint’ does not name a type
    7. ../../../include/QtOpenGL/../../src/opengl/qgl.h:290: error: ‘GLuint’ does not name a type
    8. ../../../include/QtOpenGL/../../src/opengl/qgl.h:292: error: ‘GLuint’ does not name a type
    9. ../../../include/QtOpenGL/../../src/opengl/qgl.h:294: error: ‘GLuint’ does not name a type
    10. ../../../include/QtOpenGL/../../src/opengl/qgl.h:296: error: ‘GLuint’ has not been declared
    11. ../../../include/QtOpenGL/../../src/opengl/qgl.h:298: error: ‘GLuint’ has not been declared
    12. ../../../include/QtOpenGL/../../src/opengl/qgl.h:298: error: ‘GLenum’ has not been declared
    13. ../../../include/QtOpenGL/../../src/opengl/qgl.h:299: error: ‘GLuint’ has not been declared
    14. ../../../include/QtOpenGL/../../src/opengl/qgl.h:299: error: ‘GLenum’ has not been declared
    15. ../../../include/QtOpenGL/../../src/opengl/qgl.h:298: error: ‘GL_TEXTURE_2D’ was not declared in this scope
    16. ../../../include/QtOpenGL/../../src/opengl/qgl.h:299: error: ‘GL_TEXTURE_2D’ was not declared in this scope
    17. ../../../include/QtOpenGL/../../src/opengl/qgl.h:411: error: ‘GLuint’ does not name a type
    18. ../../../include/QtOpenGL/../../src/opengl/qgl.h:413: error: ‘GLuint’ does not name a type
    19. ../../../include/QtOpenGL/../../src/opengl/qgl.h:416: error: ‘GLuint’ does not name a type
    20. ../../../include/QtOpenGL/../../src/opengl/qgl.h:418: error: ‘GLuint’ does not name a type
    21. ../../../include/QtOpenGL/../../src/opengl/qgl.h:421: error: ‘GLuint’ does not name a type
    22. ../../../include/QtOpenGL/../../src/opengl/qgl.h:423: error: ‘GLuint’ has not been declared
    23. ../../../include/QtOpenGL/../../src/opengl/qgl.h:425: error: ‘GLuint’ has not been declared
    24. ../../../include/QtOpenGL/../../src/opengl/qgl.h:425: error: ‘GLenum’ has not been declared
    25. ../../../include/QtOpenGL/../../src/opengl/qgl.h:426: error: ‘GLuint’ has not been declared
    26. ../../../include/QtOpenGL/../../src/opengl/qgl.h:426: error: ‘GLenum’ has not been declared
    27. ../../../include/QtOpenGL/../../src/opengl/qgl.h:425: error: ‘GL_TEXTURE_2D’ was not declared in this scope
    28. ../../../include/QtOpenGL/../../src/opengl/qgl.h:426: error: ‘GL_TEXTURE_2D’ was not declared in this scope
    29. gmake[4]: *** [.obj/glwidget.o] Error 1
    30. gmake[4]: Leaving directory `/home/niko/qt-everywhere-opensource-src-5.3.1/qtbase/examples/opengl/2dpainting'
    31. gmake[3]: *** [sub-2dpainting-make_first] Error 2
    32. gmake[3]: Leaving directory `/home/niko/qt-everywhere-opensource-src-5.3.1/qtbase/examples/opengl'
    33. gmake[2]: *** [sub-opengl-make_first] Error 2
    34. gmake[2]: Leaving directory `/home/niko/qt-everywhere-opensource-src-5.3.1/qtbase/examples'
    35. gmake[1]: *** [sub-examples-make_first] Error 2
    36. gmake[1]: Leaving directory `/home/niko/qt-everywhere-opensource-src-5.3.1/qtbase'
    37. gmake: *** [module-qtbase-make_first] Error 2
    38. -bash-3.2$
    To copy to clipboard, switch view to plain text mode 

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

    here is my system info:
    Qt Code:
    1. -bash-3.2$ uname -a
    2. 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
    3. -bash-3.2$ rpm -qa|grep release
    4. redhat-release-5Server-5.9.0.2
    5. redhat-release-notes-5Server-46
    6. -bash-3.2$ pwd
    7. /home/niko/qt-everywhere-opensource-src-5.3.1
    To copy to clipboard, switch view to plain text mode 

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

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: compiling from sources fails

    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,
    _

Similar Threads

  1. Replies: 2
    Last Post: 23rd June 2014, 19:45
  2. Compiling of Qt4.6 fails
    By Wonko in forum Installation and Deployment
    Replies: 5
    Last Post: 18th February 2010, 16:18
  3. qmake fails processing many many sources in one .pri
    By Pieter from Belgium in forum Qt Programming
    Replies: 4
    Last Post: 21st October 2009, 08:54
  4. qextserialport libary compiling fails
    By sun in forum Qt Programming
    Replies: 2
    Last Post: 6th March 2009, 15:39
  5. Compiling QSA 1.2.0 fails
    By detheang in forum Installation and Deployment
    Replies: 11
    Last Post: 4th February 2006, 20:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.