[mapserver-users] Problem compiling MapServer - "error: cannot find gif lib"

David Quinn daithiquinn at gmail.com
Mon Oct 17 07:44:58 PDT 2011


I just reinstalled gdal-1.8.1 using:
   ./configure --prefix=$HOME --with-python
--with-pg=/home/david/bin/pg_config --with-ogr --with-gif=$HOME

I'm still getting an error when I run 'make' on the mapserver source file:

./libmapserver.a(mapogroutput.o): In function `msOGRWriteShape':
/home/david/src/mapserver-6.0.1/mapogroutput.c:380: undefined reference to
`OGR_G_ForceToPolygon'
/home/david/src/mapserver-6.0.1/mapogroutput.c:385: undefined reference to
`OGR_G_ForceToMultiPolygon'
/home/david/src/mapserver-6.0.1/mapogroutput.c:390: undefined reference to
`OGR_G_ForceToMultiPoint'
/home/david/src/mapserver-6.0.1/mapogroutput.c:395: undefined reference to
`OGR_G_ForceToMultiLineString'
./libmapserver.a(mapogroutput.o): In function `msOGRWriteFromQuery':
/home/david/src/mapserver-6.0.1/mapogroutput.c:979: undefined reference to
`CPLCreateZip'
/home/david/src/mapserver-6.0.1/mapogroutput.c:984: undefined reference to
`CPLCreateFileInZip'
/home/david/src/mapserver-6.0.1/mapogroutput.c:989: undefined reference to
`CPLCloseZip'
/home/david/src/mapserver-6.0.1/mapogroutput.c:1000: undefined reference to
`CPLWriteFileInZip'
/home/david/src/mapserver-6.0.1/mapogroutput.c:1004: undefined reference to
`CPLCloseFileInZip'
/home/david/src/mapserver-6.0.1/mapogroutput.c:1006: undefined reference to
`CPLCloseZip'
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1

Are there any other things I can test out?

David


On Mon, Oct 17, 2011 at 6:18 AM, thomas bonfort <thomas.bonfort at gmail.com>wrote:

> maybe you didn't compile gdal with --with-ogr ?
>
> --
> thomas
>
> On Mon, Oct 17, 2011 at 12:44, David Quinn <daithiquinn at gmail.com> wrote:
> > Hi Thomas,
> >
> > Thanks - that helped me fix the problem. I used the following options:
> >
> > ./configure --prefix=$HOME \
> > --enable-debug  \
> > --with-gd \
> > --with-freetype --without-tiff \
> > --with-gdal=/home/david/bin/gdal-config \
> > --with-ogr=/home/david/bin/gdal-config \
> > --with-proj=/home/david/src/proj-4.7.0/ \
> > --without-pdf \
> > --with-png=/usr/ --with-threads \
> > --with-postgis=/home/david/bin/pg_config \
> > --with-wfs --with-wcs --with-wmsclient --with-wfsclient \
> > --with-php=$HOME --enable-debug \
> > --with-geos=/home/david/bin/geos-config \
> > --with-python \
> > --with-gif=$HOME
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111017/40e5ae23/attachment.htm>


More information about the MapServer-users mailing list