[geos-devel] New problem when compiling QGis against geos 3.0.0rc4

strk at refractions.net strk at refractions.net
Wed Feb 21 03:54:38 EST 2007


Mark, can you confirm the below patch works for you ?
It works here, but this mine is *not* a MINGW32 system.

--strk;

On Mon, Feb 19, 2007 at 10:13:40PM -0500, Mike Leahy wrote:
> Hello,
> 
> Tom Elwertowski on the QGis-developer list noted a change between rc3
> and rc4, and suggested a fix that seems to have resolved things for me
> when compiling QGis.  His explanation is below.
> 
> Mike
> 
> Tom Elwertowski wrote:
> > >
> > > There is a change between GEOS 3.0.0rc3 and rc4 that requires either an
> > > edit to GEOS or a new compile flag to QGIS in order to compile.
> > >
> > > I made the following edit to rc4 in order to provide the missing
> > > routines to QGIS. Change line 30 of source/inlines.cpp from
> > >
> > > #if defined(__MINGW32__) && !defined(DLL_EXPORT)
> > >
> > > to
> > >
> > > #if !defined(__MINGW32__) || defined(__MINGW32__) &&
> !defined(DLL_EXPORT)
> > >
> > >
> > > Some routines, including four that QGIS needs, can be defined either
> > > inline or linked from the GEOS library. If you define GEOS_INLINE for
> > > QGIS, the functions will be defined inline and you won't need external
> > > copies of these routines.
> > >
> > > A MINGW user was getting doubly defined errors when using GEOS_INLINE
> > > and therefore submitted a patch which removes the library routines. The
> > > patch was probably intended for MINGW only but actually affects all
> > > platforms. I'm surprised no one else has noticed. Perhaps everyone is
> > > defining GEOS_INLINE.
> > >
> > > Tom
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel

-- 

 ()   ASCII Ribbon Campaign
 /\   Keep it simple! 




More information about the geos-devel mailing list