Bug 262169 - [GTK] build breaks with -DUSE_OPENGL_OR_ES=OFF: epoxy/egl.h no such file or directory
Summary: [GTK] build breaks with -DUSE_OPENGL_OR_ES=OFF: epoxy/egl.h no such file or d...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-27 01:10 PDT by Thomas Devoogdt
Modified: 2023-09-29 08:03 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Devoogdt 2023-09-27 01:10:08 PDT
This new bug report was proposed in https://bugs.webkit.org/show_bug.cgi?id=261637#c4.

webkitgtk-2.42.0/Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.cpp:39:10: fatal error: epoxy/egl.h: No such file or directory
   39 | #include <epoxy/egl.h>
      |          ^~~~~~~~~~~~~

If USE_OPENGL_OR_ES=OFF, then we can't assume that EGL will be present. So the include + all it's usages should be guarded with e.g. USE(EGL).
Comment 1 Thomas Devoogdt 2023-09-27 01:12:10 PDT
Note that the same does apply to AcceleratedSurfaceDMABuf.
Comment 2 Thomas Devoogdt 2023-09-28 04:37:00 PDT
It seems that commit https://commits.webkit.org/265188@main introduced the problems. The USE(GBM) checks were dropped but should have been replaced by USE(EGL).
Comment 4 EWS 2023-09-28 11:22:40 PDT
Committed 268598@main (c124153d271b): <https://commits.webkit.org/268598@main>

Reviewed commits have been landed. Closing PR #18346 and removing active labels.
Comment 5 EWS 2023-09-29 08:03:11 PDT
Committed 266719.76@bugfix/USE_EGL-2.42 (b751733c75f7): <https://commits.webkit.org/266719.76@bugfix/USE_EGL-2.42>

Reviewed commits have been landed. Closing PR #18347 and removing active labels.