从源代码编译 Cheese,编译失败

从源代码编译 Cheese,编译失败

我正在尝试从源代码安装 cheese,但我对寻找软件包不感兴趣,因为我有源代码更改,如果可以编译的话,我想应用这些更改。我安装了 libtool automake 和 autotools-dev。当我尝试运行时,./autogen.sh出现此错误:

     ./autogen.sh 
**Warning**: I am going to run `configure' with no arguments.
If you wish to pass any to it, please specify them on the
`./autogen.sh' command line.

+ gtkdocize --copy
+ intltoolize --force --copy --automake
+ autoreconf --verbose --force --install -Wno-portability
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force --warnings=no-portability -I m4 ${ACLOCAL_FLAGS}
configure.ac:189: error: macro YELP_HELP_INIT is not defined; is a m4 file missing?
m4/ax_require_defined.m4:35: AX_REQUIRE_DEFINED is expanded from...
configure.ac:189: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
+ exit 1

我查看了 GNOME wiki、github 页面和源代码中有关编译的描述,并在 Google 上查找了类似的错误,但尚未找到解决方案。请注意,我只是在应用更改之前尝试编译未修改的源代码。

更新:我安装了一些附加软件包,并不是因为它们被明确列为依赖项,而是因为我在 Arch 论坛上读到了它。

sudo apt-get install autoconf gtk-doc-tools yelp-tools appstream-util libx11-dev libgstreamer-plugins-bad1.0-dev libgnome-desktop-3-dev libclutter-gtk-1.0-dev libclutter-gst-3.0-dev libcanberra-gtk3-dev valac

现在编译成功了,但编译后的程序只能在源文件夹中运行。调用 Cheese 时,安装的二进制文件会抛出此错误:

$ cheese
cheese: error while loading shared libraries: libcheese.so.8: cannot open shared object file: No such file or directory

我正在运行 Ubuntu Mate 15.10。

答案1

用于apt-get build-dep cheese安装所有依赖项。

相关内容