1
root@chandrasekar-Calpella:/home/chandrasekar/gftp# ./autogen.sh --prefix=$(pwd)
gettextize -c --intl -f
gettextize: warning: the option '--intl' is deprecated and will be removed

configure.in:89: warning: macro `AM_PATH_GLIB' not found in library
configure.in:205: warning: macro `AM_PATH_GTK' not found in library

autoconf
configure.in:89: error: possibly undefined macro: AM_PATH_GLIB
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:205: error: possibly undefined macro: AM_PATH_GTK

./configure: line 7229: syntax error near unexpected token `1.2.3,'
./configure: line 7229: `  AM_PATH_GLIB(1.2.3, , as_fn_error $? "gFTP needs GLIB 1.2.3 or higher" "$LINENO" 5)'

谷歌搜索后发现需要安装 glibc 和 gtk 包。所以尝试安装,但已经安装了软件包。所以运行 aclocal 来生成 *.m4,但仍然无法构建从 GIT 存储库下载的 GNOME gftp 应用程序。请帮助解决这个问题,以便我可以构建并开始为 GNOME gftp 做出贡献。

4

1 回答 1

1

Gftp正在寻找两个宏AM_PATH_GLIB以及AM_PATH_GTK何时要编译。不幸的是,这些都不可用。在我的系统(Debian 测试)上,我发现存在两个宏AM_PATH_GLIB_2_0,并且AM_PATH_GTK_2_0/usr/share/aclocal.

现在,在源代码AM_PATH_GLIB中用inAM_PATH_GLIB_2_0AM_PATH_GTKwith替换它可以解决这些问题。AM_PATH_GTK_2_0configure.ingftp

我还收到一条错误消息,说对自动de-ANSI-fication支持的支持已被删除。AM_C_PROTOTYPES我通过在 configure.in 中注释掉了这一点。gftp为我成功编译了这些更改。

于 2014-03-02T19:26:27.527 回答