|
From: Tatsuro M. <tma...@ya...> - 2008-12-17 09:00:53
|
Hello Ethan and Petr Thank you for your replies. >From the config.log, the configure script of the gd-2.0.36RC1 searches both libiconv and fontconfig. The gd-2.0.36RC1 is the latest gd source except for that on cvs-trees. **************** The configure and make were executed using gcc-3.4.5 with the latest mingw runtime and win32api. (mingw runtime 3.15.1 and w32api-3.13) ./configure --prefix=/usr/local/gd-2.0.36RC1 --disable-shared Here I refer small part of config.log for gd-2.0.36RC1 configure:21662: gcc -o conftest.exe -g -O2 -DNONDLL -I/mingw/include -I/GnuWin32/include -I/WinDevTools/include -L/mingw/lib -L/GnuWin32/lib -L/WinDevTools/lib conftest.c /GnuWin32/lib/libiconv.dll.a -Wl,-rpath -Wl,/GnuWin32/lib >&5 configure:21668: $? = 0 configure:21689: result: yes The libiconv used is libiconv-1.9.2 on GnuWin32. configure:23234: checking for FcInit in -lfontconfig configure:23269: gcc -o conftest.exe -g -O2 -IC:/Programs/GnuWin32/include/freetype2 -IC:/Programs/GnuWin32/include -DNONDLL -I/mingw/include -I/GnuWin32/include -I/WinDevTools/include -I/GnuWin32/include/libpng12 -LC:/Programs/GnuWin32/lib -LC:/Programs/GnuWin32/lib -Wl,-s -LD:/Progra~1/GnuWin32/lib -L/GnuWin32/bin/lib -L/mingw/lib -L/GnuWin32/lib -L/WinDevTools/lib conftest.c -lfontconfig -lfreetype -lpng12 -lz >&5 configure:23275: $? = 0 configure:23293: result: yes The fontconfig used is fontconfig-2.4.2 on the GTK web page. GTK+ for windows http://www.gtk.org/download-windows.html Regards Tatsuro --- Ethan A Merritt <merritt@u.washington.edu> wrote: > 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 > -------------------------------------- Power up the Internet with Yahoo! Toolbar. http://pr.mail.yahoo.co.jp/toolbar/ |