<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1498" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>Hi Sandro,<BR><BR>configure
-with-geos.....works..OK!!<BR><BR>U're right..it is not worth typing 'which
geos'...sorry...<BR><BR>Before building postgis it's better to update the PATH
environment variable<BR>by adding at the beginning of
PATH<BR><BR>C:\PostgreSQL\8.0.2\bin;C:\PostgreSQL\8.0.2\lib;C:\PostgreSQL\8.0.2\lib\post<BR>gresql<BR><BR>Should
replae "C:\PostgreSQL\8.0.2" by the path to your
PostgreSQL's<BR>prefix...<BR><BR>My patch is attached to this mail
(postgis_cvs.patch)...In order to applyng<BR>it (thanks to Gerald for patching
:-))<BR><BR>(I know that U know how to do...:-) )<BR><BR>copy the patch in the
same directory of postgis
directory:<BR><BR>/postgis<BR>/postgis_cvs.patch<BR><BR>patch -p0 <
postgis_cvs.patch<BR><BR><BR><BR>In my last mail I did a little mistake for
Makefile;config.in...sorry<BR><BR><A
href="mailto:PGCONFIG=@PGCONFIG">PGCONFIG=@PGCONFIG</A>@<BR> <A
href="mailto:PGFEINCLUDES=@PGFEINCLUDES">PGFEINCLUDES=@PGFEINCLUDES</A>@<BR>+ifeq
($(findstring MINGW,$(MSYSTEM)),MINGW)<BR><A
href="mailto:+PGBEINCLUDES=@PGBEINCLUDES">+PGBEINCLUDES=@PGBEINCLUDES</A>@
@PGBEINCLUDES@/port
@PGBEINCLUDES@/port/win32<BR>@PGBEINCLUDES@/port/win32/arpa<BR>+PGFELIBS=$(shell
@PGCONFIG@ --libdir)<BR>+else<BR> <A
href="mailto:PGBEINCLUDES=@PGBEINCLUDES">PGBEINCLUDES=@PGBEINCLUDES</A>@<BR> <A
href="mailto:PGFELIBS=@PGFELIBS">PGFELIBS=@PGFELIBS</A>@<BR><BR>NOTICE: BUILDING
POSTGIS DOCUMENTATION<BR><BR>The last thing to do - for people who wants
to compil postgis on windows -<BR>is to take care of Docbook, iconv.dll and
xsltproc<BR>Else 'make install' wil stop for "make -C doc"<BR><BR>The best link
I know for that is <A
href="http://xmlsoft.org/sources/win32">http://xmlsoft.org/sources/win32</A>
They have<BR>to download:<BR><BR>- iconv-1.9.1.win32.zip ( contains icon.exe and
iconv.dll)<BR><BR>- libxml2-2.6 18.win32.zip<BR><BR>- libxslt-1.1.13.win32.zip
(contains xsltproc.exe)<BR><BR>and install it to MinGW repository
(C:\MinGW)<BR><BR>For DocBook XSL files, they have to download from<BR><A
href="http://sourceforge.net/projects/docbook">http://sourceforge.net/projects/docbook</A>
(find docbook-xsl version 1.68.1<BR>or<BR><A
href="http://prdownloads.sourceforge.net/docbook/docbook-xsl-1.68.1.zip?download">http://prdownloads.sourceforge.net/docbook/docbook-xsl-1.68.1.zip?download</A><BR><BR>then
to create the DOS path
C:\msys\1.0\share\sgml\docbook\xsl-stylesheets<BR>(or GNU/Linux PATH
/usr/share/sgml/docbook/xsl-stylesheets)<BR>and finally copy the contents of
docbook-xsl-1.68.1.zip ( commons, fo, ...)<BR>in this directory
C:\msys\1.0\share\sgml\docbook\xsl-stylesheets<BR><BR>For people who wants to
build postgis.pdf ( postgis.fo -----------><BR>postgis.pdf ), I pupose to use
(FOP from java) or install MikTeX (= laTeX<BR>distribution) for windows that
contains
pdfxmltex.exe<BR><BR><BR>============================================================================<BR>================================<BR><BR>Here
is the contense of the patch:<BR><BR>--- postgis/Makefile.config.in Tue Apr 19
10:41:21 2005<BR>+++ postgis/Makefile.config.in Mon Apr 25 12:43:59 2005<BR>@@
-71,9 +71,13 @@<BR> #<BR> <A
href="mailto:PGCONFIG=@PGCONFIG">PGCONFIG=@PGCONFIG</A>@<BR> <A
href="mailto:PGFEINCLUDES=@PGFEINCLUDES">PGFEINCLUDES=@PGFEINCLUDES</A>@<BR>+ifeq
($(findstring MINGW,$(MSYSTEM)),MINGW)<BR><A
href="mailto:+PGBEINCLUDES=@PGBEINCLUDES">+PGBEINCLUDES=@PGBEINCLUDES</A>@
@PGBEINCLUDES@/port
@PGBEINCLUDES@/port/win32<BR>@PGBEINCLUDES@/port/win32/arpa<BR>+PGFELIBS=$(shell
@PGCONFIG@ --libdir)<BR>+else<BR> <A
href="mailto:PGBEINCLUDES=@PGBEINCLUDES">PGBEINCLUDES=@PGBEINCLUDES</A>@<BR> <A
href="mailto:PGFELIBS=@PGFELIBS">PGFELIBS=@PGFELIBS</A>@<BR>-<BR>+endif<BR> #<BR> #
Docbook<BR> #<BR>@@ -112,8 +116,13 @@<BR> #<BR> #
DLL<BR> #<BR><A
href="mailto:-DLSUFFIX=@DLSUFFIX">-DLSUFFIX=@DLSUFFIX</A>@<BR><A
href="mailto:-DLFLAGS=@DLFLAGS">-DLFLAGS=@DLFLAGS</A>@<BR>+ifeq ($(findstring
MINGW,$(MSYSTEM)),MINGW)<BR>+ DLSUFFIX=.dll<BR>+ <A
href="mailto:DLFLAGS=@DLFLAGS">DLFLAGS=@DLFLAGS</A>@<BR>+else<BR>+ <A
href="mailto:DLSUFFIX=@DLSUFFIX">DLSUFFIX=@DLSUFFIX</A>@<BR>+ <A
href="mailto:DLFLAGS=@DLFLAGS">DLFLAGS=@DLFLAGS</A>@<BR>+endif<BR><BR> #---------------------------------------------------------------<BR> #
END OF CONFIGURATION<BR>--- postgis/loader/Makefile Mon Apr 18 14:46:48
2005<BR>+++ postgis/loader/Makefile Mon Apr 25 12:40:44 2005<BR>@@ -32,7 +32,13
@@<BR> $(CC) $(CFLAGS) $(PGFEINCLUDES) -c
$<<BR><BR> pgsql2shp$(EXE): $(OBJS) pgsql2shp.o
PQunescapeBytea.o<BR>+<BR>+ifeq ($(findstring MINGW,$(MSYSTEM)),MINGW)<BR>+
$(CC) $(CFLAGS) $(OBJS) PQunescapeBytea.o pgsql2shp.o
$(LDFLAGS)<BR>$(PGFELIBS)/libpq.a -o $@<BR>+else<BR> $(CC) $(CFLAGS)
$(PGFELIBS) $(OBJS) PQunescapeBytea.o pgsql2shp.o<BR>$(LDFLAGS) -o
$@<BR>+endif<BR>+<BR><BR> shp2pgsql$(EXE): $(OBJS) shp2pgsql.o<BR>
$(CC) $(CFLAGS) $(OBJS) shp2pgsql.o $(LDFLAGS) -o $@<BR>---
postgis/lwgeom/Makefile Wed Apr 20 15:17:37 2005<BR>+++ postgis/lwgeom/Makefile
Mon Apr 25 12:09:17 2005<BR>@@ -13,21 +13,32 @@<BR> # Shared library
parameters.<BR> #<BR> NAME=lwgeom<BR>+ifeq ($(findstring
MINGW,$(MSYSTEM)),MINGW)<BR>+SHLIB
=<BR>lib$(NAME).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)$(DLSUFFIX)<BR>+SHLIB_MAJOR
=
lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)<BR>+SHLIB_BARE
= lib$(NAME)$(DLSUFFIX)<BR>+SHLIB_LINK
=<BR>+else<BR> SHLIB
=<BR>lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)<BR> SHLIB_MAJOR
=
lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)<BR> SHLIB_BARE
= lib$(NAME)$(DLSUFFIX)<BR>-SHLIB_LINK = $(DLFLAGS)<BR>+SHLIB_LINK =
$(DLFLAGS)<BR>+endif<BR><BR> MODULE_FILENAME =
$(LPATH)/$(SHLIB)<BR><BR> #---------------------------------------------------------------<BR> #
Postgis version and build
date<BR> #---------------------------------------------------------------<BR>-<BR>-POSTGIS_VERSION
= $(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)<BR>USE_GEOS=$(USE_GEOS)
USE_PROJ=$(USE_PROJ) USE_STATS=$(USE_STATS)<BR>-POSTGIS_LIB_VERSION
=<BR>$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_MICRO_VERSION)<BR>-POSTGIS_BUILD_DATE
:= $(shell date -u "+%Y-%m-%d %H:%M:%S")<BR>-<BR>+ifeq ($(findstring
MINGW,$(MSYSTEM)),MINGW)<BR>+ POSTGIS_VERSION =
$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)<BR>USE_GEOS=$(USE_GEOS)
USE_PROJ=$(USE_PROJ) USE_STATS=$(USE_STATS)<BR>+ POSTGIS_LIB_VERSION
=<BR>$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_MICRO_VERSION)<BR>+
POSTGIS_BUILD_DATE := $(shell date -u "+%Y-%m-%d %H:%M:%S")<BR>+else<BR>+
POSTGIS_VERSION =
$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)<BR>USE_GEOS=$(USE_GEOS)
USE_PROJ=$(USE_PROJ) USE_STATS=$(USE_STATS)<BR>+ POSTGIS_LIB_VERSION
=<BR>$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_MICRO_VERSION)<BR>+
POSTGIS_BUILD_DATE := $(shell date -u "+%Y-%m-%d
%H:%M:%S")<BR>+endif<BR><BR> #---------------------------------------------------------------<BR><BR>@@
-87,8 +98,17 @@<BR><BR> all: $(GEOS_RULES) $(SHLIB)
../lwpostgis.sql<BR><BR>+#------------ It's for Win32
-----------------------------------<BR> $(SHLIB): $(OBJS)<BR>+<BR>+ifeq
($(findstring MINGW,$(MSYSTEM)),MINGW)<BR>+ dlltool --export-all
--output-def lwgeom.def $(OBJS)<BR>+ dllwrap -o $@ --dllname $@ --def
lwgeom.def $(OBJS)<BR>$(SHLIB_LINK) -L$(shell pg_config --libdir)
-lpostgres<BR>+ dlltool --dllname $@ --def lwgeom.def --output-lib
liblwgeom.a<BR>+else<BR> $(CC) $(SHLIB_LINK) -o $(SHLIB)
$(OBJS)<BR>+endif<BR>+<BR><BR> wktparse.tab.c: wktparse.y<BR> $(YACC)
-vd -p lwg_parse_yy
wktparse.y<BR><BR>---------------------------------------------------------------<BR>TECHER
Jean David<BR>01MAP<BR>e-mail: <A
href="mailto:david@01map.net">david@01map.net</A><BR>Tél: 04 67 45 60
27<BR>Entreprise: <A
href="http://www.01map.net">http://www.01map.net</A><BR>Perso: <A
href="http://techer.pascal.free.fr/postgis/">http://techer.pascal.free.fr/postgis/</A><BR>---------------------------------------------------------------<BR></BODY></HTML>