在运行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”不同),但这并没有帮助。我真的很希望能得到一些故障排除的帮助。

4尝试安装libcheese-gtk-dev。 - Jorge Castro
2个回答

安装libcheese-gtk-dev,它就能正常工作了。此外,在从源代码构建时,最好在构建之前运行apt-get build-dep <package-name>,以便构建一个也可在存储库中找到的软件包(包括您激活的任何第三方存储库)。这将引入构建软件包所依赖的所有软件包。感谢Jorge Castro的评论和andrewsomething's answer提供的信息。

如你已经发现,你需要安装libcheese-gtk-dev软件包。将来,你可以通过使用sudo apt-get build-dep ubiquity来避免在Ubuntu软件包中进行pkg-config检查时的麻烦。这将安装该软件包的所有构建依赖项。