2

我已经下载了 Linphone 开源并使用 MINGW 构建。我已按照 README.mingw 给出的步骤进行操作。当我使用命令“./autogen.sh”时,出现以下错误。

+ aclocal -I m4 -I /usr/local/share/aclocal -I /share/aclocal
aclocal:m4/po.m4:36: warning: macro `AM_PATH_PROG_WITH_TEST' not found in librar
y
aclocal:m4/po.m4:61: warning: macro `AM_PATH_PROG_WITH_TEST' not found in librar
y
aclocal:m4/po.m4:78: warning: macro `AM_PATH_PROG_WITH_TEST' not found in librar
y
aclocal:m4/gettext.m4:170: warning: macro `AM_ICONV_LINK' not found in library
configure.ac:185: warning: AM_NLS is m4_require'd but not m4_defun'd
m4/intltool.m4:27: IT_PROG_INTLTOOL is expanded from...
configure.ac:185: the top level
configure.ac:194: warning: AM_NLS is m4_require'd but not m4_defun'd
m4/po.m4:23: AM_PO_SUBDIRS is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
configure.ac:194: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defu
n'd
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
configure.ac:194: warning: AC_LIB_RPATH is m4_require'd but not m4_defun'd
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
configure.ac:194: warning: AM_ICONV_LINKFLAGS_BODY is m4_require'd but not m4_de
fun'd
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
configure.ac:194: warning: AM_NLS is m4_require'd but not m4_defun'd
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
+ autoheader
configure.ac:185: warning: AM_NLS is m4_require'd but not m4_defun'd
m4/intltool.m4:27: IT_PROG_INTLTOOL is expanded from...
configure.ac:185: the top level
configure.ac:194: warning: AM_NLS is m4_require'd but not m4_defun'd
m4/po.m4:23: AM_PO_SUBDIRS is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
configure.ac:194: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defu
n'd
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
configure.ac:194: warning: AC_LIB_RPATH is m4_require'd but not m4_defun'd
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
configure.ac:194: warning: AM_ICONV_LINKFLAGS_BODY is m4_require'd but not m4_de
fun'd
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
configure.ac:194: warning: AM_NLS is m4_require'd but not m4_defun'd
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
+ automake --force-missing --add-missing --copy
configure.ac:185: warning: AM_NLS is m4_require'd but not m4_defun'd
m4/intltool.m4:27: IT_PROG_INTLTOOL is expanded from...
configure.ac:185: the top level
configure.ac:194: warning: AM_NLS is m4_require'd but not m4_defun'd
m4/po.m4:23: AM_PO_SUBDIRS is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
configure.ac:194: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defu
n'd
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
configure.ac:194: warning: AC_LIB_RPATH is m4_require'd but not m4_defun'd
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
configure.ac:194: warning: AM_ICONV_LINKFLAGS_BODY is m4_require'd but not m4_de
fun'd
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
configure.ac:194: warning: AM_NLS is m4_require'd but not m4_defun'd
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
src/Makefile.am: C objects in subdir but `AM_PROG_CC_C_O' not in `configure.ac'
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepOBJC does not appear in
AM_CONDITIONAL
tester/Makefile.am: C objects in subdir but `AM_PROG_CC_C_O' not in `configure.a
c'
tools/Makefile.am: C objects in subdir but `AM_PROG_CC_C_O' not in `configure.ac
'
/usr/local/share/automake-1.9/am/depend2.am: am__fastdepOBJC does not appear in
AM_CONDITIONAL
+ autoconf
configure.ac:185: warning: AM_NLS is m4_require'd but not m4_defun'd
m4/intltool.m4:27: IT_PROG_INTLTOOL is expanded from...
configure.ac:185: the top level
configure.ac:194: warning: AM_NLS is m4_require'd but not m4_defun'd
m4/po.m4:23: AM_PO_SUBDIRS is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
configure.ac:194: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defu
n'd
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
configure.ac:194: warning: AC_LIB_RPATH is m4_require'd but not m4_defun'd
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
configure.ac:194: warning: AM_ICONV_LINKFLAGS_BODY is m4_require'd but not m4_de
fun'd
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
configure.ac:194: warning: AM_NLS is m4_require'd but not m4_defun'd
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:194: the top level
configure:16639: error: possibly undefined macro: AM_NLS
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure:17116: error: possibly undefined macro: AM_PATH_PROG_WITH_TEST
configure:17194: error: possibly undefined macro: AC_LIB_PREPARE_PREFIX
configure:17195: error: possibly undefined macro: AC_LIB_RPATH
configure:17196: error: possibly undefined macro: AM_ICONV_LINKFLAGS_BODY
configure:17365: error: possibly undefined macro: AM_ICONV_LINK
configure:17367: error: possibly undefined macro: AC_LIB_LINKFLAGS_BODY
configure:17500: error: possibly undefined macro: AC_LIB_APPENDTOVAR

我在互联网上搜索过。但我没有得到任何解决方案。请问有人可以帮我解决这个问题吗?

4

2 回答 2

1

出现此问题是因为 homebrew 安装到 /usr/local,并且 Linphone 被编码为假定 macports 的标准安装前缀为 /opt/local。

您可以通过编辑 submodules/linphone/autogen.sh 并将以 /opt/local 开头的路径更改为 /usr/local 来解决此特定问题:

if test -d /usr/local/share/aclocal ; then
    ACLOCAL_ARGS="-I /usr/local/share/aclocal"
fi
于 2014-01-16T15:11:22.820 回答
0

使用自制软件安装时,我在 Mavericks OSX10.9 上遇到了同样的错误。我发现的建议是确保您安装了 pkg-config。不幸的是,这个修复对我没有用,但它可能对你有用。请参阅:可能未定义的宏:AC_MSG_ERROR

于 2013-11-15T14:20:38.290 回答