From 102f511d288c9b5162fcf1fc976a2a9115a777d5 Mon Sep 17 00:00:00 2001 From: "Pavel A. Tomskikh" Date: Thu, 12 Jan 2023 18:08:57 +0800 Subject: [PATCH] #43 debug --- docker/Dockerfile.deepstream-l4t | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile.deepstream-l4t b/docker/Dockerfile.deepstream-l4t index e46eecde4..331ed1ea5 100644 --- a/docker/Dockerfile.deepstream-l4t +++ b/docker/Dockerfile.deepstream-l4t @@ -20,7 +20,12 @@ WORKDIR /opencv/build RUN python3 -m pip install --no-cache-dir 'numpy~=1.22.4' -COPY libs/opencv/savant /opencv/opencv_contrib/modules/savant +#COPY libs/opencv/savant /opencv/opencv_contrib/modules/savant +COPY libs/opencv/savant/CMakeLists.txt /opencv/opencv_contrib/modules/savant/CMakeLists.txt +RUN mkdir -p /opencv/opencv_contrib/modules/savant/include/opencv2 \ + && mkdir -p /opencv/opencv_contrib/modules/savant/src \ + && echo > /opencv/opencv_contrib/modules/savant/include/opencv2/savant.hpp \ + && echo > /opencv/opencv_contrib/modules/savant/src/savant.cpp RUN --mount=type=cache,target=/tmp/opencv-cache \ cmake \ -D CMAKE_BUILD_TYPE=RELEASE \ @@ -42,6 +47,9 @@ RUN --mount=type=cache,target=/tmp/opencv-cache \ -D WITH_GSTREAMER=ON \ /opencv/opencv +RUN make -j$(nproc) opencv_core opencv_cudev opencv_cudaimgproc +COPY libs/opencv/savant /opencv/opencv_contrib/modules/savant +RUN make -j$(nproc) opencv_savant RUN make -j$(nproc) install