mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
Docker: updated artful build
This commit is contained in:
@@ -12,14 +12,18 @@ RUN apt-get update && apt-get install -y \
|
||||
libqt5svg5-dev \
|
||||
libfreenect-dev \
|
||||
libopenni2-dev \
|
||||
ffmpeg \
|
||||
software-properties-common
|
||||
|
||||
WORKDIR /root/
|
||||
|
||||
# using OpenCV from source because ffmpeg (libav..) error with opencv binaries
|
||||
# using OpenCV from source because ffmpeg (libavutil..) error with opencv binaries:
|
||||
# rtabmap: symbol lookup error: /usr/lib/x86_64-linux-gnu/libavutil.so.55: undefined symbol: vdp_device_create_x11
|
||||
# ffmpeg above should be installed before building opencv
|
||||
|
||||
RUN git clone https://github.com/opencv/opencv_contrib.git
|
||||
RUN git clone https://github.com/opencv/opencv.git
|
||||
RUN cd rtabmap/build && \
|
||||
RUN cd opencv && mkdir build && cd build && \
|
||||
cmake -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF .. && \
|
||||
make -j$(nproc) && \
|
||||
make install && \
|
||||
|
||||
Reference in New Issue
Block a user