Skip to content

Instantly share code, notes, and snippets.

@mojodna
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mojodna/6f3d8eaa56fffa687a98 to your computer and use it in GitHub Desktop.
Save mojodna/6f3d8eaa56fffa687a98 to your computer and use it in GitHub Desktop.
Compile GDAL with OpenCL support on Amazon Linux
sudo yum -y update
sudo yum -y install make automake gcc gcc-c++ libcurl-devel
cd /tmp
curl -L http://download.osgeo.org/gdal/1.11.1/gdal-1.11.1.tar.gz | tar zxf -
cd gdal-1.11.1
sudo yum-config-manager --enable epel
sudo yum -y install proj-devel geos-devel
./configure --prefix=/opt/local \
--with-threads \
--with-ogr \
--with-geos \
--without-libtool \
--with-libz=internal \
--with-libtiff=internal \
--with-geotiff=internal \
--without-gif \
--without-pg \
--without-grass \
--without-libgrass \
--without-cfitsio \
--without-pcraster \
--without-netcdf \
--without-png \
--without-jpeg \
--without-gif \
--without-ogdi \
--without-fme \
--without-hdf4 \
--without-hdf5 \
--without-jasper \
--without-ecw \
--without-kakadu \
--without-mrsid \
--without-jp2mrsid \
--without-bsb \
--without-grib \
--without-mysql \
--without-ingres \
--without-xerces \
--without-expat \
--without-odbc \
--without-sqlite3 \
--without-dwgdirect \
--without-idb \
--without-sde \
--without-perl \
--without-php \
--without-ruby \
--without-python \
--with-hide-internal-symbols \
--with-opencl \
--with-opencl-include=/opt/nvidia/cuda/include
sudo make install
export LD_LIBRARY_PATH=/opt/local/lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment