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/
dlopen(/opt/local/lib/ >> gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloa >>,
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/ >> :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/ 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

Copyright 2021. All rights reserved.

Posted November 26, 2011 by Timothy Conrad in category "OSX

About the Author

If I were to describe myself with one word it would be, creative. I am interested in almost everything which keeps me rather busy. Here you will find some of my technical musings. Securely email me using - PGP: 4CB8 91EB 0C0A A530 3BE9 6D76 B076 96F1 6135 0A1B