On 7/11/09 14:06, Wolf Drechsel wrote:
On 7/11/09 13:50, ~suv wrote:
On 7/11/09 11:55, Wolf Drechsel wrote:
as I'm running into the well-known "gnuplot-inkscape"-bug of 0.46, and unluckily no 0.47 ppc precompiled packages are available, I tried to compile the most recent package myself on Mac OS X 10.4.11 PPC.
After "./configure" I run into this error message:
configure: error: libpng >= 1.2 is needed to compile inkscape
But I do have a suitable libpng:
port installed libpng The following ports are currently installed: libpng @1.2.38_0 (active)
Initially when running autogen.sh and configure on OS X 10.5.8 i386 I had the same issue. My workaround at that time is described in an earlier thread [1], but as I lack experience and coding skills myself I can't judge its validity. Maybe one of devs involved in the osx packaging process can provide more insight into this problem.
[1] http://thread.gmane.org/gmane.comp.graphics.inkscape.devel/31219/focus=31221
Sorry that I'm really a kid… - I assumed that the sentence "and after adding the PKG_CONFIG_PATH to the shell environment" means pasting
export PKG_CONFIG_PATH="$LIBPREFIX/lib/pkgconfig:$PKG_CONFIG_PATH"
into the shell - and than do autogen, configure, make and make install.
So did I - but ended up with the same error. Or should I have copied the line into one of the files?
In the previous posting in that thread I described that I put the shell environment configuration [2] into a shell script which I source whenever I need the build environment set up (e.g. to run configure):
contents of config-env.sh: #<--- snip ---> #!/bin/sh
export LIBPREFIX="/opt/local" # 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 #<--- snip --->
But please note that I am not sure if this is the correct way to handle the issue - in one of my other posts in that previous thread I mention that the MacPorts inkscape-devel port [3] includes a set of patches for autogen.sh and configure that possibly address a similar problem with a proper solution... I never tried to make use of those patches and I never build inkscape-devel via MacPorts (only the needed dependencies to build Inkscape.app outside of MacPorts).
~suv (I know that's not very helpful, but it's all I know ATM)
[2] the build environment variables as mentioned on the Wiki page about building Inkscape on OS X. http://wiki.inkscape.org/wiki/index.php/CompilingMacOsX#Setting_the_build_environment
[3] inkscape-devel Portfile: http://trac.macports.org/browser/trunk/dports/graphics/inkscape-devel/Portfile Patches in the files subdirectory: http://trac.macports.org/browser/trunk/dports/graphics/inkscape-devel