[postgis-devel] [PostGIS] #1158: Can't compile under Windows mingw

PostGIS trac at osgeo.org
Sun Aug 14 21:33:49 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):

 Actually my 9.0 and 9.1beta3 got a bit further and compiles to
 postgis-2.0.dll but fails when building the raster dll.


 {{{
 gcc -g -O2  -DDLL_EXPORT -DPIC  -Wall -Wmissing-prototypes
 -Ic:/projects/PostGIS/trunk/liblwgeom -I/c/projects/GDAL/rel-trunk/include
 -c -o rt_api.o rt_api.c
 In file included from rt_api.h:90,
                  from rt_api.c:39:
 c:/projects/PostGIS/trunk/liblwgeom/liblwgeom.h:22:22: proj_api.h: No such
 file or directory
 In file included from rt_api.h:90,
                  from rt_api.c:39:
 c:/projects/PostGIS/trunk/liblwgeom/liblwgeom.h:2200: error: syntax error
 before "lwproj_from_string"
 c:/projects/PostGIS/trunk/liblwgeom/liblwgeom.h:2200: warning: type
 defaults to
 }}}

 I had an extra include of proj for my 8.4 build that I put in during debug
 that I thought may have been causing the problem, but getting rid of that
 didn't help.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1158#comment:18>
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