[mapserver-users] Compiling gd with freetype2 on Solaris 2.6
JohnHockaday at auslig.gov.au
Tue Nov 13 23:16:55 EST 2001
First of all thanks for replying.
Yes I did have a "2" in the ./configure statement. It just made a transpose
mistake while putting it into my initial email.
I have had some success by using the gd-1.8.4gif.tar.gz version located at
"Albatross Consulting" site URL:
and editing the Makefile to include the path to the freetype2 include files.
IE. /usr/local/include/freetype2 (note the "2" this time) ;--)
This seems to have worked however after I compile mapserver I get the
following error when I run mapserv:
ld.so.1: ./mapserv: fatal: libfreetype.so.6: open failed: No such file or
The /usr/local/lib/libfreetype.so.6 file exists.
I've tried adding lots of configuration options to the configure script.
./configure --prefix=/usr/local/ --exec-prefix=/usr/local --with-freetype
--with-proj --with-gd=/usr/local --with-zlib --with-wmsclient
Anyone know what is happening?
Thanks for your help.
> -----Original Message-----
> From: John Carlson [SMTP:carlson14 at llnl.gov]
> Sent: Wednesday, November 14, 2001 1:38 PM
> To: Hockaday, John
> Subject: Re: [mapserver-users] Compiling gd with freetype2 on Solaris
> >I believe that I have successfully compiled freetype-2.0.1 with its
> >pre-requisites but when I try to compile gd as follows:
> > ./configure --enable-freetype2 --libdir=/usr/local/lib \
> > --includedir=/usr/local/include \
> > --x-includes=/usr/local/include/freetype/freetype \
> Do you need a freetype2 above????
> > --x-libraries=/usr/local/lib
> >I get the following warning:
> >checking for X... libraries /usr/local/lib, headers
> >checking for main in -lm... (cached) yes
> >checking for deflate in -lz... (cached) yes
> >checking for png_check_sig in -lpng... (cached) yes
> >checking for freetype.h... (cached) no
> >configure: warning: libgd will be built without support for FreeType2
> >- no freetype.h.
> >checking for FT_Init_FreeType in -lfreetype... (cached) yes
> >checking for ANSI C header files... (cached) no
> >freetype.h is located in /usr/local/include/freetype2/freetype
> You have a 2 here, but not above.
> >but the configuration file seems to ignore that I have
> >included this path in the --x-includes option for configure.
> >Has anyone come across this problem and solved it? If so can someone
> >me what I need to do to get gd to compile with freetype2 with GIF
> >Thanks in advance for your help.
> >John Hockaday
More information about the mapserver-users