[Mapserver-users] libgd was not built with FreeType font support

Zak James zak-ms at hoppsan.org
Mon Mar 1 12:20:01 EST 2004


You need to recompile php to use your system's gd library rather than  
it's own internal one (which is the default). Mapserver has picked up  
your system gd, which is why cgi mode works. In php's configure, you  
need to do --with-gd=<path to system gd>

Watch configure's output closely to make sure it's actually getting the  
correct gd - if there's a problem  it grabs the one in it's own ext  
folder.

zak
--
Zak James
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca


On Mar 1, 2004, at 9:50 AM, Eduardo Patto Kanegae wrote:

> When trying to run $MapFile->draw() I'm getting:
> "Warning: [MapServer Error]: msGetLabelSize(): libgd was not built  
> with FreeType font support in ..."
>
> The strange fact is that my CGI applications runs OK.
>
> ---------------
>
> I have MapServer CGI as
> MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF  
> SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER  
> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT  
> INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
> configured with :
> $ ./configure --prefix=/usr/local --without-jpeg --without-tiff  
> --with-freetype --with-zlib --with-png --with-gd  
> --with-xpm=/usr/X11R6/lib  
> --with-pdf=/usr/local/mapserver-linux-distro/deps/PDFlib-5.0.2-Linux/ 
> bind/c --with-eppl --with-proj --with-threads --with-ogr --with-gdal  
> --without-ming --with-wfs --with-wfsclient --with-wms -with-wmsclient  
> --with-curl-config --with-curl --enable-ignore-missing-data  
> --disable-debug  
> --with-php=/usr/local/mapserver-linux-distro/deps/php-4.3.4
>
> and PHPMapScript as
> MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF  
> SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER  
> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT  
> INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
> configured with:
> 	$ ./configure --prefix=/usr/local --without-aolserver  
> --without-apache --enable-cli --disable-embed  --without-nsapi  
> --without-pi3web  --without-servlet --enable-cgi  
> --enable-force-cgi-redirect --enable-fastcgi --disable-debug  
> --with-config-file-path=/etc --enable-safe-mode --disable-sigchild  
> --enable-magic-quotes --enable-short-tags --disable-ipv6  
> --without-openssl --with-zlib --without-bz2 --enable-calendar  
> --without-cpdflib --with-jpeg=/usr/local/bin  
> --with-tiff=/usr/local/lib --without-crack --with-curl=/usr/local/lib  
> --without-cyrus --without-db --enable-dba --without-gdbm  
> --without-ndbm --without-dba --without-db3 --without-db2 --without-dbm  
> --without-cdb --with-inifile --without-flatfile --enable-dbase  
> --enable-dbx --enable-dio --without-dom --enable-exif --without-fbsql  
> --without-fdftk --disable-filepro --without-fribidi--enable-ftp  
> --with-cg=/usr --with-jpeg-dir=/usr/local/bin --with-freetype=/usr/lib  
> --with-t1lib=/usr/include --with-gd --enable-gd-native-ttf --dis!
>  able-gd-jis-conv --with-gettext=/usr/lib --without-gmp  
> --without-hwapi --without-hyperwave  --without-imap --without-kerberos  
> --without-imap-ssl --without-informix --without-ingress  
> --without-interbase --without-ircg --without-java --without-ldap  
> --enable-mbstring --disable-mregex --without-libmbfl --without-mcal  
> --without-mcrypt --without-mcve --with-mhash  
> --with-mime-magic--without-mnogosearch --without-msession  
> --without-msql --without-mssql --with-mysql --without-ncurses  
> --without-oci8 --without-adabas  --without-sapdb --without-solid  
> --without-ibm-db2 --without-empress --without-birdstep  
> --without-custom-odbc --without-iodbc --without-esoob  
> --without-unixODBC --without-dbmaker --without-oracle  
> --disable-overload --without-ovrimos --disable-pcntl --with-pcre-regex  
> --without-pfpro --with-pgsql=/usr --disable-posix --without-pspell  
> --without-qtdom --without-libedit --without-readline --without-recode  
> --enable-session --with-mm --disable-shmop --without-snmp  
> --disable-ucd-!
>  snmp-hack --enable-sockets --with-regex=system --without-swf --without
>
> -sybase --without-sybase-ct --disable-sysvmsg --disable-sysvsem  
> --disable-sysvshm --disable-tokenizer --disable-wddx --enable-xml  
> --disable-xslt --without-sablot-js --without-yaz --disable-yp  
> --without-zip --with-pear
>
> thanks in advance.
>
> Eduardo Patto Kanegae
> http://www.consultoria.eti.br
>
> ## Projeto MapServer Brasil - http://mapserver.cttmar.univali.br ##
> ***************************************
> ***Fim da Mensagem / End of Message ***
> ***************************************
>
>
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>




More information about the mapserver-users mailing list