[mapserver-users] Compiling mapserver with custom libtiff and libgeotiff
Pavel Iacovlev
iacovlev.pavel at gmail.com
Mon Jun 22 10:39:27 PDT 2009
Good day all,
Os: Ubuntu 8.04
I need bigtiff support in mapserver (default version in ubuntu 8.04
does not offer this).
Steps:
#libtiff
make
sudo make install
#libgeotiff
./configure --with-ld-shared="gcc -shared"
make
sudo make install
#mapserver
./configure \
--prefix=/usr \
--with-pdf \
--with-freetype \
--with-agg \
--with-eppl \
--with-proj \
--with-threads \
--with-sde \
--with-geos \
--with-ogr \
--with-gdal \
--with-tiff=/usr/local \
--with-postgis \
--with-wfs \
--with-wcs \
--with-wmsclient \
--with-wfsclient \
--with-sos \
--with-fribidi-config \
--with-php=/usr/include/php5 \
--with-httpd=/usr/sbin/apache2 \
--with-gd
make
Error (on mapserver make)
gcc -c -O2 -fPIC -Wall -DNEED_NONBLOCKING_STDERR -DHAVE_VSNPRINTF
-DNEED_STRLCAT -DNEED_STRRSTR -DNEED_NONBLOCKING_STDERR
-DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL
-DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DUSE_TIFF
-DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL
-DUSE_AGG -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_ICONV -DUSE_ZLIB -I/usr/include
-I/usr/include/agg2 -I/usr/include/freetype2 -I/usr/local/include
-I/usr/include/gdal -I/usr/include/postgresql -I/usr/include
-I/usr/include/libxml2 mapraster.c -o mapraster.o
mapraster.c: In function ‘readGEOTiff’:
mapraster.c:444: error: ‘TIFFDirEntry’ undeclared (first use in this function)
mapraster.c:444: error: (Each undeclared identifier is reported only once
mapraster.c:444: error: for each function it appears in.)
mapraster.c:444: error: expected ‘;’ before ‘tdir’
mapraster.c:453: warning: pointer targets in passing argument 1 of
‘TIFFSwabShort’ differ in signedness
mapraster.c:456: error: ‘tdir’ undeclared (first use in this function)
make: *** [mapraster.o] Error 1
Without --with-tiff=/usr/local compiles fine.
Any help would be appreciated.
--
http://iap.md, The future is open
More information about the MapServer-users
mailing list