[Mapserver-users] mapserver crashes at a png file

Carsten Busch carsten.busch at uni-jena.de
Thu Jun 26 11:19:17 EDT 2003


Hello Vincent,

Vincent Schut wrote:
> Carsten,
> 
> sorry this is gonna be a very short answer cause I got to go home.
> layers: see the mapserver cgi pages in the documentation on the website. It 
> will be somthing like 'layer=name&layer=name2&...' I think.
> About the tiff thing: why would tiff work only with grayscale? Tiff's can be 
> rgb, anything you want.
I did compile the mapserver with JPEG,PNG and TIFF support, but if I try 
to draw a colored tiff file I get the message:
drawTIFF(): Image handling error. Only colormapped and grayscale raster 
are supported.

So, I converted all the rgb tiff  raster to indexed raster (only 256 
colors), after this the tiff rasters can be used as input data.
-->rgb tiff does not work with mapserver (it is the same with jpeg)

> About png not working: have you updated/recompiled something (notably a 
> library like gd, libpng or gdal) after compiling mapserver? Then you will 
> have to recompile mapserver.
I did recompile one... n times the mapserver with the following options 
and results:
mapserver-3.6.6]# ./configure --with-gd --with-gdal 
--with-zlib-dir=/usr/lib  --with-regex=system  --with-png-dir=/usr 
-with-postgis=/usr/local/pgsql/bin/pg_config  --with-jpeg-dir=/usr 
--with-php=/usr/local/MapserverLinux/php-4.3.2
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking for bison... (cached) bison -y
checking if compiler supports -R... (cached) no
checking if compiler supports -Wl,-rpath,... (cached) yes
checking for exp in -lm... (cached) yes
checking for exp in -lstdc++... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for strcasecmp... (cached) yes
checking for strncasecmp... (cached) yes
checking for strdup... (cached) yes
checking whether we should include JPEG support...
checking for jpeg_read_header in -ljpeg... yes
         using libjpeg from system libs.
checking which version of GD to use...
         using libgd from system libs.
checking where FreeType is installed...
checking for FT_Init_FreeType in -lfreetype... yes
         using libfreetype -lfreetype from system libs.
checking where Zlib is installed...
checking for zlibVersion in -lz... yes
         using libz from system libs.
checking where PNG is installed...
checking for png_init_io in -lpng... yes
         using libpng from system libs.
checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... no
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageString16 in -lgd... yes
checking for gdImageGifPtr in -lgd... no
         using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP 
-DUSE_GD_FT) from system libs.
checking whether we should include PDF support...
checking for PDF_setlinewidth in -lpdf... yes
checking for PDF_setrgbcolor in -lpdf... yes
checking for PDF_moveto in -lpdf... yes
checking for PDF_curveto in -lpdf... yes
checking for PDF_show_xy in -lpdf... (cached) no
         using libpdf from system libs.
checking whether we should include TIFF support...
checking for TIFFOpen in -ltiff... yes
         using libtiff from system libs.
checking whether we should include EPPL7 support...
         including EPPL7 support.
checking whether we should include PROJ.4 support...
         PROJ.4 support not requested.
checking whether we should include thread safe support...
         thread safe support disabled.
checking whether we should include ESRI SDE support...
         ESRI SDE support not requested.
checking whether we should compile in MPATROL support...
         MPATROL support not requested.
checking whether we should include OGR support...
         OGR support not requested.
checking if GDAL support requested... yes
checking for gdal-config... (cached) /usr/local/bin/gdal-config
checking if PostGIS support requested... yes, user supplied pg_config
checking if OracleSpatial support requested... no
checking whether we should include WMS support...
         OGC WMS Compatibility not enabled (PROJ.4 is required for WMS).
checking whether we should include WMS Client Connections support...
         OGC WMS Client Connections not enabled (PROJ.4 and libwww 
required).
Compiling with -DIGNORE_MISSING_DATA.
checking whether we should enable debug features...
checking for PHP/MapScript module options...
checking whether 'perl -V' works... yes
checking for location of config.h or php_config.h... 
/usr/local/MapserverLinux/php-4.3.2/main/php_config.h
checking whether we have PHP3 or PHP4... -DPHP4
checking whether we should use PHP's regex... no
         PHP/MapScript module configured.
creating ./config.status
creating Makefile
creating mapscript/php3/Makefile


> I assume you compiled mapserver etc. yourself. It might help if we knew the 
> configure options you used for compiling mapserver AND for gdal also. There 
> might be a clue in that... Otherwise, I really don't know.
> 
Ok, now it works with the inexed tiff version of raster data, but it is 
quite dissatisfying if you have an unresolved error at your system....


Carsten






More information about the mapserver-users mailing list