编译时未找到 gmodule-2.0

编译时未找到 gmodule-2.0

我想不通。我似乎已经安装了所有 deps,但是在尝试在 Xenial 上编译 ValaPanel 时出现以下错误:

./configure

将输出:

-- Looking for RPMTools... - rpmbuild NOT FOUND
-- checking for a minimum Vala version of 0.34
--   found Vala, version 0.36.7
-- Checking for module 'gtk+-3.0>=3.22'
--   
-- Checking for module 'glib-2.0>=2.50'
--   
-- Checking for module 'gio-2.0>=2.50'
--   
-- Checking for module 'gio-unix-2.0>=2.50'
--   
-- Checking for module 'gthread-2.0>=2.50'
--   
-- Checking for module 'gmodule-2.0>=2.50'
--   
CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
  CMakeLists.txt:130 (pkg_check_modules)

答案1

libglib2.0-dev软件包可能已过时。它提供/usr/lib/x86_64-linux-gnu/pkgconfig/gmodule-2.0.pc版本所在的文件2.48.2,但不满足vala-panel构建要求。我建议libglib2.0-dev通过从新版本向后移植包或手动进行更新。

相关内容