I replace the ftmac.c of original freetype-2.1.4 with 1.30 from cvs and build freetype-2.1.4 without any errors (even with no errors without 1.30 from cvs).
I try to build gd-2.0.15 without building with freetype-2.1.4 and it seems fine though.
But I still got problem as above and the following is my steps used:
Thanks.
Tse-Ching Ho
zlib-1.1.4
% curl -O http://www.libpng.org/pub/png/src/zlib-1.1.4.tar.gz % guntar -xzf zlib-1.1.4.tar.gz
% cd zlib-1.1.4
% ./configure
% make
% sudo make install
% sudo ranlib /usr/local/lib/libz.a
libpng-1.2.5
% curl -O http://www.libpng.org/pub/png/src/libpng-1.2.5.tar.gz % guntar -xzf libpng-1.2.5.tar.gz
% cd libpng-1.2.5
% cp scripts/makefile.darwin makefile
% make ZLIBINC="/usr/local/include" ZLIBLIB="/usr/local/lib"
% sudo make install
% sudo ranlib /usr/local/lib/libpng.a
jpeg-6b
% curl -O ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
% gnutar -xzf jpegsrc.v6b.tar.gz
% cd jpeg-6b
% ./configure
% make
% sudo make install
% sudo make install-lib
% sudo ranlib /usr/local/lib/libjpeg.a
freetype-2.1.4
Get freetype-2.1.4 from http://prdownloads.sourceforge.net/freetype/freetype-2.1.4.tar.gz Get ftmac.c from http://cvs.freetype.org/cgi-bin/viewcvs.cgi/freetype2/src/base/ftmac.c % cd freetype-2.1.4
% ./configure --prefix=/usr/X11R6
% make
% sudo make install
% sudo ranlib /usr/X11R6/lib/libfreetype.a
gd-2.0.15
% curl -O http://www.boutell.com/gd/http/gd-2.0.15.tar.gz % gnutar -xzf gd-2.0.15.tar.gz
% cd gd-2.0.15
% ./configure CPPFLAGS=-I/usr/X11R6/include/freetype2 -with-freetype=/usr/X11R6
## message seems ok
** Configuration summary for gd 2.0.15:
Support for PNG library: yes
Support for JPEG library: yes
Support for Freetype 2.x library: yes
Support for Xpm library: no
% make
## two errors I got :(
*** Warning: linker path does not have real file for library -ljpeg.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libjpeg and none of the candidates passed a file format test
*** using a file magic. Last file checked: /usr/local/lib/libjpeg.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
......
gcc -g -O2 -o .libs/annotate annotate.o -L/usr/X11R6/lib -L./.libs -lgd -ljpeg -lfreetype -lpng -lz
ld: Undefined symbols:
_FT_New_Face
make[2]: *** [annotate] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
## so I didn't do the next two steps
% sudo make install
% sudo ranlib /usr/local/lib/libgd.a
[Prev in Thread]
Current Thread
[Next in Thread]
[Freetype] Errors when compile gd-2.0.15 with freetype-2.14 on Mac OS 10.2.6,
Tse-Ching Ho<=