|
From: Ethan A M. <merritt@u.washington.edu> - 2008-12-17 07:36:33
|
On Tuesday 16 December 2008, Petr Mikulik wrote: > > I have been struggling to build gd libraries for these days. Today I have succeeded to build > > gd-2.0.36RC1 static library and get rid of the problem of mingw-gcc-4.3.0 building. > > > > No modification has not been required for gd.trm. > > > > However it is required to add '-lfontcongfig -liconv' to linker flag in makefile.mgw. > > (This is required regardless gcc version.) > > > > Where is the suitable place to add the flags: '-lfontconfig -liconv' ? > > I use an older static version of gd and these flags cannot be used (no > iconv.a). > > > Temporary I modified > > > > ifdef FREETYPE > > CFLAGS += -DHAVE_GD_TTF > > TERMLIBS += -lfreetype > > endif > > | > > V > > ifdef FREETYPE > > CFLAGS += -DHAVE_GD_TTF > > TERMLIBS += -lfreetype -lfontconfig -liconv > > endif > > > > But it seem not so good to do it. > > Aha, so you need them for your version of freetype, not for gd. libgd requires freetype. libgd also requires fontconfig. I think it is correct to put them both in TERMLIBS as shown above. > Where do fontconfig.a and iconv.a come from? fontconfig is required by libgd directly iconv is used for character encoding conversions and internationalization, but I don't know why there is a dependency in this case. In fact, I don't even have a libiconv on my machines, it is a stand-alone utility. -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |