无法从GNOME gftp应用程序中的构建错误中恢复

时间:2014-01-19 14:59:23

标签: git gnome m4

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做贡献。

1 个答案:

答案 0 :(得分:0)

Gftp在想要编译时正在寻找两个宏AM_PATH_GLIBAM_PATH_GTK。不幸的是,这些都不可用。在我的系统上(Debian测试),我发现在AM_PATH_GLIB_2_0中存在两个宏AM_PATH_GTK_2_0/usr/share/aclocal

现在,在AM_PATH_GLIB来源的AM_PATH_GLIB_2_0中将AM_PATH_GTK替换为AM_PATH_GTK_2_0,将configure.in替换为gftp,这样就可以解决这些问题。

我还收到一条错误消息,表示已删除对自动de-ANSI-fication支持的支持。我通过在configure.in中注释掉AM_C_PROTOTYPES来解决这个问题。这些更改gftp已成功编译给我。