Bug 197155 - WebKitGTK+ build fails
Summary: WebKitGTK+ build fails
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Philippe Normand
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-22 03:54 PDT by Tuti
Modified: 2019-04-29 07:33 PDT (History)
1 user (show)

See Also:


Attachments
patch (646 bytes, patch)
2019-04-25 01:03 PDT, Philippe Normand
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tuti 2019-04-22 03:54:14 PDT
Perhaps I'm doing something wrong, but I can't get it to build (on Ubuntu 16.04)

cmake command:
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=. -DCMAKE_SKIP_RPATH=ON -DPORT=GTK -DLIB_INSTALL_DIR=./lib -DUSE_LIBHYPHEN=OFF -DENABLE_MINIBROWSER=ON -DUSE_SYSTEM_MALLOC=ON -DENABLE_GEOLOCATION=OFF -DENABLE_GTKDOC=OFF -DENABLE_INTROSPECTION=OFF -DENABLE_OPENGL=OFF -DENABLE_ACCELERATED_2D_CANVAS=OFF -DENABLE_CREDENTIAL_STORAGE=OFF -DENABLE_GAMEPAD_DEPRECATED=OFF -DENABLE_MEDIA_STREAM=OFF -DENABLE_WEB_RTC=OFF -DENABLE_PLUGIN_PROCESS_GTK2=OFF -DENABLE_SPELLCHECK=OFF -DENABLE_VIDEO=OFF -DENABLE_WEB_AUDIO=OFF -DUSE_LIBNOTIFY=OFF -DENABLE_SUBTLE_CRYPTO=OFF -DUSE_WOFF2=OFF -DENABLE_BUBBLEWRAP_SANDBOX=OFF -DUSE_OPENJPEG=OFF -Wno-dev ..


build error:
WebKit/Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp:34:10: fatal error: 'WebCore/GStreamerCommon.h' file not found
#include <WebCore/GStreamerCommon.h>
Comment 1 Philippe Normand 2019-04-25 01:03:07 PDT
Created attachment 368220 [details]
patch

Can you try this?
Comment 2 Tuti 2019-04-28 08:06:03 PDT
Thanks.

Tried unsuccessfully:
[100%] Building CXX object Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-31.cpp.o
In file included from /WebKit/build/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-31.cpp:3:
/WebKit/Source/WebKit/WebProcess/glib/WebProcessGLib.cpp:31:10: fatal error: 'WebCore/GStreamerCommon.h' file not found
#include <WebCore/GStreamerCommon.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Source/WebKit/CMakeFiles/WebKit.dir/build.make:10917: recipe for target 'Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-31.cpp.o' failed
make[2]: *** [Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-31.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /WebKit/build/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-29.cpp:6:
In file included from /WebKit/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp:32:
/WebKit/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.h:176:14: warning: private field 'm_webPage' is not used [-Wunused-private-field]
    WebPage& m_webPage;
             ^
1 warning generated.
In file included from /WebKit/Source/WebKit/WebProcess/WebPage/WebPage.cpp:167:
In file included from /WebKit/build/DerivedSources/ForwardingHeaders/WebCore/GraphicsContext3D.h:28:
/WebKit/build/DerivedSources/ForwardingHeaders/WebCore/ANGLEWebKitBridge.h:35:10: fatal error: 'ANGLE/ShaderLang.h' file not found
#include <ANGLE/ShaderLang.h>
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
Source/WebKit/CMakeFiles/WebKit.dir/build.make:10797: recipe for target 'Source/WebKit/CMakeFiles/WebKit.dir/WebProcess/WebPage/WebPage.cpp.o' failed
make[2]: *** [Sour

I forgot to mention I am building using the following patch:
https://github.com/googleprojectzero/p0tools/tree/master/WebKitFuzz

What seems to be breaking the build are the changes made to Source/WebKit/PlatformGTK.cmake
Comment 3 Tuti 2019-04-29 01:49:24 PDT
And this is the cmake command

cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=. -DCMAKE_SKIP_RPATH=ON -DPORT=GTK -DLIB_INSTALL_DIR=./lib -DUSE_LIBHYPHEN=OFF -DENABLE_MINIBROWSER=ON -DUSE_SYSTEM_MALLOC=ON -DENABLE_GEOLOCATION=OFF -DENABLE_GTKDOC=OFF -DENABLE_INTROSPECTION=OFF -DENABLE_OPENGL=OFF -DENABLE_ACCELERATED_2D_CANVAS=OFF -DENABLE_CREDENTIAL_STORAGE=OFF -DENABLE_GAMEPAD_DEPRECATED=OFF -DENABLE_MEDIA_STREAM=OFF -DENABLE_WEB_RTC=OFF -DENABLE_PLUGIN_PROCESS_GTK2=OFF -DENABLE_SPELLCHECK=OFF -DENABLE_VIDEO=OFF -DENABLE_WEB_AUDIO=OFF -DUSE_LIBNOTIFY=OFF -DENABLE_SUBTLE_CRYPTO=OFF -DUSE_WOFF2=OFF -DENABLE_BUBBLEWRAP_^CNDBOX=OFF -DUSE_OPENJPEG=OFF -Wno-dev ..