Ticket #610 (closed defect: fixed)
[raster] Can't build with raster
| Reported by: | robe | Owned by: | jorgearevalo |
|---|---|---|---|
| Priority: | high | Milestone: | PostGIS 2.0.0 |
| Component: | raster | Version: | trunk |
| Keywords: | Cc: | jorge.arevalo@… |
Description
This may just be a MingW issue, but I can't build PostGIS 2.0 with --with-raster. It seems like the later rt-make is ignoring my custom GDAL configuration though configure correctly picks it up.
Anyrate if someone else can check on their platform, that would be great. Also I'm sure Paul and Jorge were discussing this, though I didn't udnerstand anything they were saying: IS there is a reason why we need a separate rt-install. Why can't it be like --with-gui where when you say that it builds the make and all that for the gui and if you don't it doesn't?
-- Getting back to my problem -- -- my configure looks like this
./configure --with-gdal=/c/projects/gdal/rel-trunk/bin/gdal-config --prefix=/c/projects/pg/pg91 --with-xml2config=/c/projects/libxml/libxml2-2.7.6release/bin/xml2-config --with-pgconfig=/c/projects/pg/pg91/bin/pg_config --with-geosconfig=/c/projects/geos/rel-trunk/bin/geos-config --with-projdir=/c/projects/proj/rel-4.6.1 --with-gui --with-raster
-- and generates an output which looks like this (as you can see GDAL is being picked up --
PostGIS is now configured for i686-pc-mingw32 -------------- Compiler Info ------------- C compiler: gcc -g -O2 C++ compiler: g++ -g -O2 -------------- Dependencies -------------- GEOS config: /c/projects/geos/rel-3.3.0/bin/geos-config GEOS version: 3.3.0 GDAL config: /c/projects/gdal/rel-trunk/bin/gdal-config GDAL version: 1.8.0 PostgreSQL config: /c/projects/pg/pg91/bin/pg_config PostgreSQL version: PostgreSQL 9.1alpha1 PROJ4 version: 46 Libxml2 config: /c/projects/libxml/libxml2-2.7.6release/bin/xml2-config Libxml2 version: 2.7.6 PostGIS debug level: 0 -------------- Extensions -------------- PostGIS Raster: 0.1.6d
But in the raster compile -- it gives all sorts ofo errors which I recall getting before when the gdal config path is not set.
------------------------------------------------------ Generating PostGIS Raster stuff ------------------------------------------------------ make -C raster all make[1]: Entering directory `/c/projects/PostGIS/trunk/raster' make -C rt_core make[2]: Entering directory `/c/projects/PostGIS/trunk/raster/rt_core' gcc -g -O2 -DDLL_EXPORT -DPIC -Wall -Wmissing-prototypes -Ic:/projects/PostGIS/trunk/liblwgeom -c -o rt_api.o rt_api.c In file included from rt_api.c:33: rt_api.h:89:22: gdal_alg.h: No such file or directory rt_api.h:90:24: gdal_frmts.h: No such file or directory rt_api.h:91:18: gdal.h: No such file or directory rt_api.h:92:21: ogr_api.h: No such file or directory rt_api.c: In function `rt_raster_dump_as_polygons': rt_api.c:1406: error: `GDALDataType' undeclared (first use in this function) rt_api.c:1406: error: (Each undeclared identifier is reported only once rt_api.c:1406: error: for each function it appears in.) rt_api.c:1406: error: syntax error before "nPixelType" rt_api.c:1408: error: `OGRSFDriverH' undeclared (first use in this function) rt_api.c:1408: error: syntax error before "ogr_drv" rt_api.c:1409: error: `GDALDriverH' undeclared (first use in this function) rt_api.c:1410: error: `GDALDatasetH' undeclared (first use in this function)
don't have an issue compiling the old wktraster standalone.

