gtk2 build fails: missing PNG?

Rainer Müller raimue at
Wed Mar 23 12:27:24 PDT 2011

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


More information about the macports-users mailing list