[Mapserver-users] compile error with org

Aaron D. Hunt hunt at zedxinc.com
Wed Jun 11 09:31:17 EDT 2003


I have gotten the config of

./configure --without-tiff --with-proj=/home/mapserver/proj-4.4.7 --with-gda
l=/home/mapserver/gdal-1.1.8/apps/gdal-config --with-ogr=/home/mapserver/gda
l-1.1.8/apps/gdal-config --with-jpeg --with-gd=/home/mapserver/gd-2.0.15 --w
ith-freetype=/home/mapserver/freetype-2.1.4 --with-ming=/home/mapserver/ming
-0.2a --with-wmsclient

Thanks J.F. for the help,

Now when I do the make, I get the following error
Any Ideas?

ogrsf_frmts -I/home/mapserver/gdal-1.1.8/port -I/home/mapserver/gdal-1.1.8/c
ore -I/home/mapserver/gdal-1.1.8/ogr -I/home/mapserver/gdal-1.1.8/ogr/ogrsf_
frmts   -I/usr/local/include -I/home/mapserver/ming-0.2a  maphttp.c -o
maphttp.o
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_AP
I_H -DUSE_WMS_SVR -DUSE_WMS_LYR   -DUSE_MING_FLASH   -DUSE_JPEG -DUSE_GD_PNG
 -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL     -I/home/
mapserver/gd-2.0.15  -I/home/mapserver/proj-4.4.7/src       -I/home/mapserve
r/gdal-1.1.8/port -I/home/mapserver/gdal-1.1.8/core -I/home/mapserver/gdal-1
.1.8/ogr -I/home/mapserver/gdal-1.1.8/ogr/ogrsf_frmts -I/home/mapserver/gdal
-1.1.8/port -I/home/mapserver/gdal-1.1.8/core -I/home/mapserver/gdal-1.1.8/o
gr -I/home/mapserver/gdal-1.1.8/ogr/ogrsf_frmts   -I/usr/local/include -I/ho
me/mapserver/ming-0.2a  mapdrawgdal.c -o mapdrawgdal.o
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
mapdrawgdal.c:81:22: gdal_alg.h: No such file or directory
mapdrawgdal.c: In function `Dither24to8':
mapdrawgdal.c:1103: warning: implicit declaration of function
`GDALDitherRGB2PCT'
make: *** [mapdrawgdal.o] Error 1

----- Original Message ----- 
From: <Jean-Francois.Doyon at CCRS.NRCan.gc.ca>
To: <hunt at zedxinc.com>; <mapserver-users at lists.gis.umn.edu>
Sent: Tuesday, June 10, 2003 5:13 PM
Subject: RE: [Mapserver-users] compile error with org


> Yup,
>
> Like the error message says, you have to point to the gdal-config utility
> using --with-ogr ...
>
> So if your directory is the source tree where gdal was built, it should be
> something like:
>
> --with-ogr=/home/mapserver/gdal-1.1.8/apps/gdal-config
>
> (untested)
>
> OR, you install the library on the system, which by default puts in the
> /usr/local/ tree, in which case you use:
>
> --with-ogr=/usr/local/bin/gdal-config or simply --with-ogr (it should find
> it automatically if it's in your path)
>
> Cheers,
> J.F.
>
> -----Original Message-----
> From: Aaron D. Hunt [mailto:hunt at zedxinc.com]
> Sent: Tuesday, June 10, 2003 5:00 PM
> To: mapserver-users at lists.gis.umn.edu
> Subject: [Mapserver-users] compile error with org
>
>
> I am using the config line on a redhat linux system
> ./configure --without-tiff --with-proj=/home/mapserver/proj-4.4.7
> --with-gdal=/home/mapserver/gdal-1.1.8/
> --with-ogr=/home/mapserver/gdal-1.1.8/ --with-jpeg
> --with-gd=/home/mapserver/gd-2.0.15
> --with-freetype=/home/mapserver/freetype-2.1.4
> --with-ming=/home/mapserver/ming-0.2a --with-wmsclient
>
>
> When it gets to ogr I get
>
> checking whether we should compile in MPATROL support...
>         MPATROL support not requested.
> checking whether we should include OGR support...
>         using OGR from /home/mapserver/gdal-1.1.8//ogr.
> checking if GDAL support requested... configure: error:
> '/home/mapserver/gdal-1.1.8/' is not an executable.  Make sure you use
> --with-gdal=/path/to/gdal-config
>
> Does anyone have any ideas
>
> Aaron D. Hunt
> Technical Manager
> ZedX Inc.
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list