[Top][All Lists]

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

[Mingw-cross-env-list] gd library: libpng not properly included?

From: Natalie Tasman
Subject: [Mingw-cross-env-list] gd library: libpng not properly included?
Date: Fri, 11 Jun 2010 13:47:15 -0700

I am finding that gd is being built without libpng support, so it seems.

Symptom: when linking to my program, I get

  undefined reference to `_gdImagePngPtr'
  collect2: ld returned 1 exit status

(I'm on Mac OS X 10.6 64-bit with recent macports installed.)

Looking at the gd configure and build log:

from configure:
  checking png.h usability... yes
  checking png.h presence... yes
  checking for png.h... yes
  checking for png_create_read_struct in -lpng12... no
  configure: WARNING: libpng is required - see http://www.libpng.org/pub/png/

  [... ]

  ** Configuration summary for gd 2.0.34:

   Support for PNG library:
   Support for JPEG library:         yes
   Support for Freetype 2.x library: yes
   Support for Fontconfig library:   no
   Support for Xpm library:          no
   Support for pthreads:             yes

And no libpng at the gd library construction phase:

/bin/sh ./libtool --tag=CC --mode=link i686-pc-mingw32-gcc  -DNONDLL -DXMD_H -L/
-L/Users/natalie/mingw-cross-env/usr/i686-pc-mingw32/lib  -o libgd.la
-rpath /Users/natalie/mingw-cross-e
nv/usr/i686-pc-mingw32/lib -version-info 2:0:0  gd.lo gdfx.lo
gd_security.lo gd_gd.lo gd_gd2.lo gd_io.lo gd_io_dp.lo gd_gif_in.lo
gd_gif_out.lo gd_io_file.lo gd
_io_ss.lo gd_jpeg.lo gd_png.lo gd_ss.lo gd_topal.lo gd_wbmp.lo
gdcache.lo gdfontg.lo gdfontl.lo gdfontmb.lo gdfonts.lo gdfontt.lo
gdft.lo gdhelpers.lo gdkanji.l
o gdtables.lo gdxpm.lo wbmp.lo  -ljpeg -lfreetype -lz
-L/Users/natalie/mingw-cross-env/usr/i686-pc-mingw32/lib -lxml2 -lz

Thanks for any advice,


reply via email to

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