
On 28/8/09 19:45, bulia byak wrote:
A friend is trying to compile Inkscape on OSX 10.5.8, but since I never used macs before we're stuck and would appreciate any help. After we installed the libs, we get this error when autoheader tries to run:
checking for autoconf >= 2.52 ... yes (version 2.64) checking for automake >= 1.10 ... yes (version 1.10) checking for glib-gettextize >= 2.0.0 ... yes (version 2.20.4) checking for intltool >= 0.17 ... yes (version 0.40.6)
Running aclocal-1.10 -I /opt/local/var/macports/distfiles ... configure.ac:133: warning: macro `AM_GLIB_GNU_GETTEXT' not found in library Running autoheader ... autoheader: warning: missing template: ENABLE_NLS autoheader: Use AC_DEFINE([ENABLE_NLS], [], [Description]) Please fix the error conditions and try again.
Does that ring a bell?
searching my old build log files, yes, I had the same issue:
Running aclocal-1.10 ... configure.ac:133: warning: macro `AM_GLIB_GNU_GETTEXT' not found in library Running autoheader ... autoheader: warning: missing template: ENABLE_NLS autoheader: Use AC_DEFINE([ENABLE_NLS], [], [Description]) Please fix the error conditions and try again. LeWitt:inkscape suv$ mvim auto autogen.sh autom4te.cache/ LeWitt:inkscape suv$ mvim autogen.sh LeWitt:inkscape suv$ source ../config-env.sh
It looks that sourcing the following shell script (only before running 'autogen.sh' and 'configure') helped. You need to adjust $LIBPREFIX to your MacPorts-Prefix (default is '/opt/local' I think) - I don't use the default MacPorts configuration.
config-env.sh:
#!/bin/sh
export LIBPREFIX="/Volumes/blue/mp" # automake seach path export CPATH="$LIBPREFIX/include" # configure search path export CPPFLAGS="-I$LIBPREFIX/include" export LDFLAGS="-L$LIBPREFIX/lib" # compiler arguments export CFLAGS="-O3 -Wall" export CXXFLAGS="$CFLAGS" # to speed up the compilation export CC="ccache gcc" export CXX="ccache g++"
export ACLOCAL_FLAGS="-I $LIBPREFIX/share/aclocal" export PKG_CONFIG_PATH="$LIBPREFIX/lib/pkgconfig:$PKG_CONFIG_PATH"
#eof
I am unsure if I added the last two lines on this occasion - only thing I remember at the moment is that I found a hint in autogen.sh itself what is missing...
hth, ~suv