[postgis-devel] [PostGIS] #1155: Can't compile PostGIS 2.0 under mingW
PostGIS
trac at osgeo.org
Mon Aug 8 11:13:21 PDT 2011
#1155: Can't compile PostGIS 2.0 under mingW
---------------------------+------------------------------------------------
Reporter: robe | Owner: strk
Type: defect | Status: new
Priority: blocker | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Keywords: windows mingw |
---------------------------+------------------------------------------------
Comment(by bnordgren):
Looking at your build log (for r7709) closer, this is even more peculiar
than at first blush. An item in liblwgeom can't find another item in the
same library? Really?
This smacks of issues I used to have with the ordering of object files and
libraries on the command line. Two things I can think of to try:
On the following command line (probably in the `Makefile.in` in the
liblwgeom directory), move `lwgeom_geos.o` just before `stringbuffer.o`.
If memory serves, you just have to move it to the front of the `OBJS`
variable in the Makefile.in:
> ar rs liblwgeom.a stringbuffer.o measures.o measures3d.o box2d.o
ptarray.o lwgeom_api.o lwgeom.o lwpoint.o lwline.o lwpoly.o lwtriangle.o
lwmpoint.o lwmline.o lwmpoly.o lwcollection.o lwcircstring.o lwcompound.o
lwcurvepoly.o lwmcurve.o lwmsurface.o lwpsurface.o lwtin.o lwout_wkb.o
lwin_wkb.o lwout_wkt.o lwin_wkt_parse.o lwin_wkt_lex.o lwin_wkt.o lwutil.o
lwhomogenize.o lwalgorithm.o lwgunparse.o lwgparse.o lwsegmentize.o
lwprint.o wktparse.tab.o lex.yy.o vsprintf.o g_box.o g_serialized.o
g_util.o lwgeodetic.o lwtree.o libtgeom.o lwout_gml.o lwout_kml.o
lwout_geojson.o lwout_svg.o lwout_x3d.o lwgeom_geos.o lwspheroid.o
Another thing to try is to "refresh" the index after the library has been
built. (e.g., after running 'make && make check' in liblwgeom, run `ranlib
liblwgeom.a`, then continue with the full build.)
What version of binutils and gcc is bundled with your MingW installation?
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1155#comment:8>
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