[geos-devel] Is it possible to build current CVSversionofgeosbyMinGW

Norman Vine nhv at cape.com
Thu Aug 21 16:52:28 EDT 2003

Hisaji Ono writes:
> Thank you for your response, Mr. Vine.

You are welcome

> >
> > I do not use Cygwin with the -mno-cygwin switch,  I have a 'separate'
> > but complete MingW installation which I run from within a Cygwin Shell
> >
> > Most find that MSys is a little easier to use but I haven't tried it
> >
> > Both MingW and MSys are available from http://www.mingw.org
> >
> > This thread might help
> > http://www.cygwin.com/ml/cygwin/2003-02/msg01463.html
> >
> Following your way, I did it as follows(geos is geos-20030821).
> ./autogen.sh #using Cygwin's since Mingw's stopped after error messages
> export MINGW=/cygdrive/c/MINGW
> export PATH=$MINGW/bin:"$PATH"
> ./configure --prefix=$MINGW --host=i686-pc-mingw32 # --host=mingw not work
> make
> However I've got following a lot of error messages.
> g++ -DHAVE_CONFIG_H -I. -I. -I../../source/headers -I../../source/headers -D
> G
> _VERSION=1.0 -g -O2 -MT Geometry.lo -MD -MP -MF .deps/Geometry.Tpo -c
> Geometr
> pp  -DDLL_EXPORT -DPIC -DPIC -o Geometry.o

It appears as if you do not have a complete MingW system setup

ie note the difference between what my make reports as the gcc that it is using
mingw32-g++  vs g++

I suggest that you will probably have better luck using MSys
as trying to duplicate my build environment requires a fairly
complete understanding of how gcc finds the files that it uses
and setting up your system accordingly



$ make
Making all in source
make[1]: Entering directory `/tmp/geos/mingw/source'
Making all in geom
make[2]: Entering directory `/tmp/geos/mingw/source/geom'
if /bin/sh ../../libtool --mode=compile
mingw32-g++ -DHAVE_CONFIG_H -I. -I../../../source/geom -I../../source/headers -I../../../source/headers -DGEOS_VERSION=""1""    -O3 
-march=pentium3 -fomit-frame-pointer -MT BasicCoordinateList.lo -MD -MP -MF ".deps/BasicCoordinateList.Tpo" \
  -c -o BasicCoordinateList.lo `test -f '../../../source/geom/BasicCoordinateList.cpp' || echo
'../../../source/geom/'`../../../source/geom/BasicCoordinateList.cpp; \
then mv -f ".deps/BasicCoordinateList.Tpo" ".deps/BasicCoordinateList.Plo"; \
else rm -f ".deps/BasicCoordinateList.Tpo"; exit 1; \
mkdir .libs
mingw32-g++ -DHAVE_CONFIG_H -I. -I../../../source/geom -I../../source/headers -I../../../source/headers -DGEOS_VERSION=1 -O3 -march=
pentium3 -fomit-frame-pointer -MT BasicCoordinateList.lo -MD -MP -MF .deps/BasicCoordinateList.Tpo -c
../../../source/geom/BasicCoordinateList.cpp  -DDLL_EXPORT -DPIC -DPIC -o BasicCoordinateList.o

More information about the geos-devel mailing list