Last active
December 24, 2015 18:59
Building PDAL under mingw64: this currently just builds with compress, xml, and postgresql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export OS_BUILD=64 | |
export GCC_TYPE=gcc48 | |
export SOURCES=/sources | |
PROJECTS=/projects | |
export PATHOLD="/mingw/bin:/mingw/include:/c/Windows/system32:/cmake/bin:/bin" | |
if true; then | |
export LIBXML_VER=2.7.8 | |
#export LIBLAS_VER=1.7.0 | |
#export PROJ_VER=4.8.0 | |
#export GDAL_VER=1.10.0 | |
#export GEOS_VER=3.4.2 | |
export PG_VER=9.3 | |
export LIBXML2_HOME=${PROJECTS}/libxml/rel-libxml2-${LIBXML_VER}w${OS_BUILD}${GCC_TYPE} | |
export PGPATH=${PROJECTS}/postgresql/rel/pg${PG_VER}w${OS_BUILD}${GCC_TYPE} | |
#export GDAL_HOME=${PROJECTS}/gdal/rel-${GDAL_VER}w${OS_BUILD}${GCC_TYPE} | |
#export GEOS_HOME=${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD}${GCC_TYPE} | |
export SO_EXT="a" | |
export PATHOLD="/mingw/bin:/mingw/include:/c/Windows/system32:/c/Windows" | |
export EMBED=ON | |
cd ${PROJECTS}/pdal | |
#cd pdal | |
#git clone https://github.com/PDAL/PDAL pdal | |
cd pdal | |
git pull | |
cd .. | |
export PATH="${PATHOLD}:${PATH}:${PROJECTS}/zlib/rel-${ZLIB_VER}w${OS_BUILD}${GCC_TYPE}/bin:${PROJECTS}/zlib/rel-${ZLIB_VER}w${OS_BUILD}${GCC_TYPE}/lib:${PROJECTS}/zlib/rel-${ZLIB_VER}w${OS_BUILD}${GCC_TYPE}/include:${LIBXML2_HOME}/bin:${LIBXML2_HOME}/lib:${LIBXML2_HOME}/include:${PROJECTS}/proj/rel-${PROJ_VER}w${OS_BUILD}${GCC_TYPE}/lib:${PROJECTS}/proj/rel-${PROJ_VER}w${OS_BUILD}${GCC_TYPE}/bin:${PROJECTS}/gdal/rel-${GDAL_VER}w${OS_BUILD}${GCC_TYPE}/bin:${PROJECTS}/gdal/rel-${GDAL_VER}w${OS_BUILD}${GCC_TYPE}/lib:${PGPATH}/include:${PGPATH}/bin:${PGPATH}/lib" | |
export PATH="${PATH}:/cmake/bin" | |
export PATH="${PATH}:.:/bin:/include" | |
CC=/mingw/bin/gcc | |
CXX=/mingw/bin/g++ | |
export CPPFLAGS="-I${PROJECTS}/zlib/rel-${ZLIB_VER}w${OS_BUILD}${GCC_TYPE}/include -I${PROJECTS}/libxml/rel-libxml2-${LIBXML_VER}w${OS_BUILD}${GCC_TYPE}/include -I${PGPATH}/include" | |
export LDFLAGS="-L${PROJECTS}/zlib/rel-${ZLIB_VER}w${OS_BUILD}${GCC_TYPE}/lib -L${PROJECTS}/libxml/rel-libxml2-${LIBXML_VER}w${OS_BUILD}${GCC_TYPE}/lib -L${PGPATH}/lib" | |
rm -rf pdal-build | |
mkdir pdal-build | |
cd pdal-build | |
cmake -G "MSYS Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DWITH_LIBXML2=ON -DWITH_FLANN=OFF -DWITH_PGPOINTCLOUD=ON -DCMAKE_BUILD_TYPE=Debug -DPDAL_EMBED_BOOST=${EMBED} -DCMAKE_INSTALL_PREFIX:PATH=${PROJECTS}/pdal/rel-pdalw${OS_BUILD}${GCC_TYPE} ../pdal | |
make && make install | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment