Docker: updated artful build

This commit is contained in:
matlabbe
2018-03-22 10:07:19 -04:00
parent 00412749e7
commit ef017c9e9d

View File

@@ -12,14 +12,18 @@ RUN apt-get update && apt-get install -y \
libqt5svg5-dev \ libqt5svg5-dev \
libfreenect-dev \ libfreenect-dev \
libopenni2-dev \ libopenni2-dev \
ffmpeg \
software-properties-common software-properties-common
WORKDIR /root/ 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_contrib.git
RUN git clone https://github.com/opencv/opencv.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 .. && \ 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 -j$(nproc) && \
make install && \ make install && \