[mapserver-users] Trouble compiling 5.0.2 with AGG on Centos 4

Dominik Schmid dominik.schmid at ilu.ch
Fri May 16 06:31:29 EDT 2008


Hi Guillaume

thanks for the advice, somehow I hadn't tried that combination. I'm 
still not sure if AGG is going to work at all but at least Mapserver 
compiled.

In the next attempt I added some more options (--with-proj, --with-geos 
etc., as per instructions on 
http://www.darandandunguen.org/2008/02/01/como-instalacion-de-mapserver-5-con-postgis-en-rhel5howto-mapserver-5-and-postgis-in-rhel5/ 
about 3/4 down the page) and now configure chokes on OGR. I get the 
following error:

configure: checking whether we should include WMS Server support...
         OGC WMS compatibility enabled (-DUSE_WMS_SVR).
configure: checking whether we should include WFS Server support...
configure: error: OGC WFS Server support cannot be enabled: missing OGR 
which is required).

Checking the gdal config:
# /usr/bin/gdal-config --ogr-enabled
yes

Looking for the GDAL files:
# ls /usr/lib | grep -i gdal
libgdal.a
libgdal.la
libgdal.so
libgdal.so.1
libgdal.so.1.11.0
# ls /usr/bin/ | grep -i gdal
gdal2xyz.py
gdaladdo
gdalchksum.py
gdal-config
gdal_contour
gdalimport.py
gdalinfo
gdal_merge.py
gdal_rasterize
gdaltindex
gdal_translate
gdalwarp
# ls /usr/include/gdal | grep -i gdal
gdal_alg.h
gdal_frmts.h
gdal.h
gdaljp2metadata.h
gdal_pam.h
gdal_priv.h
gdal_rat.h
gdal_version.h
gdalwarper.h

So GDAL seems to be installed properly. Where else could the problem be 
located?

Thanks for any insight
Dominik

Guillaume Sueur schrieb:
> try
> --with-freetype=/usr/bin
> and
> --with-agg=/path/to/agg/build/dir
> 
> Guillaume
> 
> Dominik Schmid a écrit :
>> We've finally decided to move forward and replace our ageing Mapserver 
>> 4.0.1 installation with the latest and greatest version.
>>
>> I came as far as thinking that the AGG make was successfull, but when 
>> I  try to configure Mapserver ("/.configure -with-agg 
>> --with-freetype") I get the following error:
>>
>> configure: error: freetype required for agg support - please configure 
>> --with-freetype
>>
>> I did include some directories with both options with the same result. 
>> I'm not sure where AGG is exactly installed (directly in "agg-2.x" or 
>> in a subdirectory in there) nor which freetype directory to use 
>> located (the libfreetype.* files are in "/usr/lib" but freetype-config 
>> is in "/usr/bin").
>>
>> When I check in yum I see that freetype 2.1.9 is in fact installed. 
>> One problem I see is with AGG, I can't get it through Centos 4 
>> repositories so I guess need to compile it myself. I've tried various 
>> instructions:
>> - http://trac.osgeo.org/mapserver/ticket/2215 (not sure if that's 
>> still valid info)
>> - Rich Fromm's instructions posted on this list on Nov 27, 2007
>>
>> The instruction in ticket 2215 don't result in the promised 
>> agg_font_freetype.o file, neither in agg-2.4 nor agg-2.5.
>> Rich's instructions for build AGG (". autogen.sh") exits with the 
>> following error:
>> ./configure: line 4513: syntax error near unexpected token 'FREETYPE,'
>> ./configure: line 4513: 'PKG_CHECK_MODULES(FREETYPE,'
>>
>> I'm kind of lost with this, so I'm turning to this list for help. 
>> Documentation for installing Mapserver 5 with AGG support seems scarce.
>>
>> Here's some more system info:
>>
>> - Centos 4.4
>> - Apache 2.0.52
>> - PHP 5.1.6
>> - pgsql 8.1.8
>> - freetype and freetype-devel 2.1.9
>> ... I can give more specs if needed.
>>
>> Any help is greatly appreciated
>> Dominik
> 
> 
> 


-- 
Dominik Schmid
Dipl. Umweltnaturwissenschafter ETH

ilu AG
Zentralstrasse 2a
CH-8610 Uster

Tel: +41 44 / 944 55 56    (Direktwahl)
Tel: +41 44 / 944 55 55    (allgemein)
Fax: +41 44 / 944 55 66

mailto:dominik.schmid at ilu.ch
http://www.ilu.ch


More information about the mapserver-users mailing list