Created attachment 324053 [details] 'EGL/egl.h' file not found I tried to build WebKitGtk+ ver.2.18.0 with cairo. >/tmp/webkitgtk+-20171017-48306-bvnuze/Source/WebCore/platform/graphics/egl/GLContextEGL.cpp:30:10: fatal error: 'EGL/egl.h' file not found >#include <EGL/egl.h> > ^~~~~~~~~~~ >1 error generated. >make[2]: *** [Source/WebCore/CMakeFiles/WebCore.dir/platform/graphics/egl/GLContextEGL.cpp.o] Error 1 >make[1]: *** [Source/WebCore/CMakeFiles/WebCore.dir/all] Error 2 >make: *** [all] Error 2 Please add include-path for "EGL/egl.h".
OpenGL/EGL headers are a requisite for building WebKitGTK+ unless you configure it with the CMake option -DENABLE_OPENGL=OFF On a GNU/Linux Debian/Ubuntu system you can do that with: sudo apt-get isntall libegl1-mesa-dev So, I'm closing this bug as invalid. Please re-open if the problem persist after installing the required headers.
(In reply to Carlos Alberto Lopez Perez from comment #1) > On a GNU/Linux Debian/Ubuntu system you can do that with: sudo apt-get > isntall libegl1-mesa-dev should be: sudo apt-get install libegl1-mesa-dev
Are you joking? The include-path for "EGL/egl.h" is "Source/ThirdParty/ANGLE/include/EGL/egl.h".
(In reply to s172262 from comment #4) > Are you joking? > The include-path for "EGL/egl.h" is > "Source/ThirdParty/ANGLE/include/EGL/egl.h". I'm not joking. That are the ANGLE headers and they are not used as standard headers for building WebKit (that's on purpose). That headers are _only_ used for building the ANGLESupport library (which is needed for WebGL support on WebCore) For building WebKitGTK+ with proper 3D/OpenGL support you need your system system OpenGL/EGL headers correctly installed. That's a fact.
(In reply to Carlos Alberto Lopez Perez from comment #5) > (In reply to s172262 from comment #4) > > Are you joking? > > The include-path for "EGL/egl.h" is > > "Source/ThirdParty/ANGLE/include/EGL/egl.h". > > I'm not joking. > > That are the ANGLE headers and they are not used as standard headers for > building WebKit (that's on purpose). That headers are _only_ used for > building the ANGLESupport library (which is needed for WebGL support on > WebCore) > > For building WebKitGTK+ with proper 3D/OpenGL support you need your system > system OpenGL/EGL headers correctly installed. That's a fact. You are still joking. See attachment file. There is include-path of "Source/ThirdParty/ANGLE". Change this to "Source/ThirdParty/ANGLE/include/".
(In reply to s172262 from comment #6) > (In reply to Carlos Alberto Lopez Perez from comment #5) > > (In reply to s172262 from comment #4) > > > Are you joking? > > > The include-path for "EGL/egl.h" is > > > "Source/ThirdParty/ANGLE/include/EGL/egl.h". > > > > I'm not joking. > > > > That are the ANGLE headers and they are not used as standard headers for > > building WebKit (that's on purpose). That headers are _only_ used for > > building the ANGLESupport library (which is needed for WebGL support on > > WebCore) > > > > For building WebKitGTK+ with proper 3D/OpenGL support you need your system > > system OpenGL/EGL headers correctly installed. That's a fact. > > You are still joking. > See attachment file. > There is include-path of "Source/ThirdParty/ANGLE". > Change this to "Source/ThirdParty/ANGLE/include/". Excluding Source/ThirdParty/ANGLE/include/ from the default include path is done on purpose. We don't want to build or link against the ANGLE library for OpenGL support as this library doesn't actually provide what we need for 3D graphics on the system. ANGLE its just a translation shader library for WebGL.
> We don't want to build or link against the ANGLE library for OpenGL support > as this library doesn't actually provide what we need for 3D graphics on the > system. ANGLE its just a translation shader library for WebGL. If you say truth, you should remove the include-path of "Source/ThirdParty/ANGLE" and "Source/ThirdParty/ANGLE/include/KHR" here.