I created this Ticket #2215: HowTo Build AGG with freetype support from sources, http://trac.osgeo.org/mapserver/ticket/2215

Have a look it probably will help you for Linux and Jeff added some info on Windows. You will need to follow this if you do not install AGG as a distro package.

-Steve W

Rainer Spittel wrote:
Hi guys,
I am pretty keen on the new version of the mapserver. Currently I use Mapnik
in the backend to render my vector base maps and I would love to get my
architecture less complex ( Apache -> UMN Mapserver -> CherryPy -> Mapnik ;-) ).
Anyway, I struggle with the compilition of the beta 3 version on fedora 5
with AGG.
I got AGG 2.5 (and 2.4, too) and tried to run automake to compile the AGG
library - I don't see any major changes or new .so objects in my system.

So I tried to comile AGG with 'make all' (source code is in
/usr/local/src/agg-2.5/ ).
Later I run configure of the mapserver 5.0b3:

./configure --without-tiff --with-eppl --with-jpeg=/usr [...]
--with-agg=/usr/local/src/agg-2.5/
make

Finally, in compiling shp2img I get following error message:

g++ -g -O2 -fPIC -Wall  -DENABLE_STDERR_DEBUG   -DHAVE_VSNPRINTF
-DNEED_STRLCAT  -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR
-DUSE_WFS_SVR -DUSE_WFS_LYR       -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DUSE_AGG -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -DUSE_POSTGIS -DUSE_THREAD -DUSE_ZLIB -I/usr//include
-I/usr/local/src/agg-2.5//include -I/usr/local/src/agg-2.5//font_freetype
-I/usr/include/freetype2 -I/usr/local//include -I/usr/include -I/usr/local/include -I/usr/include shp2img.o -Wl,-rpath,/usr//lib
-Wl,-rpath,/usr/local/src/agg-2.5//src -Wl,-rpath,/usr/local//lib
-Wl,-rpath,/usr/local/src/mapserver-5.0.0-beta3 -L. -lmapserver -L/usr//lib
-lgd -L/usr/lib -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -L/usr/local/src/agg-2.5//src -lagg -laggfontfreetype -L/usr/lib -ljpeg
-lfreetype -lpng -lz -lXpm -lX11  -L/usr/local//lib -lproj -L/usr/lib -ljpeg
 -L/usr/local/lib -lgdal -L/usr/local/lib -lgeos -lgeos_c -L/usr/local//lib
-lxerces-c -lpthread -L/usr/local/GeoExpressSDK//lib/Release
-L/usr/local/GeoExpressSDK//3rd-party/lib/Release -lltidsdk -lpthread
-lltikdu -ljpeg -ltiff -lpng -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl
-L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto
-lkrb5support -lcom_err -lresolv -lidn -lssl -lcrypto -lz -L/usr/lib -lpq -L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto
-lkrb5support -lcom_err -lresolv -lidn -lssl -lcrypto -lz     -lpthread -lc
 -lz  -lm -lstdc++  -o shp2img
/usr/bin/ld: cannot find -laggfontfreetype
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1

Hmmm, indeed the header file (agg_font_freetype.h) is in a subfolder
(/usr/local/src/agg-2.5/font_freetype). Any ideas what I have to do to get
AGG in place so that the UMN can be compiled against the AGG version on FEDORA?

Looking foreward hearing from you.

Rainer

Reply via email to