[Mapserver-users] Map Server compile problem

Frank Warmerdam warmerdam at pobox.com
Wed Feb 25 07:38:20 PST 2004


E Wright wrote:
> Map Server compile problem.
> 
> Good evening, I am trying to install the MapServer using the following 
> configure:
> 
> ./configure --with-gd=/usr/software/mapServer/gd-2.0.21 
> --with-tiff=/usr/software/mapServer/tiff-v3.6.1 
> --with-proj=/usr/software/mapServer/proj-4.4.7 
> --with-ogr=/usr/local/bin/gdal-config 
> --with-gdal=/usr/local/bin/gdal-config  
> --with-postgis=/usr/local/pgsql/include/pg_config --with-wfs 
> --with-curl=/usr/software/mapServer/curl-7.10.8/curl-config
> 
> This seems to run fine but when I try to run the make command I get the 
> following error:
> 
> gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ 
> -DUSE_PROJ_API_H -DUSE_WMS_SVR  -DUSE_WFS_SVR    -DUSE_TIFF -DUSE_JPEG 
> -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR 
> -DUSE_GDAL -DUSE_POSTGIS    -I/usr/software/mapServer/gd-2.0.21  
> -I/usr/software/mapServer/proj-4.4.7/src 
> -I/usr/software/mapServer/tiff-v3.6.1/libtiff      -I/usr/local/include 
> -I/usr/local/include -I     maptemplate.c -o maptemplate.o
> gcc: no input files
> make: *** [maptemplate.o] Error 1
> 
> I am fairly new to using Linux so I am not always too sure what 
> something is trying to tell me.
> Any help that anyone can provide will be greatly appreciated.

E,

I think the problem is that "-I maptemplate.c" is causing the maptemplate.c
filename to be "eaten" as part of the -I directive.   Try editing your
Makefile, and searching for where a -I directive is setup with no argument
text.  Then remove the -I.

This shouldn't happen of course.  Your configure line looks ok.  If you can
report which macro was assigned this value we might be able to make the
configure more bulletproof.

PS. There isn't really that much benefit to having TIFF support configured
in directly if you are also using GDAL.  You might want to change
--with-tiff=/usr/software/mapServer/tiff-v3.6.1 to --without-tiff.  TIFF
files will still be supported, just through GDAL.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the MapServer-users mailing list