Skip to content

Commit

Permalink
Updates to support building TileDb
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Mar 2, 2020
1 parent 806489c commit 925e57d
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 97 deletions.
3 changes: 2 additions & 1 deletion scripts/azp/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
pool:
vmImage: ubuntu-16.04
container:
image: pdal/azp-dependencies:latest
image: pdal/ubuntubase:latest
options: --privileged
timeoutInMinutes: 60
steps:
Expand All @@ -20,6 +20,7 @@ jobs:
-DCMAKE_INSTALL_PREFIX=`pwd`/../install \
-DBUILD_PLUGIN_I3S=ON \
-DBUILD_PLUGIN_NITF=ON \
-DBUILD_PLUGIN_TILEDB=ON \
-DBUILD_PLUGIN_ICEBRIDGE=ON \
-DBUILD_PLUGIN_HDF=ON \
-DBUILD_PLUGIN_PGPOINTCLOUD=ON \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MAINTAINER Howard Butler <howard@hobu.co>
ARG PDAL_VERSION=master
ARG DESTDIR="/build"
ARG PARALLEL=2
ARG tiledb_version=1.4.1
ARG TILEDB_VERSION=1.7.2

ENV CC gcc
ENV CXX g++
Expand All @@ -13,86 +13,92 @@ RUN apt-get update -qq; \
apt-get -qq remove postgis; \
apt-get install -y --fix-missing --no-install-recommends \
software-properties-common \
apt-transport-https ca-certificates gnupg software-properties-common wget
apt-transport-https ca-certificates gnupg software-properties-common \
wget

RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - \
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc \
2>/dev/null | apt-key add - \
&& apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --fix-missing --no-install-recommends \
build-essential \
ca-certificates \
libfreexl-dev \
cmake \
curl \
gfortran \
git \
libarpack2-dev \
libflann-dev \
libhdf5-serial-dev \
liblapack-dev \
libtiff5-dev \
openssh-client \
python3-dev \
python3-numpy \
software-properties-common \
wget \
automake \
libtool \
libhdf5-dev \
libboost-filesystem1.65-dev \
libboost-iostreams1.65-dev \
libboost-program-options1.65-dev \
libboost-system1.65-dev \
libboost-thread1.65-dev \
clang \
clang-6.0 \
libc6-dev \
libopenjp2-7-dev \
libc6-dev \
libnetcdf-dev \
libpng-dev \
libjpeg-dev \
libgif-dev \
libwebp-dev \
libhdf4-alt-dev \
libhdf5-dev \
unixodbc-dev \
libsqlite3-dev \
libltdl-dev \
libcurl4-openssl-dev \
libssl-dev \
python3-numpy \
libdap-dev\
cython \
python3-pip \
time \
libhpdf-dev \
python3-setuptools \
libhpdf-dev \
unzip \
libzstd-dev \
libeigen3-dev \
ninja-build \
sqlite3 \
libgeos-dev \
cython \
python3-pip \
time \
ninja-build \
python3-setuptools \
unzip \
libeigen3-dev \
libxml2-dev \
libssl-dev \
liblzma-dev \
libzstd1-dev \
pkg-config \
bash-completion \
ninja-build \
sqlite3 \
libgeos-dev \
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
--fix-missing --no-install-recommends \
build-essential \
ca-certificates \
libfreexl-dev \
cmake \
curl \
gfortran \
git \
libarpack2-dev \
libflann-dev \
libhdf5-serial-dev \
liblapack-dev \
libtiff5-dev \
openssh-client \
python3-dev \
python3-numpy \
software-properties-common \
wget \
automake \
libtool \
libhdf5-dev \
libboost-filesystem1.65-dev \
libboost-iostreams1.65-dev \
libboost-program-options1.65-dev \
libboost-system1.65-dev \
libboost-thread1.65-dev \
clang \
clang-6.0 \
libc6-dev \
libopenjp2-7-dev \
libc6-dev \
libnetcdf-dev \
libpng-dev \
libjpeg-dev \
libgif-dev \
libwebp-dev \
libhdf4-alt-dev \
libhdf5-dev \
unixodbc-dev \
libsqlite3-dev \
libltdl-dev \
libcurl4-openssl-dev \
libssl-dev \
python3-numpy \
libdap-dev\
cython \
python3-pip \
time \
libhpdf-dev \
python3-setuptools \
libhpdf-dev \
unzip \
libzstd-dev \
libeigen3-dev \
ninja-build \
sqlite3 \
libgeos-dev \
cython \
python3-pip \
time \
ninja-build \
python3-setuptools \
unzip \
libeigen3-dev \
libxml2-dev \
libssl-dev \
liblzma-dev \
libzstd1-dev \
pkg-config \
bash-completion \
ninja-build \
sqlite3 \
libgeos-dev \
libpq-dev \
libfreexl-dev \
lbzip2 \
liblz4-dev \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*

RUN git clone https://github.com/LASzip/LASzip.git laszip \
Expand Down Expand Up @@ -121,7 +127,6 @@ RUN git clone https://github.com/hobu/laz-perf.git \
&& DESTDIR=/ ninja install \
&& rm -rf /laz-perf


RUN mkdir /nitro && cd /nitro \
&& git clone https://github.com/hobu/nitro \
&& cd nitro \
Expand Down Expand Up @@ -167,8 +172,6 @@ RUN git clone --depth 1 --branch v0.5.1 https://github.com/gadomski/cpd.git \
&& DESTDIR=/ ninja install \
&& rm -rf /cpd



RUN git clone https://github.com/OSGeo/PROJ.git --branch 6.1 proj \
&& cd proj \
&& ./autogen.sh \
Expand All @@ -178,7 +181,6 @@ RUN git clone https://github.com/OSGeo/PROJ.git --branch 6.1 proj \
&& make install DESTDIR=/ \
&& rm -rf /proj


RUN git clone --branch master https://github.com/OSGeo/libgeotiff.git \
&& cd libgeotiff/libgeotiff \
&& ./autogen.sh \
Expand All @@ -191,28 +193,41 @@ RUN git clone --branch master https://github.com/OSGeo/libgeotiff.git \
RUN git clone --branch release/3.0 https://github.com/OSGeo/gdal.git \
&& cd gdal/gdal \
&& ./configure --prefix=/usr \
--mandir=/usr/share/man \
--includedir=/usr/include/gdal \
--with-threads \
--with-grass=no \
--with-hide-internal-symbols=yes \
--with-rename-internal-libtiff-symbols=yes \
--with-rename-internal-libgeotiff-symbols=yes \
--with-libtiff=/usr/ \
--with-geos=/usr/bin/geos-config \
--with-geotiff=/usr \
--with-proj=/usr \
--with-ogdi=no \
--with-curl \
--with-ecw=no \
--with-mrsid=no \
--mandir=/usr/share/man \
--includedir=/usr/include/gdal \
--with-threads \
--with-grass=no \
--with-hide-internal-symbols=yes \
--with-rename-internal-libtiff-symbols=yes \
--with-rename-internal-libgeotiff-symbols=yes \
--with-libtiff=/usr/ \
--with-geos=/usr/bin/geos-config \
--with-geotiff=/usr \
--with-proj=/usr \
--with-ogdi=no \
--with-curl \
--with-ecw=no \
--with-mrsid=no \
&& make -j ${PARALLEL} \
&& make install \
&& make install DESTDIR=/ \
&& rm -rf /gdal

RUN git clone --branch ${TILEDB_VERSION} \
https://github.com/TileDB-Inc/TileDB.git \
&& cd TileDB \
&& mkdir build \
&& cd build \
&& cmake .. -G "Unix Makefiles" -DTILEDB_TBB=OFF -DTILEDB_TESTS=OFF \
&& make \
&& make install-tiledb \
&& cd / \
&& rm -rf TileDB

RUN curl -LOs http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-5.0.0-beta0.tar.gz && tar zxvf libspatialite-5.0.0-beta0.tar.gz && cd /libspatialite-5.0.0-beta0 \
&& CXXFLAGS="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1" CFLAGS="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1" ./configure --prefix=/usr \
&& CXXFLAGS="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1" \
CFLAGS="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1" \
./configure --prefix=/usr \
&& make -j 4 \
&& make install

Expand Down

0 comments on commit 925e57d

Please sign in to comment.