Docker: added AliceVision dependency to focal image

This commit is contained in:
matlabbe
2021-05-12 10:38:37 -04:00
parent a11492943a
commit aedc70218b
2 changed files with 53 additions and 1 deletions
+50 -1
View File
@@ -84,6 +84,55 @@ RUN cd zed-open-capture && \
cd && \
rm -r zed-open-capture
# AliceVision
# Issue: It could be possible to use version >2.2, but there is a seg fault after texturing the mesh (see #564).
RUN apt-get update && apt-get install -y \
libsuitesparse-dev \
libceres-dev \
xorg-dev \
libglu1-mesa-dev \
wget \
python-is-python3
RUN git clone https://github.com/OpenImageIO/oiio.git
RUN cd oiio && \
git checkout Release-2.0.12 && \
mkdir build && \
cd build && \
cmake .. && \
make -j$(nproc) && \
make install && \
cd && \
rm -r oiio
RUN git clone https://github.com/alembic/alembic.git
RUN cd alembic && \
git checkout 1.7.12 && \
mkdir build && \
cd build && \
cmake .. && \
make -j$(nproc) && \
make install && \
cd && \
rm -r alembic
RUN git clone -b v1.7.1 https://github.com/alicevision/geogram.git
RUN cd geogram && \
./configure.sh && \
cd build/Linux64-gcc-dynamic-Release && \
make -j$(nproc) && \
make install && \
cd && \
rm -r geogram
RUN git clone -b v2.2.0 https://github.com/alicevision/AliceVision.git --recursive
RUN cd AliceVision && \
wget https://gist.githubusercontent.com/matlabbe/469bba5e7733ad6f2e3d7857b84f1f9e/raw/0c272d73527a0a04aa63e27a8fc355118bcb26d5/alice_vision_eigen.patch && \
git apply alice_vision_eigen.patch && \
mkdir build && \
cd build && \
cmake -DALICEVISION_USE_CUDA=OFF .. && \
make -j$(nproc) && \
make install && \
cd && \
rm -r AliceVision
# Clone source code
ARG CACHE_DATE=2016-01-01
RUN git clone https://github.com/introlab/rtabmap.git
@@ -93,7 +142,7 @@ RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# Build RTAB-Map project
RUN source /ros_entrypoint.sh && \
cd rtabmap/build && \
cmake .. && \
cmake -DWITH_ALICE_VISION=ON .. && \
make -j2 && \
make install && \
cd ../.. && \