mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
Docker: add g2o/gtsam/libpointmatcher to dockerfiles
This commit is contained in:
@@ -18,6 +18,50 @@ RUN apt-get update && apt-get install -y \
|
|||||||
|
|
||||||
WORKDIR /root/
|
WORKDIR /root/
|
||||||
|
|
||||||
|
# GTSAM
|
||||||
|
RUN git clone https://bitbucket.org/gtborg/gtsam.git
|
||||||
|
RUN cd gtsam && \
|
||||||
|
git checkout 4.0.0-alpha2 && \
|
||||||
|
mkdir build && \
|
||||||
|
cd build && \
|
||||||
|
cmake -DMETIS_SHARED=ON -DGTSAM_BUILD_STATIC_LIBRARY=OFF -DGTSAM_BUILD_TESTS=OFF -DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF -DCMAKE_BUILD_TYPE=Release .. && \
|
||||||
|
make -j3 && \
|
||||||
|
make install && \
|
||||||
|
cd && \
|
||||||
|
rm -r gtsam
|
||||||
|
|
||||||
|
# g2o
|
||||||
|
RUN git clone https://github.com/RainerKuemmerle/g2o.git
|
||||||
|
RUN cd g2o && \
|
||||||
|
git checkout 20170730_git && \
|
||||||
|
mkdir build && \
|
||||||
|
cd build && \
|
||||||
|
cmake -DBUILD_LGPL_SHARED_LIBS=ON -DG2O_BUILD_APPS=OFF -DG2O_BUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release .. && \
|
||||||
|
make -j3 && \
|
||||||
|
make install && \
|
||||||
|
cd && \
|
||||||
|
rm -r g2o
|
||||||
|
|
||||||
|
# libpointmatcher
|
||||||
|
RUN git clone https://github.com/ethz-asl/libnabo.git
|
||||||
|
RUN cd libnabo && \
|
||||||
|
mkdir build && \
|
||||||
|
cd build && \
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release .. && \
|
||||||
|
make -j3 && \
|
||||||
|
make install && \
|
||||||
|
cd && \
|
||||||
|
rm -r libnabo
|
||||||
|
RUN git clone https://github.com/ethz-asl/libpointmatcher.git
|
||||||
|
RUN cd libpointmatcher && \
|
||||||
|
mkdir build && \
|
||||||
|
cd build && \
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release .. && \
|
||||||
|
make -j3 && \
|
||||||
|
make install && \
|
||||||
|
cd && \
|
||||||
|
rm -r libpointmatcher
|
||||||
|
|
||||||
# Clone source code
|
# Clone source code
|
||||||
RUN git clone https://github.com/introlab/rtabmap.git
|
RUN git clone https://github.com/introlab/rtabmap.git
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,50 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|||||||
|
|
||||||
WORKDIR /root/
|
WORKDIR /root/
|
||||||
|
|
||||||
|
# GTSAM
|
||||||
|
RUN git clone https://bitbucket.org/gtborg/gtsam.git
|
||||||
|
RUN cd gtsam && \
|
||||||
|
git checkout 4.0.0-alpha2 && \
|
||||||
|
mkdir build && \
|
||||||
|
cd build && \
|
||||||
|
cmake -DMETIS_SHARED=ON -DGTSAM_BUILD_STATIC_LIBRARY=OFF -DGTSAM_BUILD_TESTS=OFF -DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF -DCMAKE_BUILD_TYPE=Release .. && \
|
||||||
|
make -j3 && \
|
||||||
|
make install && \
|
||||||
|
cd && \
|
||||||
|
rm -r gtsam
|
||||||
|
|
||||||
|
# g2o
|
||||||
|
RUN git clone https://github.com/RainerKuemmerle/g2o.git
|
||||||
|
RUN cd g2o && \
|
||||||
|
git checkout 20170730_git && \
|
||||||
|
mkdir build && \
|
||||||
|
cd build && \
|
||||||
|
cmake -DBUILD_LGPL_SHARED_LIBS=ON -DG2O_BUILD_APPS=OFF -DG2O_BUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release .. && \
|
||||||
|
make -j3 && \
|
||||||
|
make install && \
|
||||||
|
cd && \
|
||||||
|
rm -r g2o
|
||||||
|
|
||||||
|
# libpointmatcher
|
||||||
|
RUN git clone https://github.com/ethz-asl/libnabo.git
|
||||||
|
RUN cd libnabo && \
|
||||||
|
mkdir build && \
|
||||||
|
cd build && \
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release .. && \
|
||||||
|
make -j3 && \
|
||||||
|
make install && \
|
||||||
|
cd && \
|
||||||
|
rm -r libnabo
|
||||||
|
RUN git clone https://github.com/ethz-asl/libpointmatcher.git
|
||||||
|
RUN cd libpointmatcher && \
|
||||||
|
mkdir build && \
|
||||||
|
cd build && \
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release .. && \
|
||||||
|
make -j3 && \
|
||||||
|
make install && \
|
||||||
|
cd && \
|
||||||
|
rm -r libpointmatcher
|
||||||
|
|
||||||
# Clone source code
|
# Clone source code
|
||||||
RUN git clone https://github.com/introlab/rtabmap.git
|
RUN git clone https://github.com/introlab/rtabmap.git
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,50 @@ RUN apt-get update && apt-get install -y \
|
|||||||
libopenni2-dev \
|
libopenni2-dev \
|
||||||
software-properties-common
|
software-properties-common
|
||||||
|
|
||||||
|
# GTSAM
|
||||||
|
RUN git clone https://bitbucket.org/gtborg/gtsam.git
|
||||||
|
RUN cd gtsam && \
|
||||||
|
git checkout 4.0.0-alpha2 && \
|
||||||
|
mkdir build && \
|
||||||
|
cd build && \
|
||||||
|
cmake -DMETIS_SHARED=ON -DGTSAM_BUILD_STATIC_LIBRARY=OFF -DGTSAM_BUILD_TESTS=OFF -DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF -DCMAKE_BUILD_TYPE=Release .. && \
|
||||||
|
make -j3 && \
|
||||||
|
make install && \
|
||||||
|
cd && \
|
||||||
|
rm -r gtsam
|
||||||
|
|
||||||
|
# g2o
|
||||||
|
RUN git clone https://github.com/RainerKuemmerle/g2o.git
|
||||||
|
RUN cd g2o && \
|
||||||
|
git checkout 20170730_git && \
|
||||||
|
mkdir build && \
|
||||||
|
cd build && \
|
||||||
|
cmake -DBUILD_LGPL_SHARED_LIBS=ON -DG2O_BUILD_APPS=OFF -DG2O_BUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release .. && \
|
||||||
|
make -j3 && \
|
||||||
|
make install && \
|
||||||
|
cd && \
|
||||||
|
rm -r g2o
|
||||||
|
|
||||||
|
# libpointmatcher
|
||||||
|
RUN git clone https://github.com/ethz-asl/libnabo.git
|
||||||
|
RUN cd libnabo && \
|
||||||
|
mkdir build && \
|
||||||
|
cd build && \
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release .. && \
|
||||||
|
make -j3 && \
|
||||||
|
make install && \
|
||||||
|
cd && \
|
||||||
|
rm -r libnabo
|
||||||
|
RUN git clone https://github.com/ethz-asl/libpointmatcher.git
|
||||||
|
RUN cd libpointmatcher && \
|
||||||
|
mkdir build && \
|
||||||
|
cd build && \
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release .. && \
|
||||||
|
make -j3 && \
|
||||||
|
make install && \
|
||||||
|
cd && \
|
||||||
|
rm -r libpointmatcher
|
||||||
|
|
||||||
# Clone source code
|
# Clone source code
|
||||||
WORKDIR /root/
|
WORKDIR /root/
|
||||||
RUN git clone https://github.com/introlab/rtabmap.git
|
RUN git clone https://github.com/introlab/rtabmap.git
|
||||||
|
|||||||
@@ -16,8 +16,53 @@ RUN apt-get update && apt-get install -y \
|
|||||||
# Issue: http://www.pcl-users.org/Build-failure-on-Ubuntu-17-04-td4044552.html
|
# Issue: http://www.pcl-users.org/Build-failure-on-Ubuntu-17-04-td4044552.html
|
||||||
RUN sed -i 's|/usr/lib/libmpi.so;||g' /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake
|
RUN sed -i 's|/usr/lib/libmpi.so;||g' /usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake
|
||||||
|
|
||||||
# Clone source code
|
|
||||||
WORKDIR /root/
|
WORKDIR /root/
|
||||||
|
|
||||||
|
# GTSAM
|
||||||
|
RUN git clone https://bitbucket.org/gtborg/gtsam.git
|
||||||
|
RUN cd gtsam && \
|
||||||
|
git checkout 4.0.0-alpha2 && \
|
||||||
|
mkdir build && \
|
||||||
|
cd build && \
|
||||||
|
cmake -DMETIS_SHARED=ON -DGTSAM_BUILD_STATIC_LIBRARY=OFF -DGTSAM_BUILD_TESTS=OFF -DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF -DCMAKE_BUILD_TYPE=Release .. && \
|
||||||
|
make -j3 && \
|
||||||
|
make install && \
|
||||||
|
cd && \
|
||||||
|
rm -r gtsam
|
||||||
|
|
||||||
|
# g2o
|
||||||
|
RUN git clone https://github.com/RainerKuemmerle/g2o.git
|
||||||
|
RUN cd g2o && \
|
||||||
|
git checkout 20170730_git && \
|
||||||
|
mkdir build && \
|
||||||
|
cd build && \
|
||||||
|
cmake -DBUILD_LGPL_SHARED_LIBS=ON -DG2O_BUILD_APPS=OFF -DG2O_BUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release .. && \
|
||||||
|
make -j3 && \
|
||||||
|
make install && \
|
||||||
|
cd && \
|
||||||
|
rm -r g2o
|
||||||
|
|
||||||
|
# libpointmatcher
|
||||||
|
RUN git clone https://github.com/ethz-asl/libnabo.git
|
||||||
|
RUN cd libnabo && \
|
||||||
|
mkdir build && \
|
||||||
|
cd build && \
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release .. && \
|
||||||
|
make -j3 && \
|
||||||
|
make install && \
|
||||||
|
cd && \
|
||||||
|
rm -r libnabo
|
||||||
|
RUN git clone https://github.com/ethz-asl/libpointmatcher.git
|
||||||
|
RUN cd libpointmatcher && \
|
||||||
|
mkdir build && \
|
||||||
|
cd build && \
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release .. && \
|
||||||
|
make -j3 && \
|
||||||
|
make install && \
|
||||||
|
cd && \
|
||||||
|
rm -r libpointmatcher
|
||||||
|
|
||||||
|
# Clone source code
|
||||||
RUN git clone https://github.com/introlab/rtabmap.git
|
RUN git clone https://github.com/introlab/rtabmap.git
|
||||||
|
|
||||||
# Build RTAB-Map project
|
# Build RTAB-Map project
|
||||||
|
|||||||
Reference in New Issue
Block a user