OS X compile help needed

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?
Thanks!

bulia byak <buliabyak@...400...> writes:
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?
Thanks!
what about doing
sudo port install gettext
?
Maybe they forgot it was an Inkscape dependence.

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

On 28/8/09 20:10, ~suv wrote:
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...
After aclocal I ran into another error with libpng (correct version installed but configure didn't recognize it):
checking for png_read_info in -lpng... no configure: error: libpng >= 1.2 is needed to compile inkscape
Configure failed
and after adding the PKG_CONFIG_PATH to the shell environment, autogen.sh and configure runs completed without major errors (still AFAIR - it's four weeks ago, my first encounter with MacPorts and building Inkscape as well, and I didn't have to reconfigure from scratch since) .
hth, ~suv

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?
A better source for adapting autogen.sh and configure to MacPorts might be the patches that are used by the Inkscape Portfile: http://trac.macports.org/browser/trunk/dports/graphics/inkscape-devel/files (I didn't use the portfile for Inkscape myself but might if there will be a new one for 0.47 that has a variant to build 'Inkscape.app')
~suv
participants (3)
-
bulia byak
-
Giovanni Lanzani
-
~suv