tildearrow / kwin-lowlatency

archived - X11 full-screen unredirection and lots'a settings for KWin
373 stars 10 forks source link

Kwin-lowlatency-5.18.90 build error #81

Closed perfect7gentleman closed 4 years ago

perfect7gentleman commented 4 years ago
/tmp/portage/kde-plasma/kwin-5.18.90/work/kwin-lowlatency-5.18.90/platformsupport/scenes/opengl/egl_dmabuf.cpp:97:9: error: ‘EGL_TEXTURE_Y_XUXV_WL’ was not declared in this scope
   97 |         EGL_TEXTURE_Y_XUXV_WL,
      |         ^~~~~~~~~~~~~~~~~~~~~
/tmp/portage/kde-plasma/kwin-5.18.90/work/kwin-lowlatency-5.18.90/platformsupport/scenes/opengl/egl_dmabuf.cpp:114:9: error: ‘EGL_TEXTURE_Y_UV_WL’ was not declared in this scope; did you mean ‘GL_TEXTURE_VIEW’?
  114 |         EGL_TEXTURE_Y_UV_WL,
      |         ^~~~~~~~~~~~~~~~~~~
      |         GL_TEXTURE_VIEW
/tmp/portage/kde-plasma/kwin-5.18.90/work/kwin-lowlatency-5.18.90/platformsupport/scenes/opengl/egl_dmabuf.cpp:131:9: error: ‘EGL_TEXTURE_Y_U_V_WL’ was not declared in this scope
  131 |         EGL_TEXTURE_Y_U_V_WL,
      |         ^~~~~~~~~~~~~~~~~~~~
/tmp/portage/kde-plasma/kwin-5.18.90/work/kwin-lowlatency-5.18.90/platformsupport/scenes/opengl/egl_dmabuf.cpp:153:9: error: ‘EGL_TEXTURE_Y_U_V_WL’ was not declared in this scope
  153 |         EGL_TEXTURE_Y_U_V_WL,
      |         ^~~~~~~~~~~~~~~~~~~~
ninja: subcommand failed

build.log - https://pastebin.com/xpHpUc5T

tildearrow commented 4 years ago

Hmm... portage...

That seems odd. Can you please tell me which graphics driver are you using, and the version? It appears you must have a version without those variables in the /usr/include/EGL/eglmesaext.h header.

perfect7gentleman commented 4 years ago

1st PC: Mesa - git version xf86-video-intel - git version 2nd PC: Mesa - git version xf86-video-amdgpu - git version

~ $ cat /usr/include/EGL/eglmesaext.h
.......
#ifndef __eglmesaext_h_
#define __eglmesaext_h_

#ifdef __cplusplus
extern "C" {
#endif

#include <EGL/eglplatform.h>

/* remnant of EGL_NOK_swap_region kept for compatibility because of a non-standard type name */
typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOK) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint* rects);

#ifndef EGL_MESA_configless_context
#define EGL_MESA_configless_context 1
#define EGL_NO_CONFIG_MESA                      EGL_CAST(EGLConfig,0)
#endif

#ifndef EGL_MESA_drm_image_formats
#define EGL_MESA_drm_image_formats 1
#define EGL_DRM_BUFFER_FORMAT_ARGB2101010_MESA  0x3290
#define EGL_DRM_BUFFER_FORMAT_ARGB1555_MESA     0x3291
#define EGL_DRM_BUFFER_FORMAT_RGB565_MESA       0x3292
#endif /* EGL_MESA_drm_image_formats */

#ifdef __cplusplus
}
#endif

#endif
Valmar33 commented 4 years ago

Over here in Arch Linux land, I'm also getting the same error.

Valmar33 commented 4 years ago

This is the commit causing the build failure:

https://gitlab.freedesktop.org/mesa/mesa/commit/9a74746bd1f3bd28d4c4c7cba75e3245e1d25530

Valmar33 commented 4 years ago

Therefore, this commit should work, for now:

https://gitlab.freedesktop.org/mesa/mesa/commit/045267d1e6238e45eb98f286332ee233dec53312

Valmar33 commented 4 years ago

Hmmmmmmm:

EGL_TEXTURE_Y_U_V_WL is now defined in include/EGL/eglext.h:

https://gitlab.freedesktop.org/mesa/mesa/commit/9a74746bd1f3bd28d4c4c7cba75e3245e1d25530#11319fcddd09c239677905ebd0302735dbbe13a0_1365_1371

tildearrow commented 4 years ago

Commit 2c76cc4 contains a fix from upstream that addresses this issue, I think. Releasing 5.18.91.

tildearrow commented 4 years ago

No feedback and 5.19 will be out soon. Closing.