I have a problem in extending the base docker image , I need to install the OpenCV library in the container I do this by following the AastaNV/JEP git but I have an error when I do the build of the Dockerfile to create the image, this TOPIC was about something similar to mine but I didn’t understand the solution.
below is my Dockerfile and the error:
FROM nvcr.io/nvidia/l4t-base:r32.4.4 ENV DEBIAN_FRONTEND=noninteractive WORKDIR /usr/src/app COPY ./install_opencv4.5.0_Jetson.sh . RUN apt-get update && \ apt-get install -y --no-install-recommends git \ apt-utils\ g++\ make\ cmake\ unzip\ wget RUN chmod +x install_opencv4.5.0_Jetson.sh && ./install_opencv4.5.0_Jetson.sh
Error from building image:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CUDA_cublas_LIBRARY (ADVANCED) linked by target "opencv_cudev" in directory /usr/src/app/workspace/opencv_contrib-4.5.0/modules/cudev linked by target "opencv_core" in directory /usr/src/app/workspace/opencv-4.5.0/modules/core linked by target "opencv_cudaarithm" in directory /usr/src/app/workspace/opencv_contrib-4.5.0/modules/cudaarithm linked by target "opencv_cudaarithm" in directory /usr/src/app/workspace/opencv_contrib-4.5.0/modules/cudaarithm linked by target "opencv_flann" in directory /usr/src/app/workspace/opencv-4.5.0/modules/flann
the error is long I uploaded the file to put it all, the one above is just the beginning
error.txt (185.2 KB)
With nvidia docker runtime it should load the cuda libraries and more automatically but I can not compile in the image build phase, while if I do it inside the running container I can install everything, but I need to create an image.