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

Windows CE 7: static build with opengl es fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.5.1
    • 5.5.0 Beta
    • QPA: Windows
    • wince

    Description

      a static build for wince fails, because qt wants to link statically against eglGetPlatformDisplayEXT which is only used on Angle builds.
      This is fixed by this simple patch.

      diff -r -U 5 -N -x '*.orig' -x '*.rej' -x '*.bak' -x Patches -x .git -x doc -x tests -x examples a\qtbase\src\plugins\platforms\windows/qwindowseglcontext.cpp b\qtbase\src\plugins\platforms\windows/qwindowseglcontext.cpp
      --- a\qtbase\src\plugins\platforms\windows/qwindowseglcontext.cpp
      +++ b\qtbase\src\plugins\platforms\windows/qwindowseglcontext.cpp
      @@ -135,11 +135,13 @@
           }
       #endif
       
           eglGetError = RESOLVE((EGLint (EGLAPIENTRY *)(void)), eglGetError);
           eglGetDisplay = RESOLVE((EGLDisplay (EGLAPIENTRY *)(EGLNativeDisplayType)), eglGetDisplay);
      +#ifdef EGL_ANGLE_platform_angle_opengl
           eglGetPlatformDisplayEXT = RESOLVE((EGLDisplay (EGLAPIENTRY *)(EGLenum platform, void *native_display, const EGLint *attrib_list)), eglGetPlatformDisplayEXT);
      +#endif
           eglInitialize = RESOLVE((EGLBoolean (EGLAPIENTRY *)(EGLDisplay, EGLint *, EGLint *)), eglInitialize);
           eglTerminate = RESOLVE((EGLBoolean (EGLAPIENTRY *)(EGLDisplay)), eglTerminate);
           eglChooseConfig = RESOLVE((EGLBoolean (EGLAPIENTRY *)(EGLDisplay, const EGLint *, EGLConfig *, EGLint, EGLint *)), eglChooseConfig);
           eglGetConfigAttrib = RESOLVE((EGLBoolean (EGLAPIENTRY *)(EGLDisplay, EGLConfig, EGLint, EGLint *)), eglGetConfigAttrib);
           eglCreateWindowSurface = RESOLVE((EGLSurface (EGLAPIENTRY *)(EGLDisplay, EGLConfig, EGLNativeWindowType, const EGLint *)), eglCreateWindowSurface);
      

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            gunnar.roth Gunnar Roth
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes