[postgis-devel] [PostGIS] #1158: Can't compile under Windows mingw
PostGIS
trac at osgeo.org
Sat Aug 20 20:26:39 PDT 2011
#1158: Can't compile under Windows mingw
---------------------+------------------------------------------------------
Reporter: robe | Owner: strk
Type: defect | Status: new
Priority: blocker | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Keywords: |
---------------------+------------------------------------------------------
Comment(by robe):
Not sure if this helps but if I do this
{{{
cd raster
make clean && make
}}}
The raster dll and files is built and output looks like this:
{{{
make -C rt_core
make[1]: Entering directory `/c/projects/postgis/trunk/raster/rt_core'
gcc -g -O2 -DDLL_EXPORT -DPIC -Wall -Wmissing-prototypes
-Ic:/projects/PostGIS/trunk/liblwgeom -I/c/projects/GDAL/rel-trunk/include
-I/c/projects/proj/rel-4.6.1/include -c -o rt_api.o rt_api.c
ar rs librtcore.a rt_api.o
C:\MinGW\bin\ar.exe: creating librtcore.a
make[1]: Leaving directory `/c/projects/postgis/trunk/raster/rt_core'
make -C rt_pg
make[1]: Entering directory `/c/projects/postgis/trunk/raster/rt_pg'
gcc -E -traditional-cpp rtpostgis.sql.in.c | grep -v '^#' >
rtpostgis.sql.in
sed 's,MODULE_PATHNAME,$libdir/rtpostgis-2.0,g' rtpostgis.sql.in
>rtpostgis.sql
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-
statement -Wendif-labels -fno-strict-aliasing -fwrapv
-I/c/projects/geos/rel-3.3.1SVN/include
-I/c/projects/proj/rel-4.6.1/include
-I/c/projects/libxml/libxml2-2.7.8release/include/libxml2
-Ic:/projects/PostGIS/trunk/liblwgeom -I/c/projects/GDAL/rel-trunk/include
-Ic:/projects/PostGIS/trunk/libpgcommon
-I/c/projects/proj/rel-4.6.1/include -I../rt_core -I. -I.
-Ic:/projects/pg/pg90/include/POSTGR~1/server
-Ic:/projects/pg/pg90/include/POSTGR~1/internal -I./src/include/port/win32
-DEXEC_BACKEND
"-Ic:/projects/pg/pg90/lib/POSTGR~1/pgxs/src/MAKEFI~1/../../src/include/port/win32"
-Ic:/projects/pg/pg90/include/POSTGR~1/server/port/win32 -c -o rt_pg.o
rt_pg.c
dlltool --export-all --output-def librtpostgis-2.0dll.def rt_pg.o
dllwrap -o rtpostgis-2.0.dll --dllname rtpostgis-2.0.dll --def
librtpostgis-2.0dll.def rt_pg.o -Lc:/projects/pg/pg90/lib -Wl,--allow-
multiple-definition -Wl,--as-needed -L/c/projects/geos/rel-3.3.1SVN/lib
-L/c/projects/proj/rel-4.6.1/lib -lgeos_c -lproj
-L/c/projects/libxml/libxml2-2.7.8release/lib -lxml2 -liconv -lws2_32
../rt_core/librtcore.a
c:/projects/PostGIS/trunk/liblwgeom/.libs/liblwgeom.a
c:/projects/PostGIS/trunk/libpgcommon/libpgcommon.a -L/c/projects/GDAL
/rel-trunk/lib -lgdal -Lc:/projects/pg/pg90/lib -lpostgres
make[1]: Leaving directory `/c/projects/postgis/trunk/raster/rt_pg'
make -C rt_pg rtpostgis.sql
make[1]: Entering directory `/c/projects/postgis/trunk/raster/rt_pg'
make[1]: `rtpostgis.sql' is up to date.
make[1]: Leaving directory `/c/projects/postgis/trunk/raster/rt_pg'
}}}
Looks like the test api one is missing the proj line:
-I/c/projects/proj/rel-4.6.1/include
I'll test and see if putting that in fixes it. I presume I have to change
the raster/test/core/Makefile.in
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1158#comment:49>
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