Bug 135289 - [GTK] Build depends on OpenGL ES
Summary: [GTK] Build depends on OpenGL ES
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sergio Villar Senin
URL:
Keywords:
: 135238 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-07-25 08:34 PDT by Michael Catanzaro
Modified: 2014-07-30 09:36 PDT (History)
8 users (show)

See Also:


Attachments
Patch (1.40 KB, patch)
2014-07-25 08:38 PDT, Michael Catanzaro
no flags Details | Formatted Diff | Diff
Patch (3.48 KB, patch)
2014-07-29 02:24 PDT, Sergio Villar Senin
no flags Details | Formatted Diff | Diff
Patch (2.15 KB, patch)
2014-07-30 08:41 PDT, Sergio Villar Senin
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2014-07-25 08:34:54 PDT
On Fedora I need mesa-libGLES-devel installed in order to build WebKitGTK+, but it's not listed in Tools/gtk/install-dependencies.

I'll add it to the list of Debian dependencies as well (which I did not test, but I'm pretty sure I have the right package).
Comment 1 Michael Catanzaro 2014-07-25 08:38:12 PDT
Created attachment 235521 [details]
Patch
Comment 2 Martin Robinson 2014-07-25 08:44:03 PDT
How is the build failing?
Comment 3 Zan Dobersek 2014-07-25 08:50:07 PDT
*** Bug 135238 has been marked as a duplicate of this bug. ***
Comment 4 Zan Dobersek 2014-07-25 08:51:08 PDT
(In reply to comment #3)
> *** Bug 135238 has been marked as a duplicate of this bug. ***

Feel free to land this one.
Comment 5 Zan Dobersek 2014-07-25 08:51:35 PDT
(In reply to comment #2)
> How is the build failing?

If I remember correctly it's failing in Extensions3DOpenGLES.cpp.
Comment 6 Michael Catanzaro 2014-07-25 17:16:33 PDT
In file included from ../../Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp:30:0:
../../Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.h:32:23: fatal error: GLES2/gl2.h: No such file or directory
 #include <GLES2/gl2.h>
                       ^
compilation terminated.
Comment 7 Martin Robinson 2014-07-26 08:53:36 PDT
(In reply to comment #6)
> In file included from ../../Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp:30:0:
> ../../Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.h:32:23: fatal error: GLES2/gl2.h: No such file or directory
>  #include <GLES2/gl2.h>
>                        ^
> compilation terminated.

Hrm. Odd. This should only be compiled if OpenGLES support is installed.
Comment 8 Sergio Villar Senin 2014-07-29 02:24:42 PDT
Created attachment 235675 [details]
Patch

I think those are unconditionally build so I guess we need to add the proper guards
Comment 9 Martin Robinson 2014-07-29 10:01:51 PDT
Comment on attachment 235675 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=235675&action=review

> Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp:275
> +#if USE(EGL)

Why use(EGL) here? The context creation API shouldn't come into play here, as far as I can tell.
Comment 10 Sergio Villar Senin 2014-07-30 01:38:48 PDT
Comment on attachment 235675 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=235675&action=review

>> Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp:275
>> +#if USE(EGL)
> 
> Why use(EGL) here? The context creation API shouldn't come into play here, as far as I can tell.

Sure, this change is not directly related to the failure, I just saw the egl include on top and decided to improve a bit the guarding of the file, but I can remove it.
Comment 11 Martin Robinson 2014-07-30 08:20:32 PDT
Comment on attachment 235675 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=235675&action=review

>>> Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp:275
>>> +#if USE(EGL)
>> 
>> Why use(EGL) here? The context creation API shouldn't come into play here, as far as I can tell.
> 
> Sure, this change is not directly related to the failure, I just saw the egl include on top and decided to improve a bit the guarding of the file, but I can remove it.

Ah, I see now! I think it's okay to simply fail to build when you try to use OpenGLES without EGL. There aren't any platforms that support this configuration that I know of.
Comment 12 Sergio Villar Senin 2014-07-30 08:41:04 PDT
Created attachment 235745 [details]
Patch
Comment 13 WebKit Commit Bot 2014-07-30 09:36:05 PDT
Comment on attachment 235745 [details]
Patch

Clearing flags on attachment: 235745

Committed r171799: <http://trac.webkit.org/changeset/171799>
Comment 14 WebKit Commit Bot 2014-07-30 09:36:09 PDT
All reviewed patches have been landed.  Closing bug.