[postgis-users] Using/Compiling PostGIS on Windows XP/Cygwin for use with PostgreSQL
Tyler Mitchell
tjmitchell at riverside.bc.ca
Fri Jun 25 16:09:40 PDT 2004
You might consider also trying the native windows build. I haven't used
it on XP but have had great success on 2000.
There are precompiled packages available through folks on this list.
Tyler
postgis-users-bounces at postgis.refractions.net wrote on 06/25/2004 03:56:28
PM:
> Hello,
>
> I have been using PostGIS 7.4.3.1, running under Cygwin on Windows XP,
and
> that works fine.
>
> Now I want to add PostGIS, but during the installation I get
compilation
> errors, as outlined below.
>
> Has anybody done this, I mean successfully installed and used PostGIS
with
> PostgreSQL on Windows XP?
>
> Would you please give me some advice here?
>
> Thanks for your help and support.
>
> Rudolf
>
> DESCRIPTION OF THE PROCEDURE THAT RESULTS IN ERROR "projects.h: No such
> file or directory":
>
============================================================================
> So to install PostGIS with PostgreSQL on Windows XP/Cygwin I followed
the
> instructions at
> http://www.gasai.com/gisapps/WindowsHowTo.html#Set%20up%20PostGIS
> section "Set up PostGIS", which includes
>
> - getting postgis-0.8.1.tar.gz
>
> - putting it into the PostgreSQL contrib directory
> usr/src/postgresql-7.4.3-1/contrib
>
> - untaring/unzipping it there, which results in a directory
> usr/src/postgresql-7.4.3-1/contrib/postgis-0.8.1 and
>
> - running
> 'make' in
> usr/src/postgresql-7.4.3-1/contrib/postgis-0.8.1
>
> - When I run that last 'make', I get an error about missing
> projects.h, as follows
>
> $ make
> gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
> -Wmissing-declarations -g -fexceptions -I. -DFRONTEND
> -DSYSCONFDIR='"/etc/postgresql"' -DUSE_VERSION=74
> -I/usr/local/include/geos -DUSE_GEOS -I/usr/local/include
> -DUSE_PROJ -DUSE_STATS -I../../src/include -c -o postgis_transform.o
> postgis_transform.c
>
> postgis_transform.c:52:22: projects.h: No such file or directory
>
> postgis_transform.c:55: error: syntax error before '*' token
> postgis_transform.c:55: warning: type defaults to `int' in declaration
of
> `make_project'
> postgis_transform.c:55: warning: data definition has no type or storage
class
> postgis_transform.c:59: error: syntax error before '*' token
> postgis_transform.c:64: error: syntax error before '*' token
> postgis_transform.c:67: warning: no previous prototype for
> `pj_transform_nodatum'
> etc., etc.
>
>
>
> In an attempt to install PostGIS into my existing PostGIS 7.4.3.1, I
> followed the instructions at
> http://www.gasai.com/gisapps/WindowsHowTo.html#Set%20up%20PostGIS
> which include
>
>
>
>
>
>
>
> Rudolf
> Santa Barbara
>
>
>
> Rudolf Nottrott
> University of California Santa Barbara Phone: (805) 893-6146
> Department of Computer Science E-mail:
RNott at Alexandria.UCSB.edu
> Alexandria Digital
> Library Web: www.alexandria.ucsb.edu
> Santa Barbara, California 93106
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
More information about the postgis-users
mailing list