File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -402,6 +402,7 @@ RUN ln -s /usr/include/x86_64-linux-gnu/cudnn_v7.h /usr/local/cuda/include/cudnn
402
402
# OpenCV
403
403
WORKDIR /tmp
404
404
ENV OPENCV_VERSION="4.5.2"
405
+ COPY libnvcuvid.so.455.45.01 /usr/lib/x86_64-linux-gnu/libnvcuvid.so.1
405
406
RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
406
407
wget -O opencv-contrib.zip https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip && \
407
408
unzip ${OPENCV_VERSION}.zip && \
@@ -494,7 +495,7 @@ RUN cd /tmp/opencv-${OPENCV_VERSION}/cmake_binary && \
494
495
-D WITH_JASPER=ON \
495
496
-D WITH_JPEG=ON \
496
497
-D WITH_LAPACK=OFF \
497
- -D WITH_LIBV4L=OFF \
498
+ -D WITH_LIBV4L=ON \
498
499
-D WITH_NVCUVID=ON \
499
500
-D WITH_OPENCL=ON \
500
501
-D WITH_OPENCLAMDBLAS=OFF \
@@ -512,7 +513,7 @@ RUN cd /tmp/opencv-${OPENCV_VERSION}/cmake_binary && \
512
513
-D WITH_TBB=ON \
513
514
-D WITH_TIFF=ON \
514
515
-D WITH_UNICAP=OFF \
515
- -D WITH_V4L=OFF \
516
+ -D WITH_V4L=ON \
516
517
-D WITH_VTK=ON \
517
518
-D WITH_WEBP=ON \
518
519
-D WITH_XIMEA=OFF \
@@ -523,7 +524,7 @@ RUN cd /tmp/opencv-${OPENCV_VERSION}/cmake_binary && \
523
524
.. 2>&1 | tee cmake_messages.txt
524
525
RUN cd /tmp/opencv-4.5.2/cmake_binary && ninja
525
526
# RUN make -j$(nproc) && make install
526
-
527
+ RUN rm /usr/lib/x86_64-linux-gnu/libnvcuvid.so.1
527
528
528
529
RUN set -xe && \
529
530
apt update -y && \
You can’t perform that action at this time.
0 commit comments