[postgis-devel] [PostGIS] #1350: [raster] GDALPolygonize not being set to 1 when compiling with GDAL 1.9

PostGIS trac at osgeo.org
Thu Dec 8 07:29:23 PST 2011


#1350: [raster] GDALPolygonize not being set to 1 when compiling with GDAL 1.9
----------------------------+-----------------------------------------------
 Reporter:  robe            |       Owner:  pracine      
     Type:  defect          |      Status:  new          
 Priority:  medium          |   Milestone:  PostGIS 2.0.0
Component:  postgis raster  |     Version:  trunk        
 Keywords:  mingw           |  
----------------------------+-----------------------------------------------

Comment(by dustymugs):

 Just the important bits.

 {{{
 configure:18421: checking for GDALFPolygonize in -lgdal
 configure:18446: gcc -o conftest.exe -g -O2
 -I/c/projects/geos/rel-3.3.2SVN/include
 -I/c/projects/proj/rel-4.6.1/include -I/c/projects/json-c/rel-0.9/include
 -I/c/projects/libxml/libxml2-2.7.8release/include/libxml2  conftest.c
 -lgdal  -lxml2 -L/c/projects/libxml/libxml2-2.7.8release/lib -lxml2
 -liconv -lws2_32 >&5
 C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:
 cannot find -lgdal
 collect2: ld returned 1 exit status
 }}}

 So it looks like the linker can't find GDAL.  I wonder if if specifying
 -L/c/projects/GDAL/rel-trunk/lib would help that (kinda like for xml2).

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1350#comment:9>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list