1

我正在尝试按照他们在此处建议的说明https://trac.webkit.org/wiki/BuildingGtk#BuildingWebKitGTKfromareleasetarball构建 WebKitGTK ( 2.28.0 ) 的最新版本。解压缩下载的 tar.xz 后,我在 shell 窗口中打开该文件夹并运行命令:

cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja

我之前通过 Homebrew 安装了 Ninja:

brew install ninja

不幸的是,我遇到了一些错误:

-- The following ICU libraries were not found:
--   data (required)
--   i18n (required)
--   uc (required)
CMake Error at     /usr/local/Cellar/cmake/3.16.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:146     (message):
  Failed to find all ICU components (missing: ICU_INCLUDE_DIR ICU_LIBRARY
  _ICU_REQUIRED_LIBS_FOUND)
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.16.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:393     (_FPHSA_FAILURE_MESSAGE)
  /usr/local/Cellar/cmake/3.16.5/share/cmake/Modules/FindICU.cmake:328     (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  Source/cmake/OptionsGTK.cmake:28 (find_package)    
  Source/cmake/WebKitCommon.cmake:56 (include)
  CMakeLists.txt:169 (include)

似乎某些库未安装(数据、i18n、uc)。尝试通过 Homebrew 安装uc后,按照此 StackOverflow 答案中的说明进行操作,仍然显示相同的错误。

我在 Mac 机器上,Mojave v. 10.14.6。

4

0 回答 0