Estou tentando criar o webkitgtk no meu Mac OSX 10.13.4. de acordo com o guia oficial .
No entanto, ao executar o seguinte comando
$ cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja
Eu recebo o erro abaixo:
-- 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".
O arquivo CMakeError.log reclama sobre falta de arquivos de cabeçalho (features.hepthread_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.
Eu tentei encontrar as bibliotecas que incluem esses arquivos de cabeçalho, mas não obtiveram êxito.