mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
docker/foxy: re-enabled opencv
This commit is contained in:
@@ -170,16 +170,16 @@ RUN git clone https://github.com/laurentkneip/opengv.git && \
|
||||
cd && \
|
||||
rm -r opengv
|
||||
|
||||
#RUN git clone --branch 4.2.0 https://github.com/opencv/opencv.git && \
|
||||
# git clone --branch 4.2.0 https://github.com/opencv/opencv_contrib.git && \
|
||||
# cd opencv && \
|
||||
# mkdir build && \
|
||||
# cd build && \
|
||||
# cmake -DBUILD_opencv_python3=OFF -DBUILD_opencv_python_bindings_generator=OFF -DBUILD_opencv_python_tests=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DOPENCV_ENABLE_NONFREE=ON -DOPENCV_EXTRA_MODULES_PATH=/root/opencv_contrib/modules .. && \
|
||||
# make -j$(nproc) && \
|
||||
# make install && \
|
||||
# cd ../.. && \
|
||||
# rm -rf opencv opencv_contrib
|
||||
RUN git clone --branch 4.2.0 https://github.com/opencv/opencv.git && \
|
||||
git clone --branch 4.2.0 https://github.com/opencv/opencv_contrib.git && \
|
||||
cd opencv && \
|
||||
mkdir build && \
|
||||
cd build && \
|
||||
cmake -DBUILD_opencv_python3=OFF -DBUILD_opencv_python_bindings_generator=OFF -DBUILD_opencv_python_tests=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DOPENCV_ENABLE_NONFREE=ON -DOPENCV_EXTRA_MODULES_PATH=/root/opencv_contrib/modules .. && \
|
||||
make -j$(nproc) && \
|
||||
make install && \
|
||||
cd ../.. && \
|
||||
rm -rf opencv opencv_contrib
|
||||
|
||||
# Will be used to read/store databases on host
|
||||
RUN mkdir -p /root/Documents/RTAB-Map && chmod 777 /root/Documents/RTAB-Map
|
||||
|
||||
Reference in New Issue
Block a user