gtk+-quartz-3.0 包位于哪里?(尝试编译 webkitgtk)

gtk+-quartz-3.0 包位于哪里?(尝试编译 webkitgtk)
prompt:> cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.


-- The CMake build type is: RelWithDebInfo
-- Performing Test C_COMPILER_SUPPORTS_-fdiagnostics-color=always
-- Performing Test C_COMPILER_SUPPORTS_-fdiagnostics-color=always - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fdiagnostics-color=always
-- Performing Test CXX_COMPILER_SUPPORTS_-fdiagnostics-color=always - Success
-- Checking for module 'gtk+-quartz-3.0'
--   No package 'gtk+-quartz-3.0' found
-- Found the following ICU libraries:
--   data (required)
--   i18n (required)
--   uc (required)
CMake Error at /usr/share/cmake-3.13/Modules/FindPkgConfig.cmake:452 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.13/Modules/FindPkgConfig.cmake:622 (_pkg_check_modules_internal)
  Source/cmake/FindLibSoup.cmake:35 (pkg_check_modules)
  Source/cmake/OptionsGTK.cmake:30 (find_package)
  Source/cmake/WebKitCommon.cmake:56 (include)
  CMakeLists.txt:169 (include)


-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/Downloads/webkitgtk-2.26.2/CMakeFiles/CMakeOutput.log".
See also "/home/ubuntu/Downloads/webkitgtk-2.26.2/CMakeFiles/CMakeError.log".

我已经libgtk-3-dev使用 apt 包管理器进行了安装。

我正在尝试使用 deb 包安装 citrix 接收器。但是它需要其他包:

dpkg: dependency problems prevent configuration of icaclient: 
icaclient depends on libwebkit-1.0-2 | libwebkitgtk-1.0-0; 
however: 
Package libwebkit-1.0-2 is not installed. 
Package libwebkitgtk-1.0-0 is not installed.

这就是我从网站安装 webkit gtk 源的原因,(https://webkitgtk.org/) 特别是这个链接: https://webkitgtk.org/releases/webkitgtk-2.26.2.tar.xz

答案1

总结:你缺少 libsoup。运行sudo apt install libsoup2.4-dev

这是个转移注意力的借口。脚本会查找 quartz(仅适用于 mac)并使用它仅当可用时。

看着

Call Stack (most recent call first):
  /usr/share/cmake-3.13/Modules/FindPkgConfig.cmake:622 (_pkg_check_modules_internal)
  Source/cmake/FindLibSoup.cmake:35 (pkg_check_modules)
  Source/cmake/OptionsGTK.cmake:30 (find_package)
  Source/cmake/WebKitCommon.cmake:56 (include)
  CMakeLists.txt:169 (include)

看起来脚本实际上在查找时失败了库汤. 您可以使用以下方式安装 libsoupsudo apt install libsoup2.4-dev

另外,欢迎来到 AskUbuntu!

相关内容