Ticket #2215 (closed defect: fixed)
HowTo Build AGG with freetype support from sources
|Reported by:||woodbri||Owned by:||dmorissette|
|Component:||Build Problems||Version:||svn-trunk (development)|
|Cc:||warmerdam, sdlime, tbonfort, jmckenna|
Description (last modified by warmerdam) (diff)
Boy was it a pain to get agg to compile with freetype support. For the record this is what I did, but agg really needs to get their autotools stuff working.
Please note that this was done against 2.5 and I probably need to pull down 2.4 and make sure this works the same. Because 2.5 is the GPL version, we have to deal with users (like me) just grabbing the latest and greatest and building it in. This might be another reason to fork 2.4 into our own source tree probably in parallel to mapserver to control the licensing issues and to just make it easier to deal with. Long term we will want to do this to fix bugs locally and maybe to enhance it.
cd /u/software/agg-2.5/examples/X11 vi Makefile # Change: # -I/usr/local/include/freetype2 \ # To: # `freetype-config --cflags` \ make freetype # this runs then bombs but creates the agg_font_freetype.o file # which is all we care about. cd /u/software/agg-2.5/font_freetype/ ar r libaggfontfreetype.a agg_font_freetype.o cd /u/software/agg-2.5/src ln -s ../font_freetype/libaggfontfreetype.a cd /u/software/agg-2.5/ make cd /u/software/mapserver-svn ./configure \ --enable-ignore-missing-data \ --enable-debug \ --with-httpd=/usr/sbin/apache \ --with-proj=/usr \ --with-agg=/u/software/agg-2.5 \ --with-gd \ --with-gdal \ --with-freetype \ --with-postgis \ --without-tiff \ --with-wmsclient \ --with-ogr \ --with-wfs \ make
There is probably a better/simpler way to do this, but this worked.