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

PostGIS trac at osgeo.org
Fri Aug 19 16:07:22 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):

 FYI.  As of r7766 I was back to things compile but getting MAGIC extension
 thingymagig required error.  (This is compiling my windows 9.0 install --
 haven't tried the others)

 I put in

 {{{
 #ifdef PG_MODULE_MAGIC
 PG_MODULE_MAGIC;
 #endif
 }}}

 In postgis/lwgeom_functions_basic.c  and that seemed to fix that issue and
 postgis make check plpgsql tests passed. Yee pee.

 However -- my raster is kinda screwed up.  It seems to generate the
 rtpostgis-20.dll, but fails during make check with all sorts of stuff like


 {{{
 cc -g -O2  -DDLL_EXPORT -DPIC  -Wall -Wmissing-prototypes -I../../rt_core
 -Ic:/projects/PostGIS/trunk/liblwgeom -I/c/projects/GDAL/rel-trunk/include
 -o testapi testapi.c -lm ../../rt_core/librtcore.a
 c:/projects/PostGIS/trunk/liblwgeom/.libs/liblwgeom.a -L/c/projects/GDAL
 /rel-trunk/lib -lgdal
 In file included from ../../rt_core/rt_api.h:90,
                  from testapi.c:7:
 c:/projects/PostGIS/trunk/liblwgeom/liblwgeom.h:23:22: proj_api.h: No such
 file or directory
 In file included from ../../rt_core/rt_api.h:90,
                  from testapi.c:7:
 c:/projects/PostGIS/trunk/liblwgeom/liblwgeom.h:2194: error: syntax error
 before "lwproj_from_string"
 c:/projects/PostGIS/trunk/liblwgeom/liblwgeom.h:2194: warning: type
 defaults to `int' in declaration of `lwproj_from_string'
 c:/projects/PostGIS/trunk/liblwgeom/liblwgeom.h:2194: warning: data
 definition has no type or storage class
 c:/projects/PostGIS/trunk/liblwgeom/liblwgeom.h:2202: error: syntax error
 before "projPJ"

 ----------------------------------------------------------------------
 Libraries have been installed in:
    /c/projects/pg/pg90/lib

 If you ever happen to want to link against installed libraries
 in a given directory, LIBDIR, you must either use libtool, and
 specify the full pathname of the library, or use the `-LLIBDIR'
 flag during linking and do at least one of the following:
    - add LIBDIR to the `PATH' environment variable
      during execution
    - add LIBDIR to the `LD_RUN_PATH' environment variable
      during linking
    - use the `-LLIBDIR' linker flag

 See any operating system documentation about shared libraries for
 more information, such as the ld(1) and ld.so(8) manual pages.
 ----------------------------------------------------------------------
 /bin/sh ../install-sh liblwgeom.h "/liblwgeom.h"
 cp: cannot create regular file `//_inst.2160_': No such file or directory
 make[1]: *** [install-liblwgeom] Error 1
 make[1]: Leaving directory `/c/projects/PostGIS/trunk/liblwgeom'


 }}}

 I'm going to go ahead and try the generated raster to see if they are any
 good.

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