Results 1 to 4 of 4

Thread: /QtOpenGL/qgl.h:77: error: GL/gl.h: No such file or directory

  1. #1
    Join Date
    Apr 2009
    Posts
    35
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Android

    Default /QtOpenGL/qgl.h:77: error: GL/gl.h: No such file or directory

    qt : qtsdk-2010.05
    system: ubuntu 10.10
    program: Examples-> OpenGL ->framebufferobject
    desktop/../../../include/QtOpenGL/qgl.h:77: error: GL/gl.h: No such file or directory
    Qt Code:
    1. 73 #ifndef GLdouble
    2. 74 typedef GLfloat GLdouble;
    3. 75 #endif
    4. 76 #else
    5. 77 # include <GL/gl.h>
    6. 78 # ifndef QT_LINUXBASE
    7. 79 # include <GL/glu.h>
    8. 80 # endif
    9. 81 #endif
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: /QtOpenGL/qgl.h:77: error: GL/gl.h: No such file or directory

    Install opengl

  3. #3
    Join Date
    Mar 2015
    Posts
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: /QtOpenGL/qgl.h:77: error: GL/gl.h: No such file or directory

    i have install qt-5.0.4 on rhel linux 7 64 bit . when do i run the gui based program error: GL/gl.h: No such file or directory so please suggest me this is Qt problem or Linux

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,528
    Thanks
    13
    Thanked 1,575 Times in 1,504 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: /QtOpenGL/qgl.h:77: error: GL/gl.h: No such file or directory

    In spite of the intervening four years the answer has not changed.
    Install a video driver that provides OpenGl or install Mesa.

Similar Threads

  1. Replies: 11
    Last Post: 1st February 2018, 04:27
  2. Replies: 4
    Last Post: 9th May 2010, 16:18
  3. Replies: 4
    Last Post: 17th February 2010, 10:52
  4. Replies: 0
    Last Post: 10th February 2010, 07:07
  5. Replies: 1
    Last Post: 10th July 2007, 16:53

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.