Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
export OS_BUILD=64
export PROJECTS=/projects
export GCC_TYPE=gcc48
export PATHOLD=$PATH
export PROJ_VER=4.8.0
#echo $PATHOLD
echo $PATHOLD >c:/path.txt
#export PATHOLD=".:/bin:/mingw/bin:/mingw/include:/c/Windows/system32:/c/Windows:/usr/local/bin"
export export PATHOLD="/mingw/bin:/mingw/include:/c/Windows/system32:/bin:/include" #export PATHOLD=".:/bin:/include:/mingw/bin:/mingw/include:/c/Windows/system32:/c/Windows:/usr/local/bin"
export PG_VER=9.3
export PGWINVER=${PG_VER}w${OS_BUILD}edb
export PGPATH=${PROJECTS}/postgresql/rel/pg${PG_VER}w${OS_BUILD}${GCC_TYPE}
#export PATH="${PROJECTS}/gettext/rel-gettext-0.18.1/bin:${PROJECTS}/xsltproc:${PROJECTS}/gtk/bin:${PROJECTS}/rel-libiconv-1.13.1w${OS_BUILD}/include:${PATH}"
if [ "$OS_BUILD" == "64" ] ; then
export MINGHOST=x86_64-w64-mingw32
else
export MINGHOST=i686-w64-mingw32
fi;
export GEOS_VER=3.4.1dev
#export GEOSVER=3.3.6w${OS_BUILD}
export GDAL_VER=1.10.0
export PATH="${PGPATH}/bin:${PGPATH}/lib:${PATHOLD}"
#make sure gtk and others are first in path --
# if you have a pkg-config installed in msys it will cause problems if found first before gtk one
PATH="${PROJECTS}/gtkw${OS_BUILD}${GCC_TYPE}/bin:${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD}${GCC_TYPE}/bin:${PROJECTS}/gdal/rel-${GDAL_VER}w${OS_BUILD}${GCC_TYPE}/bin:${PROJECTS}/rel-libiconv-1.13.1w${OS_BUILD}${GCC_TYPE}/lib:${PROJECTS}/rel-libiconv-1.13.1w${OS_BUILD}${GCC_TYPE}/include:${PROJECTS}/rel-libiconv-1.13.1w${OS_BUILD}${GCC_TYPE}/bin:${PROJECTS}/proj/rel-${PROJ_VER}w${OS_BUILD}${GCC_TYPE}/bin:${PROJECTS}/libxml/rel-libxml2-${LIBXML_VER}w${OS_BUILD}${GCC_TYPE}/bin:${PATH}"
echo PATH AFTER: $PATH
export PATH="${PROJECTS}/xsltproc:${PATH}"
export PGHOST=localhost
export PGPORT=5443
export PGUSER=postgres
export PROJSO=libproj-0.dll
export POSTGIS_VER=2.1
export LIBXML_VER=2.7.8
export PROJ_VER=4.8.0
export POSTGIS_MICRO_VER=2.1
export POSTGIS_SRC=${PROJECTS}/postgis/branches/${POSTGIS_VER}
#export POSTGIS_SRC=${PROJECTS}/postgis/branches/postgis-${POSTGIS_MICRO_VER}
export GDAL_DATA="${PROJECTS}/gdal/rel-${GDAL_VER}w${OS_BUILD}${GCC_TYPE}/share/gdal"
export RELDIR=${PROJECTS}/postgis/builds/postgis-21
export RELVERDIR=postgis-pg${PG_VER}-binaries-${POSTGIS_MICRO_VER}w${OS_BUILD}
cd ${PROJECTS}/postgis
export PGIS_REG_TMPDIR=${PROJECTS}/postgis/tmp/${POSTGIS_MICRO_VER}_pg${PG_VER}w${OS_BUILD}
cd /projects/postgis/branches
#if you want to get using svn checkout
#svn checkout http://svn.osgeo.org/postgis/branches/${POSTGIS_VER} ${POSTGIS_VER}
#exit;
export POSTGIS_SRC=${PROJECTS}/postgis/branches/${POSTGIS_VER}
#using tagged download release
rm postgis-${POSTGIS_MICRO_VER}.tar.gz
rm -rf postgis-${POSTGIS_MICRO_VER}
export POSTGIS_SRC=${PROJECTS}/postgis/branches/postgis-${POSTGIS_MICRO_VER}
wget http://download.osgeo.org/postgis/source/postgis-${POSTGIS_MICRO_VER}.tar.gz
tar -xvf postgis-${POSTGIS_MICRO_VER}.tar.gz
cd ${POSTGIS_SRC}
if [ -e ./GNUMakefile ]; then
make distclean
fi
if [ -e ./.svn ]; then
svn update
sh autogen.sh
fi
export JSON_VER=0.10
export XSLTPROCFLAGS=
CPPFLAGS="-I${PGPATH}/include -I${PROJECTS}/rel-libiconv-1.13.1w${OS_BUILD}${GCC_TYPE}/include" \
LDFLAGS="-L${PGPATH}/lib -L${PROJECTS}/gdal/rel-${GDAL_VER}w${OS_BUILD}${GCC_TYPE}/lib -L${PROJECTS}/rel-libiconv-1.13.1w${OS_BUILD}${GCC_TYPE}/lib" ./configure \
--host=${MINGHOST} --with-xml2config=${PROJECTS}/libxml/rel-libxml2-${LIBXML_VER}w${OS_BUILD}${GCC_TYPE}/bin/xml2-config \
--with-pgconfig=${PGPATH}/bin/pg_config \
--with-geosconfig=${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD}${GCC_TYPE}/bin/geos-config \
--with-projdir=${PROJECTS}/proj/rel-${PROJ_VER}w${OS_BUILD}${GCC_TYPE} \
--with-gdalconfig=${PROJECTS}/gdal/rel-${GDAL_VER}w${OS_BUILD}${GCC_TYPE}/bin/gdal-config \
--with-jsondir=${PROJECTS}/json-c/rel-${JSON_VER}w${OS_BUILD}${GCC_TYPE} \
--with-libiconv=${PROJECTS}/rel-libiconv-1.13.1w${OS_BUILD}${GCC_TYPE} \
--with-xsldir=${PROJECTS}/docbook/docbook-xsl-1.76.1 \
--with-gui --with-gettext=no
make | tee /projects/compilefail64.txt
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.