[postgis-users] Using/Compiling PostGIS on Windows XP/Cygwin for use with PostgreSQL

Rudolf Nottrott rnott at alexandria.UCSB.edu
Fri Jun 25 15:56:28 PDT 2004


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




More information about the postgis-users mailing list