November 26

OSX: gtk2 build fails: missing PNG? – macports

On 2011-03-23 12:24 , Philip Hudson wrote:
> What do you make of this: > [...] >> :info:build failed to load "./apple-red.png":
Unable to load image- >> loading module:
/opt/local/lib/gdk-pixbuf >> -2.0/2.10.0/loaders/libpixbufloader-png.so:
dlopen(/opt/local/lib/ >> gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloa >> der-png.so,
1): Library not loaded: /opt/local/lib/libpng12.0.dylib >>
:info:build Referenced from: /opt/local/lib/gdk-pixbuf-2.0/2.10.0/ >>
loaders/libpixbufloader-png.so >> :info:build Reason: image not found 
Apparently this library is still linked against the older libpng 1.2
which was replaced with the incompatible libpng 1.4 a while ago. This
library comes from the gdk-pixbuf2 port.

$ port provides
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so is
provided by: gdk-pixbuf2

Make sure none your ports are outdated:

  # get latest Portfiles
  sudo port selfupdate
  # review list of outdated ports
  port -v outdated
  # upgrade them all
  sudo port upgrade outdated

If none of your installed ports is outdated, gdk-pixbuf2 needs a forced
rebuild to resolve this:

  sudo port -n upgrade --force gdk-pixbuf2

By: Rainer
Category: OSX | Comments Off on OSX: gtk2 build fails: missing PNG? – macports