Kyng Chaos
“The beast is actively interested only in now, and, as it is always now and always shall be, there is an eternity of time for the accomplishment of objects.”
- the wisdom of Tarzan

PostGIS Build

version: 1.5.x
source: osgeo.org
installer: PostGIS

parallel: no

Snow Leopard

In the postgis source:

export MACOSX_DEPLOYMENT_TARGET=10.6
export CFLAGS="-Os -arch i386 -arch x86_64"
export PG_CPPFLAGS="-arch i386 -arch x86_64"
export SHLIB_LINK="-arch i386 -arch x86_64"
export LDFLAGS="-arch i386 -arch x86_64"
./configure --with-pgconfig=/usr/local/pgsql/bin/pg_config --mandir=/usr/local/pgsql/man \
--with-geosconfig=/usr/local/bin/geos-config --with-projdir=/usr/local
make
sudo make install

Leopard

In the postgis source:

export MACOSX_DEPLOYMENT_TARGET=10.5
export CFLAGS="-Os -arch ppc -arch i386 -arch ppc64 -arch x86_64"
export PG_CPPFLAGS="-arch ppc -arch i386 -arch ppc64 -arch x86_64"
export SHLIB_LINK="-arch ppc -arch i386 -arch ppc64 -arch x86_64"
export LDFLAGS="-arch ppc -arch i386 -arch ppc64 -arch x86_64"
./configure --with-pgconfig=/usr/local/pgsql/bin/pg_config --mandir=/usr/local/pgsql/man \
--with-geosconfig=/usr/local/bin/geos-config --with-projdir=/usr/local
make
sudo make install

Tiger

In the postgis source:

export MACOSX_DEPLOYMENT_TARGET=10.4
export CFLAGS="-Os -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
export PG_CPPFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
export SHLIB_LINK="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
export LDFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
./configure --with-pgconfig=/usr/local/pgsql/bin/pg_config --mandir=/usr/local/pgsql/man \
--with-geosconfig=/usr/local/bin/geos-config --with-projdir=/usr/local
make
sudo make install

Using Frameworks

To use the GEOS and PROJ frameworks substitute the following for the geosconfig and prodirdir options:

--with-geosconfig=/Library/Frameworks/GEOS.framework/Programs/geos-config \
--with-projdir=/Library/Frameworks/PROJ.framework/unix

Setup

See the Installation section of the README.postgis document.

macosx/build/postgis.txt · Last modified: 2010/07/29 06:08 by kyngchaos
Copyright © 2004-2016 William Kyngesburye Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0