Results 1 to 7 of 7

Thread: QtOpenGL/qgl.h change between 4.7.3 and 4.8

  1. #1
    Join Date
    Dec 2009
    Posts
    52
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QtOpenGL/qgl.h change between 4.7.3 and 4.8

    Hi,

    There have been changes in this file, between 4.7.3 and 4.8.0
    1 of them is that

    # include <GL/glu.h>

    was removed, under linux.

    A 3rd party library qwtplot3d header includes QtOpenGl and expects to find symbols declared in glu.h

    I manually added it back to 4.8.0 and the compilation succeeds.

    Any QtOpenGL writers care to comment?

    Very unwilling to have a different headers from std qt 4.8

    regards,

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtOpenGL/qgl.h change between 4.7.3 and 4.8

    You don't need to modify Qt headers. Just add GL/glu.h to the code that actually needs it (which is your code making use of QwtPlot3D or QwtPlot3D itself).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Dec 2009
    Posts
    52
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QtOpenGL/qgl.h change between 4.7.3 and 4.8

    Indeed, but this is a kind of a workaround for me. better than what i've done, but it still introduces an extra direct dependency of my code on that header.
    I'm trying to get the proper solution implemented: is that in QtOpenGL or in qwtplot3d?

    rds,

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtOpenGL/qgl.h change between 4.7.3 and 4.8

    The proper solution is to fix QwtPlot3D to include GL/glu.h by itself if it needs it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Dec 2009
    Posts
    52
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QtOpenGL/qgl.h change between 4.7.3 and 4.8

    sorry to be pedantic but:
    This is just a assumption: qwtplot3d is using QtOpenGL, but probably not OpenGL directly?
    QtOpenGL includes the headers for the underling Opengl implementation (Mesa in the linux box I have and win in a win box I have)

    I'd still be curious to see why qt changed their header between 4.7.3 / 4.8.0

    is there a subversion access or similar?

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtOpenGL/qgl.h change between 4.7.3 and 4.8

    Quote Originally Posted by hml View Post
    sorry to be pedantic but:
    This is just a assumption: qwtplot3d is using QtOpenGL, but probably not OpenGL directly?
    QtOpenGL includes the headers for the underling Opengl implementation (Mesa in the linux box I have and win in a win box I have)
    If QwtPlot3D is complaining about missing GLU headers then obviously it uses GLU and not only QtOpenGL.

    I'd still be curious to see why qt changed their header between 4.7.3 / 4.8.0
    My totally wild guess would be that they stopped using it.

    is there a subversion access or similar?
    There is Git.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Feb 2008
    Posts
    491
    Thanks
    12
    Thanked 142 Times in 135 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: QtOpenGL/qgl.h change between 4.7.3 and 4.8

    @hml: FYI - QTBUG-12227

Similar Threads

  1. QtOpenGL GL_BGR not defined
    By ^NyAw^ in forum Qt Programming
    Replies: 16
    Last Post: 30th August 2011, 16:41
  2. capacity to use SampleBuffers in QtOpenGL
    By aalexei in forum Qt Programming
    Replies: 4
    Last Post: 28th April 2011, 16:37
  3. image processing with qtopengl
    By sisilet in forum Qt Programming
    Replies: 1
    Last Post: 10th June 2010, 21:42
  4. QtOpenGL example problem on wince6
    By lamosca in forum Installation and Deployment
    Replies: 1
    Last Post: 21st April 2010, 16:56
  5. QtOpenGL how to draw text?
    By AndreaCe in forum Qt Programming
    Replies: 0
    Last Post: 22nd July 2009, 00:50

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.