在 Ubiquity 源上运行 ./configure 时出错

在 Ubiquity 源上运行 ./configure 时出错

我已经向 Ubiquity 源添加了一个补丁,并尝试构建和安装该包来测试它,但是当我执行时出现以下错误./configure

checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version
0.9.0... yes checking for PANEL... yes checking for CHEESE... no configure: error: Package 
requirements (glib-2.0
        gtk+-2.0 >= 2.10.0
        gobject-2.0
        pygobject-2.0
        cheese-gtk) were not met:

No package 'cheese-gtk' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a 
non-standard prefix.

Alternatively, you may set the environment variables CHEESE_CFLAGS and CHEESE_LIBS to avoid 
the need to call pkg-config. See the pkg-config man page for more details.

这是一个截断版本 - 在此之前还有更多内容,但错误发生在这里。

我不知道从哪里开始。我尝试检查man pkg-config,但并没有真正帮助,只是我现在对 pkg-config 应该做什么有一个模糊的了解。无法找到列出的缺失软件包apt-get。我安装了cheese(与表面上不同cheese-gtk),但这没有帮助。我真的很感激有人能帮助我解决此问题。

答案1

安装libcheese-gtk-dev,它就会工作。此外,从源代码构建时,最好apt-get build-dep <package-name>在从源代码构建之前运行存储库中可用的包(包括您已激活的任何第三方存储库)。这将引入构建包所依赖的所有包。感谢 Jorge Castro 的评论和andrewsomething 的回答为了这。

答案2

正如您已经发现的那样,您需要该libcheese-gtk-dev软件包。将来,您可以使用sudo apt-get build-dep ubiquity它将安装软件包的所有构建依赖项,从而省去了将 pkg-config 检查与 Ubuntu 软件包进行匹配的麻烦。

相关内容