I just reinstalled gdal-1.8.1 using:<br> ./configure --prefix=$HOME --with-python --with-pg=/home/david/bin/pg_config --with-ogr --with-gif=$HOME<br><br>I'm still getting an error when I run 'make' on the mapserver source file:<br>
<br>./libmapserver.a(mapogroutput.o): In function `msOGRWriteShape':<br>/home/david/src/mapserver-6.0.1/mapogroutput.c:380: undefined reference to `OGR_G_ForceToPolygon'<br>/home/david/src/mapserver-6.0.1/mapogroutput.c:385: undefined reference to `OGR_G_ForceToMultiPolygon'<br>
/home/david/src/mapserver-6.0.1/mapogroutput.c:390: undefined reference to `OGR_G_ForceToMultiPoint'<br>/home/david/src/mapserver-6.0.1/mapogroutput.c:395: undefined reference to `OGR_G_ForceToMultiLineString'<br>
./libmapserver.a(mapogroutput.o): In function `msOGRWriteFromQuery':<br>/home/david/src/mapserver-6.0.1/mapogroutput.c:979: undefined reference to `CPLCreateZip'<br>/home/david/src/mapserver-6.0.1/mapogroutput.c:984: undefined reference to `CPLCreateFileInZip'<br>
/home/david/src/mapserver-6.0.1/mapogroutput.c:989: undefined reference to `CPLCloseZip'<br>/home/david/src/mapserver-6.0.1/mapogroutput.c:1000: undefined reference to `CPLWriteFileInZip'<br>/home/david/src/mapserver-6.0.1/mapogroutput.c:1004: undefined reference to `CPLCloseFileInZip'<br>
/home/david/src/mapserver-6.0.1/mapogroutput.c:1006: undefined reference to `CPLCloseZip'<br>collect2: ld returned 1 exit status<br>make: *** [shp2img] Error 1 <br><br>Are there any other things I can test out?<br><br>
David<br><br><br><div class="gmail_quote">On Mon, Oct 17, 2011 at 6:18 AM, thomas bonfort <span dir="ltr"><<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
maybe you didn't compile gdal with --with-ogr ?<br>
<font color="#888888"><br>
--<br>
thomas<br>
</font><div><div></div><div class="h5"><br>
On Mon, Oct 17, 2011 at 12:44, David Quinn <<a href="mailto:daithiquinn@gmail.com">daithiquinn@gmail.com</a>> wrote:<br>
> Hi Thomas,<br>
><br>
> Thanks - that helped me fix the problem. I used the following options:<br>
><br>
> ./configure --prefix=$HOME \<br>
> --enable-debug \<br>
> --with-gd \<br>
> --with-freetype --without-tiff \<br>
> --with-gdal=/home/david/bin/gdal-config \<br>
> --with-ogr=/home/david/bin/gdal-config \<br>
> --with-proj=/home/david/src/proj-4.7.0/ \<br>
> --without-pdf \<br>
> --with-png=/usr/ --with-threads \<br>
> --with-postgis=/home/david/bin/pg_config \<br>
> --with-wfs --with-wcs --with-wmsclient --with-wfsclient \<br>
> --with-php=$HOME --enable-debug \<br>
> --with-geos=/home/david/bin/geos-config \<br>
> --with-python \<br>
> --with-gif=$HOME<br>
><br>
<br></div></div></blockquote></div>