Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building QT5 with OpenGL global namespace errors
Forum Updated to NodeBB v4.3 + New Features

Building QT5 with OpenGL global namespace errors

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 3 Posters 3.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mirrdo
    wrote on last edited by
    #1

    I'm trying to build the latest QT5 with OpenGL support from source. I've followed the instructions here:
    http://qt-project.org/wiki/Building_Qt_5_from_Git

    I've configured with configure -c++11 -developer-build -opensource -opengl desktop -nomake examples -nomake tests
    and running nmake from the VS2012 x86 Native Tools Command Prompt.

    I am getting errors related to OpenGL:

    qopenglfunctions.h(593) : error C2039: 'glClearDepth' : is not a member of '`global namespace''
    qopenglfunctions.h(593) : error C3861: 'glClearDepth' : identifier not found

    qopenglfunctions.h(715) : error C2039: 'glDepthRange' : is not a member of '`global namespace''
    qopenglfunctions.h(715) : error C3861: 'glDepthRange' : identifier not found

    and also errors like kernel\qopenglcontext.cpp : error C2065: 'GL_PROXY_TEXTURE_2D' : undeclared identifier

    GL_TEXTURE_WIDTH and glGetTexLevelParameteriv are also undeclared identifiers, similar to GL_PROXY_TEXTURE_2D.

    Unfortunately I have searched this problem, but could not find a solution. The QT build is successful when I am not passing -opengl desktop to configure. Here is my graphics card and opengl version info:

    GLEW version 1.9.0
    Reporting capabilities of pixelformat 1
    Running on a GeForce GT 540M/PCIe/SSE2 from NVIDIA Corporation
    OpenGL version 4.2.0 is supported

    If anyone can provide any pointers I would be grateful.

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      ZapB
      wrote on last edited by
      #2

      Hi. Hmm weird it should build fine with -opengl desktop. Which branch are you building from?

      Those functions should be found inside of src/gui/opengl/qopenglext.h which gets included from qopengl.h which in turn should be included from qopenglfunctions.h.

      Nokia Certified Qt Specialist
      Interested in hearing about Qt related work

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fxtech
        wrote on last edited by
        #3

        Having the same trouble with the released version of 5.1.1, using Visual Studio 2012 x64. Any luck?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved