lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: doc build failure: something weird with fink libpng, netpbm, and mak


From: Han-Wen Nienhuys
Subject: Re: doc build failure: something weird with fink libpng, netpbm, and make web
Date: Tue, 20 Feb 2007 11:02:08 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20070212)

Graham Percival escreveu:
> When I try to build the docs, I get the following error:
> 
> Invoking `pngtopnm lily-39f2b92ff8.png.old | pnmscale -reduce 2
> 2>/dev/null | pnmtopng -compression 9 2>/dev/null > lily-39f2b92ff8.png'...
> dyld: Library not loaded: /sw/lib/libpng.3.dylib
>   Referenced from: /sw/bin/pngtopnm
>   Reason: Incompatible library version: pngtopnm requires version 20.0.0
> or later, but libpng.3.dylib provides version 4.0.0
> GS exited with status: 34048command failed...  (much more junk)
> 
> 
> I sent an email to the libpng/netpbm fink packager complaining about
> this, but after a bit of investigation I've discovered that if run the`
> pngtopnm lily-39f2b92ff8.png.old | ...' command by itself, it works
> fine.  otool reports sensible-looking info:
> 
> tsubasa:~/usr/src/lilypond/input/lsr/ancient gperciva$ otool -L
> /sw/bin/pnmtopng
> /sw/bin/pnmtopng:
>         /sw/lib/libnetpbm.10.dylib (compatibility version 11.0.0,
> current version 11.26.0)
>         /sw/lib/libpng.3.dylib (compatibility version 20.0.0, current
> version 20.0.0)
>         /usr/lib/libz.1.dylib (compatibility version 1.0.0, current
> version 1.2.3)
>         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 88.3.4)
>         /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
> version 1.0.0)
> 
> 
> I have no clue how pngtopbm managed to find a "version 4.0.0".  Does
> anybody have any hints?

LilyPond uses pnggtopnm for scaling down PNG images. Unfortunately, there 
is a version clash between libpng as shipped with lilypond and the one in
fink. 

MY suggestion: create a ~/bin/pnmtopng, which does 

  export DYLD_LIBRARY_PATH={insert normal DYLD_LIBRARY_PATH}
  exec /sw/bin/pnmtopng "$@"


 

-- 

Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com





reply via email to

[Prev in Thread] Current Thread [Next in Thread]