[webkit-gtk] How to build webkitgtk 2.20.0 on Mac 10.13.4

André Schaller an.schall at googlemail.com
Tue Apr 10 00:08:42 PDT 2018


I am trying to build webkitgtk on my Mac OSX 10.13.4. according to the
official guide <https://trac.webkit.org/wiki/BuildingGtk>.

However, when running the following command

|$ cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja|

I get the error below:

|-- Checking for module 'gtk+-x11-3.0' -- No package 'gtk+-x11-3.0' found
-- Checking for module 'gtk+-wayland-3.0' -- No package
'gtk+-wayland-3.0' found -- Found ICU header files in /usr/local/include
-- Found ICU libraries: /usr/local/lib/libicuuc.dylib -- Found ICU
internationaliation libraries: /usr/local/lib/libicui18n.dylib -- Found
ICU data libraries: /usr/local/lib/libicudata.dylib CMake Error at
/usr/local/Cellar/cmake/3.11.0/share/cmake/Modules/FindPkgConfig.cmake:419
(message): A required package was not found Call Stack (most recent call
first):
/usr/local/Cellar/cmake/3.11.0/share/cmake/Modules/FindPkgConfig.cmake:586
(_pkg_check_modules_internal) Source/cmake/FindLibSoup.cmake:35
(pkg_check_modules) Source/cmake/OptionsGTK.cmake:31 (find_package)
Source/cmake/WebKitCommon.cmake:61 (include) CMakeLists.txt:152
(include) -- Configuring incomplete, errors occurred! See also
"/Users/xyz/Downloads/webkitgtk-2.20.0/CMakeFiles/CMakeOutput.log". See
also "/Users/xyz/Downloads/webkitgtk-2.20.0/CMakeFiles/CMakeError.log". |

The file CMakeError.log complains about missing header files (features.h
and pthread_np.h):

|In file included from <built-in>:375: <command line>:1:31: warning: ISO
C99 requires whitespace after the macro name [-Wc99-extensions] #define
CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized 1
"~/Downloads/webkitgtk-2.20.0/CMakeFiles/CMakeError.log" 90L, 5552C ar
-t [-TLsv] archive [file ...] CheckIncludeFile.c:1:10: fatal error:
'features.h' file not found #include <features.h> ^~~~~~~~~~~~ 1 error
generated. ninja: build stopped: subcommand failed. Determining if the
include file pthread_np.h exists failed with the following output:
Change Dir: /Users/andre/Downloads/webkitgtk-2.20.0/CMakeFiles/CMakeTmp
Run Build Command:"/usr/local/bin/ninja" "cmTC_2307c" [1/2] Building C
object CMakeFiles/cmTC_2307c.dir/CheckIncludeFile.c.o FAILED:
CMakeFiles/cmTC_2307c.dir/CheckIncludeFile.c.o
/Library/Developer/CommandLineTools/usr/bin/cc
-fdiagnostics-color=always -fcolor-diagnostics -Wno-parentheses-equality
-Wno-noexcept-type -Qunused-arguments -Wwrite-strings -Wundef
-Wpointer-arith -Wmissing-format-attribute -Wformat-security
-Wcast-align -Wextra -Wall -fno-strict-aliasing -fno-exceptions -fPIE -o
CMakeFiles/cmTC_2307c.dir/CheckIncludeFile.c.o -c CheckIncludeFile.c
CheckIncludeFile.c:1:10: fatal error: 'pthread_np.h' file not found
#include <pthread_np.h> ^~~~~~~~~~~~~~ 1 error generated. ninja: build
stopped: subcommand failed. |

I tried to find the libraries that include these header files but wasn't
successful.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20180410/d598b33d/attachment.html>


More information about the webkit-gtk mailing list