Я пытаюсь собрать webkitgtk на моем Mac OSX 10.13.4. согласно официальному руководству.
Однако при запуске следующей команды
$ cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja
Я получаю ошибку ниже:
-- 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".
Файл CMakeError.log жалуется на отсутствие заголовочных файлов (features.h и 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.
Я пытался найти библиотеки, которые включают эти заголовочные файлы, но не удалось.