Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77640

OpenGL redefinition errors with static Qt build using opengl es2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 5.12.4
    • GUI: OpenGL
    • None
    • Windows; Static;
    • Windows

    Description

      Error: (and many more)

      C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um\GL/gl.h(1162): error C2375: 'glBindTexture': redefinition; different linkage
      C:\vsts_work\1\s\installed\x64-windows-static\include\QtANGLE\GLES2/gl2.h(532): note: see declaration of 'glBindTexture'

      Reason: 

      cl .... -DQT_STATIC_BUILD -DQGLVIEWER_STATIC -DNOMINMAX -DGL_APICALL= -DEGLAPI= -DQT_NO_KEYWORDS....

       

      Solution:

      delete the following line from /mkspecs/features/win32/opengl.prf 

      qtConfig(static): DEFINES += GL_APICALL= EGLAPI=

       

      vcpkg fix:

      https://github.com/microsoft/vcpkg/pull/7667/commits/5583ae7b9b2e0a0ec1e1e26a817b8fe20a1a89b0

      For full vcpkg logs see https://dev.azure.com/vcpkg/public/_build/results?buildId=9381&view=results

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            neumann-a Alexander Neumann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes