Setting up OpenCV3 with Cuda on a Docker Image

I’m trying to use the nvidia/cuda:10.0-devel-ubuntu18.04 image Docker Image as an environment to setup OpenCV3 and compile it with CUDA on. However, whenever I try compiling, I get a message that the cuda libraries cannot be found, despite the environment mirroring one we have on our jetsons, on which the same installation command works fine. Here’s the CMake output,

Sending build context to Docker daemon  716.3kB

Step 1/16 : FROM nvcr.io/nvidia/l4t-base:r32.4.3
 ---> c93fc89026d9
Step 2/16 : ENV LOGNAME root
 ---> Using cache
 ---> b5de2c5c1fb7
Step 3/16 : ENV DEBIAN_FRONTEND noninteractive
 ---> Using cache
 ---> d00004403da9
Step 4/16 : RUN export OPENBLAS_CORETYPE=ARMV8
 ---> Using cache
 ---> f91fc1f4e7c7
Step 5/16 : RUN apt-get update -y && apt-get install --no-install-recommends apt-utils lsb-release wget less udev sudo apt-transport-https build-essential cmake -y
 ---> Using cache
 ---> 03d31ee408df
Step 6/16 : RUN apt-get update -y && apt-get install --no-install-recommends apt-utils lsb-release wget less udev sudo apt-transport-https build-essential cmake -y
 ---> Using cache
 ---> 854a2c5ada3e
Step 7/16 : RUN apt-get update && apt-get upgrade -y &&    apt-get install -y 	    python-pip         build-essential         cmake         git         wget         unzip         yasm         pkg-config         libswscale-dev         libtbb2         libtbb-dev         libjpeg-dev         libpng-dev         libtiff-dev         libavformat-dev         libpq-dev         libxine2-dev         libglew-dev         libtiff5-dev         zlib1g-dev         libjpeg-dev         libavcodec-dev         libavformat-dev         libavutil-dev         libpostproc-dev         libswscale-dev         libeigen3-dev         libtbb-dev         libgtk2.0-dev         pkg-config         python-dev         python-numpy         python3-dev         python3-numpy     && rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> 02728e5f0cb8
Step 8/16 : RUN git clone https://github.com/opencv/opencv.git
 ---> Using cache
 ---> cf396db14bae
Step 9/16 : RUN git clone https://github.com/opencv/opencv_contrib.git
 ---> Using cache
 ---> f349b97c7ee0
Step 10/16 : WORKDIR opencv_contrib
 ---> Using cache
 ---> b7e47068f6f0
Step 11/16 : RUN git checkout 3.4
 ---> Using cache
 ---> 1f72b5dcf980
Step 12/16 : WORKDIR ../opencv
 ---> Using cache
 ---> e9fedea5fe7e
Step 13/16 : RUN git checkout 3.4
 ---> Using cache
 ---> 65ee337c48ac
Step 14/16 : RUN mkdir build
 ---> Using cache
 ---> 442525fba320
Step 15/16 : WORKDIR builk
 ---> Using cache
 ---> 713e201469c9
Step 16/16 : RUN cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_CUDA=ON -D CUDA_cublas_LIBRARY=/usr/local/cuda-10.2/targets/aarch64-linux/lib/libcublas.so -D CUDA_nppc_LIBRARY=/usr/local/cuda-10.2/targets/aarch64-linux/lib/libnppc.so -D CUDA_nppial_LIBRARY=/usr/local/cuda-10.2/targets/aarch64-linux/lib/libnppial.so -D CUDA_nppic_LIBRARY=/usr/local/cuda-10.2/targets/aarch64-linux/lib/libnppic.so -D CUDA_nppicom_LIBRARY=/usr/local/cuda-10.2/targets/aarch64-linux/lib/libnppicom.so -D CUDA_nppidei_LIBRARY=/usr/local/cuda-10.2/targets/aarch64-linux/lib/libnppidei.so -D CUDA_nppig_LIBRARY=/usr/local/cuda-10.2/targets/aarch64-linux/lib/libnppig.so -D CUDA_nppif_LIBRARY=/usr/local/cuda-10.2/targets/aarch64-linux/lib/libnppif.so -D CUDA_nppim_LIBRARY=/usr/local/cuda-10.2/targets/aarch64-linux/lib/libnppim.so -D CUDA_nppist_LIBRARY=/usr/local/cuda-10.2/targets/aarch64-linux/lib/libnppist.so -D CUDA_nppisu_LIBRARY=/usr/local/cuda-10.2/targets/aarch64-linux/lib/libnppisu.so -D CUDA_nppitc_LIBRARY=/usr/local/cuda-10.2/targets/aarch64-linux/lib/libnppitc.so -D CUDA_npps_LIBRARY=/usr/local/cuda-10.2/targets/aarch64-linux/lib/libnpps.so -D CUDA_cufft_LIBRARY=/usr/local/cuda-10.2/targets/aarch64-linux/lib/libcufft.so -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules ..
 ---> Running in fd1d0258150b
-- The CXX compiler identification is GNU 7.5.0
-- The C compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Detected processor: aarch64
-- Performing Test HAVE_CXX11 (check file: cmake/checks/cxx11.cpp)
-- Performing Test HAVE_CXX11 - Success
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.17", minimum required is "2.7") 
-- Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython2.7.so (found suitable exact version "2.7.17") 
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.9", minimum required is "3.2") 
-- Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython3.6m.so (found suitable exact version "3.6.9") 
-- Looking for ccache - not found
-- Performing Test HAVE_CXX_FSIGNED_CHAR
-- Performing Test HAVE_CXX_FSIGNED_CHAR - Success
-- Performing Test HAVE_C_FSIGNED_CHAR
-- Performing Test HAVE_C_FSIGNED_CHAR - Success
-- Performing Test HAVE_CXX_W
-- Performing Test HAVE_CXX_W - Success
-- Performing Test HAVE_C_W
-- Performing Test HAVE_C_W - Success
-- Performing Test HAVE_CXX_WALL
-- Performing Test HAVE_CXX_WALL - Success
-- Performing Test HAVE_C_WALL
-- Performing Test HAVE_C_WALL - Success
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success
-- Performing Test HAVE_C_WERROR_RETURN_TYPE
-- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Failed
-- Performing Test HAVE_CXX_WERROR_ADDRESS
-- Performing Test HAVE_CXX_WERROR_ADDRESS - Success
-- Performing Test HAVE_C_WERROR_ADDRESS
-- Performing Test HAVE_C_WERROR_ADDRESS - Success
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success
-- Performing Test HAVE_CXX_WFORMAT
-- Performing Test HAVE_CXX_WFORMAT - Success
-- Performing Test HAVE_C_WFORMAT
-- Performing Test HAVE_C_WFORMAT - Success
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_C_WMISSING_DECLARATIONS
-- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed
-- Performing Test HAVE_C_WMISSING_PROTOTYPES
-- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WUNDEF
-- Performing Test HAVE_CXX_WUNDEF - Success
-- Performing Test HAVE_C_WUNDEF
-- Performing Test HAVE_C_WUNDEF - Success
-- Performing Test HAVE_CXX_WINIT_SELF
-- Performing Test HAVE_CXX_WINIT_SELF - Success
-- Performing Test HAVE_C_WINIT_SELF
-- Performing Test HAVE_C_WINIT_SELF - Success
-- Performing Test HAVE_CXX_WPOINTER_ARITH
-- Performing Test HAVE_CXX_WPOINTER_ARITH - Success
-- Performing Test HAVE_C_WPOINTER_ARITH
-- Performing Test HAVE_C_WPOINTER_ARITH - Success
-- Performing Test HAVE_CXX_WSHADOW
-- Performing Test HAVE_CXX_WSHADOW - Success
-- Performing Test HAVE_C_WSHADOW
-- Performing Test HAVE_C_WSHADOW - Success
-- Performing Test HAVE_CXX_WSIGN_PROMO
-- Performing Test HAVE_CXX_WSIGN_PROMO - Success
-- Performing Test HAVE_C_WSIGN_PROMO
-- Performing Test HAVE_C_WSIGN_PROMO - Failed
-- Performing Test HAVE_CXX_WUNINITIALIZED
-- Performing Test HAVE_CXX_WUNINITIALIZED - Success
-- Performing Test HAVE_C_WUNINITIALIZED
-- Performing Test HAVE_C_WUNINITIALIZED - Success
-- Performing Test HAVE_CXX_WSUGGEST_OVERRIDE
-- Performing Test HAVE_CXX_WSUGGEST_OVERRIDE - Success
-- Performing Test HAVE_C_WSUGGEST_OVERRIDE
-- Performing Test HAVE_C_WSUGGEST_OVERRIDE - Failed
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
-- Performing Test HAVE_CXX_WNO_COMMENT
-- Performing Test HAVE_CXX_WNO_COMMENT - Success
-- Performing Test HAVE_C_WNO_COMMENT
-- Performing Test HAVE_C_WNO_COMMENT - Success
-- Performing Test HAVE_CXX_WIMPLICIT_FALLTHROUGH_3
-- Performing Test HAVE_CXX_WIMPLICIT_FALLTHROUGH_3 - Success
-- Performing Test HAVE_C_WIMPLICIT_FALLTHROUGH_3
-- Performing Test HAVE_C_WIMPLICIT_FALLTHROUGH_3 - Success
-- Performing Test HAVE_CXX_WNO_STRICT_OVERFLOW
-- Performing Test HAVE_CXX_WNO_STRICT_OVERFLOW - Success
-- Performing Test HAVE_C_WNO_STRICT_OVERFLOW
-- Performing Test HAVE_C_WNO_STRICT_OVERFLOW - Success
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_CXX_PTHREAD
-- Performing Test HAVE_CXX_PTHREAD - Success
-- Performing Test HAVE_C_PTHREAD
-- Performing Test HAVE_C_PTHREAD - Success
-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER
-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success
-- Performing Test HAVE_C_FOMIT_FRAME_POINTER
-- Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_C_FFUNCTION_SECTIONS
-- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_CXX_FDATA_SECTIONS
-- Performing Test HAVE_CXX_FDATA_SECTIONS - Success
-- Performing Test HAVE_C_FDATA_SECTIONS
-- Performing Test HAVE_C_FDATA_SECTIONS - Success
-- Performing Test HAVE_CPU_NEON_SUPPORT (check file: cmake/checks/cpu_neon.cpp)
-- Performing Test HAVE_CPU_NEON_SUPPORT - Success
-- Performing Test HAVE_CPU_FP16_SUPPORT (check file: cmake/checks/cpu_fp16.cpp)
-- Performing Test HAVE_CPU_FP16_SUPPORT - Success
-- Performing Test HAVE_CPU_BASELINE_FLAGS
-- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed
-- Performing Test HAVE_LINK_AS_NEEDED
-- Performing Test HAVE_LINK_AS_NEEDED - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for memalign
-- Looking for memalign - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found suitable version "1.2.11", minimum required is "1.2.3") 
-- Found JPEG: /usr/lib/aarch64-linux-gnu/libjpeg.so  
-- Found TIFF: /usr/lib/aarch64-linux-gnu/libtiff.so (found version "4.0.9") 
-- Performing Test HAVE_C_STD_C99
-- Performing Test HAVE_C_STD_C99 - Success
-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE
-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success
-- Performing Test HAVE_C_WNO_UNUSED_FUNCTION
-- Performing Test HAVE_C_WNO_UNUSED_FUNCTION - Success
-- Performing Test HAVE_C_WNO_SHADOW
-- Performing Test HAVE_C_WNO_SHADOW - Success
-- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED
-- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - Success
-- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES
-- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES - Success
-- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS
-- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS - Success
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH - Success
-- Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR) 
-- Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION
-- Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION - Success
-- Performing Test HAVE_C_WNO_UNINITIALIZED
-- Performing Test HAVE_C_WNO_UNINITIALIZED - Success
-- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER
-- Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER - Success
-- Performing Test HAVE_C_WNO_UNUSED
-- Performing Test HAVE_C_WNO_UNUSED - Success
-- Performing Test HAVE_C_WNO_SIGN_COMPARE
-- Performing Test HAVE_C_WNO_SIGN_COMPARE - Success
-- Performing Test HAVE_C_WNO_POINTER_COMPARE
-- Performing Test HAVE_C_WNO_POINTER_COMPARE - Success
-- Performing Test HAVE_C_WNO_ABSOLUTE_VALUE
-- Performing Test HAVE_C_WNO_ABSOLUTE_VALUE - Failed
-- Performing Test HAVE_C_WNO_UNUSED_PARAMETER
-- Performing Test HAVE_C_WNO_UNUSED_PARAMETER - Success
-- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES
-- Performing Test HAVE_C_WNO_STRICT_PROTOTYPES - Success
-- Found ZLIB: /usr/lib/aarch64-linux-gnu/libz.so (found version "1.2.11") 
-- Found PNG: /usr/lib/aarch64-linux-gnu/libpng.so (found version "1.6.34") 
-- Looking for /usr/include/libpng/png.h
-- Looking for /usr/include/libpng/png.h - found
-- Looking for semaphore.h
-- Looking for semaphore.h - found
-- Performing Test HAVE_CXX_WNO_SHADOW
-- Performing Test HAVE_CXX_WNO_SHADOW - Success
-- Performing Test HAVE_CXX_WNO_UNUSED
-- Performing Test HAVE_CXX_WNO_UNUSED - Success
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success
-- Performing Test HAVE_CXX_WNO_UNDEF
-- Performing Test HAVE_CXX_WNO_UNDEF - Success
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WNO_UNINITIALIZED
-- Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success
-- Performing Test HAVE_CXX_WNO_SWITCH
-- Performing Test HAVE_CXX_WNO_SWITCH - Success
-- Performing Test HAVE_CXX_WNO_PARENTHESES
-- Performing Test HAVE_CXX_WNO_PARENTHESES - Success
-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS
-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success
-- Performing Test HAVE_CXX_WNO_EXTRA
-- Performing Test HAVE_CXX_WNO_EXTRA - Success
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WNO_MISLEADING_INDENTATION
-- Performing Test HAVE_CXX_WNO_MISLEADING_INDENTATION - Success
-- Performing Test HAVE_CXX_WNO_DEPRECATED
-- Performing Test HAVE_CXX_WNO_DEPRECATED - Success
-- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE
-- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE - Success
-- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE
-- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE - Failed
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH - Success
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_COMPARE
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_COMPARE - Success
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Failed
-- Performing Test HAVE_CXX_WNO_REORDER
-- Performing Test HAVE_CXX_WNO_REORDER - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_RESULT
-- Performing Test HAVE_CXX_WNO_UNUSED_RESULT - Success
-- Checking for module 'gtk+-3.0'
--   No package 'gtk+-3.0' found
-- Checking for module 'gtk+-2.0'
--   Found gtk+-2.0, version 2.24.32
-- Checking for module 'gthread-2.0'
--   Found gthread-2.0, version 2.56.4
-- Checking for modules 'gstreamer-base-1.0;gstreamer-video-1.0;gstreamer-app-1.0;gstreamer-riff-1.0;gstreamer-pbutils-1.0'
--   No package 'gstreamer-base-1.0' found
--   No package 'gstreamer-video-1.0' found
--   No package 'gstreamer-app-1.0' found
--   No package 'gstreamer-riff-1.0' found
--   No package 'gstreamer-pbutils-1.0' found
-- Checking for modules 'gstreamer-base-0.10;gstreamer-video-0.10;gstreamer-app-0.10;gstreamer-riff-0.10;gstreamer-pbutils-0.10'
--   No package 'gstreamer-base-0.10' found
--   No package 'gstreamer-video-0.10' found
--   No package 'gstreamer-app-0.10' found
--   No package 'gstreamer-riff-0.10' found
--   No package 'gstreamer-pbutils-0.10' found
-- Checking for module 'libdc1394-2'
--   No package 'libdc1394-2' found
-- Checking for module 'libdc1394'
--   No package 'libdc1394' found
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for sys/videoio.h
-- Looking for sys/videoio.h - not found
-- Checking for modules 'libavcodec;libavformat;libavutil;libswscale'
--   Found libavcodec, version 57.107.100
--   Found libavformat, version 57.83.100
--   Found libavutil, version 55.78.100
--   Found libswscale, version 4.8.100
-- Checking for module 'libavresample'
--   No package 'libavresample' found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- CUDA detected: 10.2
-- Automatic detection of CUDA generation failed. Going to build for all known architectures.
-- CUDA NVCC target flags: -gencode;arch=compute_53,code=sm_53;-gencode;arch=compute_62,code=sm_62;-gencode;arch=compute_72,code=sm_72;-gencode;arch=compute_70,code=sm_70;-D_FORCE_INLINES
-- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
-- Could NOT find Atlas (missing: Atlas_CBLAS_INCLUDE_DIR Atlas_CLAPACK_INCLUDE_DIR Atlas_CBLAS_LIBRARY Atlas_BLAS_LIBRARY Atlas_LAPACK_LIBRARY) 
-- A library with BLAS API not found. Please specify library location.
-- LAPACK requires BLAS
-- A library with LAPACK API not found. Please specify library location.
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS - Success
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO - Success
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE - Failed
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE - Success
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32 - Failed
-- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF
-- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF - Success
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH - Failed
-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- Looking for dlerror in dl
-- Looking for dlerror in dl - found
-- Performing Test HAVE_C_WNO_UNDEF
-- Performing Test HAVE_C_WNO_UNDEF - Success
-- Performing Test HAVE_CXX_WNO_STRICT_ALIASING
-- Performing Test HAVE_CXX_WNO_STRICT_ALIASING - Success
-- Performing Test HAVE_CXX_WNO_UNUSED_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_VARIABLE - Success
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE - Success
-- OpenCV Python: during development append to PYTHONPATH: /opencv/builk/python_loader
-- Checking for module 'freetype2'
--   Found freetype2, version 21.0.15
-- Checking for module 'harfbuzz'
--   Found harfbuzz, version 1.7.2
-- freetype2:   YES (ver 21.0.15)
-- harfbuzz:    YES (ver 1.7.2)
-- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS) (found version "")
-- Module opencv_ovis disabled because OGRE3D was not found
-- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
-- Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
-- Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
-- Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
-- Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
-- Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags
-- Checking for module 'tesseract'
--   No package 'tesseract' found
-- Tesseract:   NO
-- Allocator metrics storage type: 'int'
-- Performing Test HAVE_CXX_WNO_UNUSED_BUT_SET_VARIABLE
-- Performing Test HAVE_CXX_WNO_UNUSED_BUT_SET_VARIABLE - Success
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.sse2.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.sse3.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.ssse3.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.sse4_1.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.sse4_2.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.avx.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.avx512_skx.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin256.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin256.avx512_skx.cpp
-- Excluding from source files list: <BUILD>/modules/core/test/test_intrin512.avx512_skx.cpp
-- Excluding from source files list: modules/imgproc/src/corner.avx.cpp
-- Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp
-- Excluding from source files list: modules/imgproc/src/imgwarp.sse4_1.cpp
-- Excluding from source files list: modules/imgproc/src/resize.avx2.cpp
-- Excluding from source files list: modules/imgproc/src/resize.sse4_1.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx2.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp
-- Excluding from source files list: modules/features2d/src/fast.avx2.cpp
-- imgcodecs: Jasper codec is disabled in runtime. Details: https://github.com/opencv/opencv/issues/14058
-- imgcodecs: OpenEXR codec is disabled in runtime. Details: https://github.com/opencv/opencv/issues/21326
-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL
-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL - Success
-- Excluding from source files list: modules/objdetect/src/haar.avx.cpp
-- xfeatures2d/boostdesc: Download: boostdesc_bgm.i
-- xfeatures2d/boostdesc: Download: boostdesc_bgm_bi.i
-- xfeatures2d/boostdesc: Download: boostdesc_bgm_hd.i
-- xfeatures2d/boostdesc: Download: boostdesc_binboost_064.i
-- xfeatures2d/boostdesc: Download: boostdesc_binboost_128.i
-- xfeatures2d/boostdesc: Download: boostdesc_binboost_256.i
-- xfeatures2d/boostdesc: Download: boostdesc_lbgm.i
-- xfeatures2d/vgg: Download: vgg_generated_48.i
-- xfeatures2d/vgg: Download: vgg_generated_64.i
-- xfeatures2d/vgg: Download: vgg_generated_80.i
-- xfeatures2d/vgg: Download: vgg_generated_120.i
-- data: Download: face_landmark_model.dat
-- Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD
-- Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD - Failed
-- 
-- General configuration for OpenCV 3.4.17-dev =====================================
--   Version control:               3.4.17-19-gc25fd3349b
-- 
--   Extra modules:
--     Location (extra):            /opencv_contrib/modules
--     Version control (extra):     3.4.17-2-gb0ab32ed
-- 
--   Platform:
--     Timestamp:                   2022-01-11T22:15:07Z
--     Host:                        Linux 4.9.253-tegra aarch64
--     CMake:                       3.10.2
--     CMake generator:             Unix Makefiles
--     CMake build tool:            /usr/bin/make
--     Configuration:               RELEASE
-- 
--   CPU/HW features:
--     Baseline:                    NEON FP16
-- 
--   C/C++:
--     Built as dynamic libs?:      YES
--     C++11:                       YES
--     C++ Compiler:                /usr/bin/c++  (ver 7.5.0)
--     C++ flags (Release):         -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
--     C++ flags (Debug):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
--     C Compiler:                  /usr/bin/cc
--     C flags (Release):           -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
--     C flags (Debug):             -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
--     Linker flags (Release):      -Wl,--gc-sections -Wl,--as-needed  
--     Linker flags (Debug):        -Wl,--gc-sections -Wl,--as-needed  
--     ccache:                      NO
--     Precompiled headers:         NO
--     Extra dependencies:          m pthread cudart_static -lpthread dl rt nppc nppial CUDA_nppicc_LIBRARY-NOTFOUND nppicom nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cufft -L/usr/local/cuda-10.2/lib64 -L/usr/lib/aarch64-linux-gnu -L/usr/local/cuda-10.2/targets/aarch64-linux/lib
--     3rdparty dependencies:
-- 
--   OpenCV modules:
--     To be built:                 aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dpm face features2d flann freetype fuzzy hfs highgui img_hash imgcodecs imgproc line_descriptor ml objdetect optflow phase_unwrapping photo plot python2 python3 reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto
--     Disabled:                    world
--     Disabled by dependency:      -
--     Unavailable:                 cvv hdf java matlab ovis sfm viz
--     Applications:                tests perf_tests apps
--     Documentation:               NO
--     Non-free algorithms:         NO
-- 
--   GUI: 
--     GTK+:                        YES (ver 2.24.32)
--       GThread :                  YES (ver 2.56.4)
--       GtkGlExt:                  NO
--     VTK support:                 NO
-- 
--   Media I/O: 
--     ZLib:                        /usr/lib/aarch64-linux-gnu/libz.so (ver 1.2.11)
--     JPEG:                        /usr/lib/aarch64-linux-gnu/libjpeg.so (ver 80)
--     WEBP:                        build (ver encoder: 0x020f)
--     PNG:                         /usr/lib/aarch64-linux-gnu/libpng.so (ver 1.6.34)
--     TIFF:                        /usr/lib/aarch64-linux-gnu/libtiff.so (ver 42 / 4.0.9)
--     JPEG 2000:                   build (ver 1.900.1)
--     OpenEXR:                     build (ver 2.3.0)
--     HDR:                         YES
--     SUNRASTER:                   YES
--     PXM:                         YES
-- 
--   Video I/O:
--     DC1394:                      NO
--     FFMPEG:                      YES
--       avcodec:                   YES (ver 57.107.100)
--       avformat:                  YES (ver 57.83.100)
--       avutil:                    YES (ver 55.78.100)
--       swscale:                   YES (ver 4.8.100)
--       avresample:                NO
--     GStreamer:                   NO
--     libv4l/libv4l2:              NO
--     v4l/v4l2:                    linux/videodev2.h
-- 
--   Parallel framework:            pthreads
-- 
--   Trace:                         YES (with Intel ITT)
-- 
--   Other third-party libraries:
--     Lapack:                      NO
--     Eigen:                       YES (ver 3.3.4)
--     Custom HAL:                  YES (carotene (ver 0.0.1))
--     Protobuf:                    build (3.5.1)
-- 
--   NVIDIA CUDA:                   YES (ver 10.2, CUFFT CUBLAS)
--     NVIDIA GPU arch:             53 62 72 70
--     NVIDIA PTX archs:
-- 
--   OpenCL:                        YES (no extra features)
--     Include path:                /opencv/3rdparty/include/opencl/1.2
--     Link libraries:              Dynamic load
-- 
--   Python 2:
--     Interpreter:                 /usr/bin/python2.7 (ver 2.7.17)
--     Libraries:                   /usr/lib/aarch64-linux-gnu/libpython2.7.so (ver 2.7.17)
--     numpy:                       /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.13.3)
--     install path:                lib/python2.7/dist-packages/cv2/python-2.7
-- 
--   Python 3:
--     Interpreter:                 /usr/bin/python3 (ver 3.6.9)
--     Libraries:                   /usr/lib/aarch64-linux-gnu/libpython3.6m.so (ver 3.6.9)
--     numpy:                       /usr/lib/python3/dist-packages/numpy/core/include (ver 1.13.3)
--     install path:                lib/python3.6/site-packages/cv2/python-3.6
-- 
--   Python (for build):            /usr/bin/python2.7
-- 
--   Java:                          
--     ant:                         NO
--     JNI:                         NO
--     Java wrappers:               NO
--     Java tests:                  NO
-- 
--   Install to:                    /usr/local
-- -----------------------------------------------------------------
-- 
e[91mCMake 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_nppicc_LIBRARY (ADVANCED)
    linked by target "opencv_cudev" in directory /opencv/modules/cudev
    linked by target "opencv_cudev" in directory /opencv/modules/cudev
    linked by target "opencv_cudev" in directory /opencv/modules/cudev
    linked by target "opencv_test_cudev" in directory /opencv/modules/cudev/test
    linked by target "opencv_test_cudev" in directory /opencv/modules/cudev/test
    linked by target "opencv_test_core" in directory /opencv/modules/core
    linked by target "opencv_test_core" in directory /opencv/modules/core
    linked by target "opencv_perf_core" in directory /opencv/modules/core
    linked by target "opencv_perf_core" in directory /opencv/modules/core
    linked by target "opencv_core" in directory /opencv/modules/core
    linked by target "opencv_core" in directory /opencv/modules/core
    linked by target "opencv_core" in directory /opencv/modules/core
    linked by target "opencv_test_cudaarithm" in directory /opencv/modules/cudaarithm
    linked by target "opencv_test_cudaarithm" in directory /opencv/modules/cudaarithm
    linked by target "opencv_cudaarithm" in directory /opencv/modules/cudaarithm
    linked by target "opencv_cudaarithm" in directory /opencv/modules/cudaarithm
    linked by target "opencv_cudaarithm" in directory /opencv/modules/cudaarithm
    linked by target "opencv_perf_cudaarithm" in directory /opencv/modules/cudaarithm
    linked by target "opencv_perf_cudaarithm" in directory /opencv/modules/cudaarithm
    linked by target "opencv_flann" in directory /opencv/modules/flann
    linked by target "opencv_flann" in directory /opencv/modules/flann
    linked by target "opencv_flann" in directory /opencv/modules/flann
    linked by target "opencv_test_flann" in directory /opencv/modules/flann
    linked by target "opencv_test_flann" in directory /opencv/modules/flann
    linked by target "opencv_perf_imgproc" in directory /opencv/modules/imgproc
    linked by target "opencv_perf_imgproc" in directory /opencv/modules/imgproc
    linked by target "opencv_test_imgproc" in directory /opencv/modules/imgproc
    linked by target "opencv_test_imgproc" in directory /opencv/modules/imgproc
    linked by target "opencv_imgproc" in directory /opencv/modules/imgproc
    linked by target "opencv_imgproc" in directory /opencv/modules/imgproc
    linked by target "opencv_imgproc" in directory /opencv/modules/imgproc
    linked by target "opencv_test_ml" in directory /opencv/modules/ml
    linked by target "opencv_test_ml" in directory /opencv/modules/ml
    linked by target "opencv_ml" in directory /opencv/modules/ml
    linked by target "opencv_ml" in directory /opencv/modules/ml
    linked by target "opencv_ml" in directory /opencv/modules/ml
    linked by target "opencv_test_phase_unwrapping" in directory /opencv_contrib/modules/phase_unwrapping
    linked by target "opencv_test_phase_unwrapping" in directory /opencv_contrib/modules/phase_unwrapping
    linked by target "opencv_phase_unwrapping" in directory /opencv_contrib/modules/phase_unwrapping
    linked by target "opencv_phase_unwrapping" in directory /opencv_contrib/modules/phase_unwrapping
    linked by target "opencv_phase_unwrapping" in directory /opencv_contrib/modules/phase_unwrapping
    linked by target "opencv_plot" in directory /opencv_contrib/modules/plot
    linked by target "opencv_plot" in directory /opencv_contrib/modules/plot
    linked by target "opencv_plot" in directory /opencv_contrib/modules/plot
    linked by target "opencv_test_reg" in directory /opencv_contrib/modules/reg
    linked by target "opencv_test_reg" in directory /opencv_contrib/modules/reg
    linked by target "opencv_reg" in directory /opencv_contrib/modules/reg
    linked by target "opencv_reg" in directory /opencv_contrib/modules/reg
    linked by target "opencv_reg" in directory /opencv_contrib/modules/reg
    linked by target "opencv_perf_reg" in directe[0m-- Configuring incomplete, errors occurred!
See also "/opencv/builk/CMakeFiles/CMakeOutput.log".
See also "/opencv/builk/CMakeFiles/CMakeError.log".
e[91mory /opencv_contrib/modules/reg
    linked by target "opencv_perf_reg" in directory /opencv_contrib/modules/reg
    linked by target "opencv_surface_matching" in directory /opencv_contrib/modules/surface_matching
    linked by target "opencv_surface_matching" in directory /opencv_contrib/modules/surface_matching
    linked by target "opencv_surface_matching" in directory /opencv_contrib/modules/surface_matching
    linked by target "opencv_video" in directory /opencv/modules/video
    linked by target "opencv_video" in directory /opencv/modules/video
    linked by target "opencv_video" in directory /opencv/modules/video
    linked by target "opencv_perf_video" in directory /opencv/modules/video
    linked by target "opencv_perf_video" in directory /opencv/modules/video
    linked by target "opencv_test_video" in directory /opencv/modules/video
    linked by target "opencv_test_video" in directory /opencv/modules/video
    linked by target "opencv_test_cudabgsegm" in directory /opencv/modules/cudabgsegm
    linked by target "opencv_test_cudabgsegm" in directory /opencv/modules/cudabgsegm
    linked by target "opencv_cudabgsegm" in directory /opencv/modules/cudabgsegm
    linked by target "opencv_cudabgsegm" in directory /opencv/modules/cudabgsegm
    linked by target "opencv_cudabgsegm" in directory /opencv/modules/cudabgsegm
    linked by target "opencv_perf_cudabgsegm" in directory /opencv/modules/cudabgsegm
    linked by target "opencv_perf_cudabgsegm" in directory /opencv/modules/cudabgsegm
    linked by target "opencv_test_cudafilters" in directory /opencv/modules/cudafilters
    linked by target "opencv_test_cudafilters" in directory /opencv/modules/cudafilters
    linked by target "opencv_perf_cudafilters" in directory /opencv/modules/cudafilters
    linked by target "opencv_perf_cudafilters" in directory /opencv/modules/cudafilters
    linked by target "opencv_cudafilters" in directory /opencv/modules/cudafilters
    linked by target "opencv_cudafilters" in directory /opencv/modules/cudafilters
    linked by target "opencv_cudafilters" in directory /opencv/modules/cudafilters
    linked by target "opencv_test_cudaimgproc" in directory /opencv/modules/cudaimgproc
    linked by target "opencv_test_cudaimgproc" in directory /opencv/modules/cudaimgproc
    linked by target "opencv_cudaimgproc" in directory /opencv/modules/cudaimgproc
    linked by target "opencv_cudaimgproc" in directory /opencv/modules/cudaimgproc
    linked by target "opencv_cudaimgproc" in directory /opencv/modules/cudaimgproc
    linked by target "opencv_perf_cudaimgproc" in directory /opencv/modules/cudaimgproc
    linked by target "opencv_perf_cudaimgproc" in directory /opencv/modules/cudaimgproc
    linked by target "opencv_test_cudawarping" in directory /opencv/modules/cudawarping
    linked by target "opencv_test_cudawarping" in directory /opencv/modules/cudawarping
    linked by target "opencv_cudawarping" in directory /opencv/modules/cudawarping
    linked by target "opencv_cudawarping" in directory /opencv/modules/cudawarping
    linked by target "opencv_cudawarping" in directory /opencv/modules/cudawarping
    linked by target "opencv_perf_cudawarping" in directory /opencv/modules/cudawarping
    linked by target "opencv_perf_cudawarping" in directory /opencv/modules/cudawarping
    linked by target "opencv_dnn" in directory /opencv/modules/dnn
    linked by target "opencv_dnn" in directory /opencv/modules/dnn
    linked by target "opencv_dnn" in directory /opencv/modules/dnn
    linked by target "opencv_perf_dnn" in directory /opencv/modules/dnn
    linked by target "opencv_perf_dnn" in directory /opencv/modules/dnn
    linked by target "opencv_test_dnn" in directory /opencv/modules/dnn
    linked by target "opencv_test_dnn" in directory /opencv/modules/dnn
    linked by target "opencv_features2d" in directory /opencv/modules/features2d
    linked by target "opencv_features2d" in directory /opencv/modules/features2d
    linked by target "opencv_features2d" in directory /opencv/modules/features2d
    linked by target "opencv_perf_features2d" in directory /opencv/modules/features2d
    linked by target "opencv_perf_features2d" in directory /opencv/modules/features2d
    linked by target "opencv_test_features2d" in directory /opencv/modules/features2d
    linked by target "opencv_test_features2d" in directory /opencv/modules/features2d
    linked by target "opencv_freetype" in directory /opencv_contrib/modules/freetype
    linked by target "opencv_freetype" in directory /opencv_contrib/modules/freetype
    linked by target "opencv_freetype" in directory /opencv_contrib/modules/freetype
    linked by target "opencv_test_fuzzy" in directory /opencv_contrib/modules/fuzzy
    linked by target "opencv_test_fuzzy" in directory /opencv_contrib/modules/fuzzy
    linked by target "opencv_fuzzy" in directory /opencv_contrib/modules/fuzzy
    linked by target "opencv_fuzzy" in directory /opencv_contrib/modules/fuzzy
    linked by target "opencv_fuzzy" in directory /opencv_contrib/modules/fuzzy
    linked by target "opencv_hfs" in directory /opencv_contrib/modules/hfs
    linked by target "opencv_hfs" in directory /opencv_contrib/modules/hfs
    linked by target "opencv_hfs" in directory /opencv_contrib/modules/hfs
    linked by target "opencv_test_img_hash" in directory /opencv_contrib/modules/img_hash
    linked by target "opencv_test_img_hash" in directory /opencv_contrib/modules/img_hash
    linked by target "opencv_img_hash" in directory /opencv_contrib/modules/img_hash
    linked by target "opencv_img_hash" in directory /opencv_contrib/modules/img_hash
    linked by target "opencv_img_hash" in directory /opencv_contrib/modules/img_hash
    linked by target "opencv_imgcodecs" in directory /opencv/modules/imgcodecs
    linked by target "opencv_imgcodecs" in directory /opencv/modules/imgcodecs
    linked by target "opencv_imgcodecs" in directory /opencv/modules/imgcodecs
    linked by target "opencv_perf_imgcodecs" in directory /opencv/modules/imgcodecs
    linked by target "opencv_perf_imgcodecs" in directory /opencv/modules/imgcodecs
    linked by target "opencv_test_imgcodecs" in directory /opencv/modules/imgcodecs
    linked by target "opencv_test_imgcodecs" in directory /opencv/modules/imgcodecs
    linked by target "opencv_test_line_descriptor" in directory /opencv_contrib/modules/line_descriptor
    linked by target "opencv_test_line_descriptor" in directory /opencv_contrib/modules/line_descriptor
    linked by target "opencv_perf_line_descriptor" in directory /opencv_contrib/modules/line_descriptor
    linked by target "opencv_perf_line_descriptor" in directory /opencv_contrib/modules/line_descriptor
    linked by target "opencv_line_descriptor" in directory /opencv_contrib/modules/line_descriptor
    linked by target "opencv_line_descriptor" in directory /opencv_contrib/modules/line_descriptor
    linked by target "opencv_line_descriptor" in directory /opencv_contrib/modules/line_descriptor
    linked by target "opencv_test_photo" in directory /opencv/modules/photo
    linked by target "opencv_test_photo" in directory /opencv/modules/photo
    linked by target "opencv_photo" in directory /opencv/modules/photo
    linked by target "opencv_photo" in directory /opencv/modules/photo
    linked by target "opencv_photo" in directory /opencv/modules/photo
    linked by target "opencv_perf_photo" in directory /opencv/modules/photo
    linked by target "opencv_perf_photo" in directory /opencv/modules/photo
    linked by target "opencv_saliency" in directory /opencv_contrib/modules/saliency
    linked by target "opencv_saliency" in directory /opencv_contrib/modules/saliency
    linked by target "opencv_saliency" in directory /opencv_contrib/modules/saliency
    linked by target "opencv_test_shape" in directory /opencv/modules/shape
    linked by target "opencv_test_shape" in directory /opencv/modules/shape
    linked by target "opencv_shape" in directory /opencv/modules/shape
    linked by target "opencv_shape" in directory /opencv/modules/shape
    linked by target "opencv_shape" in directory /opencv/modules/shape
    linked by target "opencv_text" in directory /opencv_contrib/modules/text
    linked by target "opencv_text" in directory /opencv_contrib/modules/text
    linked by target "opencv_text" in directory /opencv_contrib/modules/text
    linked by target "opencv_test_text" in directory /opencv_contrib/modules/text
    linked by target "opencv_test_text" in directory /opencv_contrib/modules/text
    linked by target "opencv_test_videoio" in directory /opencv/modules/videoio
    linked by target "opencv_test_videoio" in directory /opencv/modules/videoio
    linked by target "opencv_videoio" in directory /opencv/modules/videoio
    linked by target "opencv_videoio" in directory /opencv/modules/videoio
    linked by target "opencv_videoio" in directory /opencv/modules/videoio
    linked by target "opencv_perf_videoio" in directory /opencv/modules/videoio
    linked by target "opencv_perf_videoio" in directory /opencv/modules/videoio
    linked by target "opencv_test_xphoto" in directory /opencv_contrib/modules/xphoto
    linked by target "opencv_test_xphoto" in directory /opencv_contrib/modules/xphoto
    linked by target "opencv_perf_xphoto" in directory /opencv_contrib/modules/xphoto
    linked by target "opencv_perf_xphoto" in directory /opencv_contrib/modules/xphoto
    linked by target "opencv_xphoto" in directory /opencv_contrib/modules/xphoto
    linked by target "opencv_xphoto" in directory /opencv_contrib/modules/xphoto
    linked by target "opencv_xphoto" in directory /opencv_contrib/modules/xphoto
    linked by target "opencv_calib3d" in directory /opencv/modules/calib3d
    linked by target "opencv_calib3d" in directory /opencv/modules/calib3d
    linked by target "opencv_calib3d" in directory /opencv/modules/calib3d
    linked by target "opencv_perf_calib3d" in directory /opencv/modules/calib3d
    linked by target "opencv_perf_calib3d" in directory /opencv/modules/calib3d
    linked by target "opencv_test_calib3d" in directory /opencv/modules/calib3d
    linked by target "opencv_test_calib3d" in directory /opencv/modules/calib3d
    linked by target "opencv_test_cudacodec" in directory /opencv/modules/cudacodec
    linked by target "opencv_test_cudacodec" in directory /opencv/modules/cudacodec
    linked by target "opencv_cudacodec" in directory /opencv/modules/cudacodec
    linked by target "opencv_cudacodec" in directory /opencv/modules/cudacodec
    linked by target "opencv_cudacodec" in directory /opencv/modules/cudacodec
    linked by target "opencv_perf_cudacodec" in directory /opencv/modules/cudacodec
    linked by target "opencv_perf_cudacodec" in directory /opencv/modules/cudacodec
    linked by target "opencv_test_cudafeatures2d" in directory /opencv/modules/cudafeatures2d
    linked by target "opencv_test_cudafeatures2d" in directory /opencv/modules/cudafeatures2d
    linked by target "opencv_cudafeatures2d" in directory /opencv/modules/cudafeatures2d
    linked by target "opencv_cudafeatures2d" in directory /opencv/modules/cudafeatures2d
    linked by target "opencv_cudafeatures2d" in directory /opencv/modules/cudafeatures2d
    linked by target "opencv_perf_cudafeatures2d" in directory /opencv/modules/cudafeatures2d
    linked by target "opencv_perf_cudafeatures2d" in directory /opencv/modules/cudafeatures2d
    linked by target "opencv_test_cudastereo" in directory /opencv/modules/cudastereo
    linked by target "opencv_test_cudastereo" in directory /opencv/modules/cudastereo
    linked by target "opencv_cudastereo" in directory /opencv/modules/cudastereo
    linked by target "opencv_cudastereo" in directory /opencv/modules/cudastereo
    linked by target "opencv_cudastereo" in directory /opencv/modules/cudastereo
    linked by target "opencv_perf_cudastereo" in directory /opencv/modules/cudastereo
    linked by target "opencv_perf_cudastereo" in directory /opencv/modules/cudastereo
    linked by target "opencv_datasets" in directory /opencv_contrib/modules/datasets
    linked by target "opencv_datasets" in directory /opencv_contrib/modules/datasets
    linked by target "opencv_datasets" in directory /opencv_contrib/modules/datasets
    linked by target "opencv_test_highgui" in directory /opencv/modules/highgui
    linked by target "opencv_test_highgui" in directory /opencv/modules/highgui
    linked by target "opencv_highgui" in directory /opencv/modules/highgui
    linked by target "opencv_highgui" in directory /opencv/modules/highgui
    linked by target "opencv_highgui" in directory /opencv/modules/highgui
    linked by target "opencv_test_objdetect" in directory /opencv/modules/objdetect
    linked by target "opencv_test_objdetect" in directory /opencv/modules/objdetect
    linked by target "opencv_objdetect" in directory /opencv/modules/objdetect
    linked by target "opencv_objdetect" in directory /opencv/modules/objdetect
    linked by target "opencv_objdetect" in directory /opencv/modules/objdetect
    linked by target "opencv_perf_objdetect" in directory /opencv/modules/objdetect
    linked by target "opencv_perf_objdetect" in directory /opencv/modules/objdetect
    linked by target "opencv_rgbd" in directory /opencv_contrib/modules/rgbd
    linked by target "opencv_rgbd" in directory /opencv_contrib/modules/rgbd
    linked by target "opencv_rgbd" in directory /opencv_contrib/modules/rgbd
    linked by target "opencv_test_rgbd" in directory /opencv_contrib/modules/rgbd
    linked by target "opencv_test_rgbd" in directory /opencv_contrib/modules/rgbd
    linked by target "opencv_test_stereo" in directory /opencv_contrib/modules/stereo
    linked by target "opencv_test_stereo" in directory /opencv_contrib/modules/stereo
    linked by target "opencv_stereo" in directory /opencv_contrib/modules/stereo
    linked by target "opencv_stereo" in directory /opencv_contrib/modules/stereo
    linked by target "opencv_stereo" in directory /opencv_contrib/modules/stereo
    linked by target "opencv_perf_stereo" in directory /opencv_contrib/modules/stereo
    linked by target "opencv_perf_stereo" in directory /opencv_contrib/modules/stereo
    linked by target "opencv_test_structured_light" in directory /opencv_contrib/modules/structured_light
    linked by target "opencv_test_structured_light" in directory /opencv_contrib/modules/structured_light
    linked by target "opencv_structured_light" in directory /opencv_contrib/modules/structured_light
    linked by target "opencv_structured_light" in directory /opencv_contrib/modules/structured_light
    linked by target "opencv_structured_light" in directory /opencv_contrib/modules/structured_light
    linked by target "opencv_test_tracking" in directory /opencv_contrib/modules/tracking
    linked by target "opencv_test_tracking" in directory /opencv_contrib/modules/tracking
    linked by target "opencv_tracking" in directory /opencv_contrib/modules/tracking
    linked by target "opencv_tracking" in directory /opencv_contrib/modules/tracking
    linked by target "opencv_tracking" in directory /opencv_contrib/modules/tracking
    linked by target "opencv_perf_tracking" in directory /opencv_contrib/modules/tracking
    linked by target "opencv_perf_tracking" in directory /opencv_contrib/modules/tracking
    linked by target "opencv_ts" in directory /opencv/modules/ts
    linked by target "opencv_ts" in directory /opencv/modules/ts
    linked by target "opencv_ts" in directory /opencv/modules/ts
    linked by target "opencv_xfeatures2d" in directory /opencv_contrib/modules/xfeatures2d
    linked by target "opencv_xfeatures2d" in directory /opencv_contrib/modules/xfeatures2d
    linked by target "opencv_xfeatures2d" in directory /opencv_contrib/modules/xfeatures2d
    linked by target "opencv_perf_xfeatures2d" in directory /opencv_contrib/modules/xfeatures2d
    linked by target "opencv_perf_xfeatures2d" in directory /opencv_contrib/modules/xfeatures2d
    linked by target "opencv_test_xfeatures2d" in directory /opencv_contrib/modules/xfeatures2d
    linked by target "opencv_test_xfeatures2d" in directory /opencv_contrib/modules/xfeatures2d
    linked by target "opencv_perf_ximgproc" in directory /opencv_contrib/modules/ximgproc
    linked by target "opencv_perf_ximgproc" in directory /opencv_contrib/modules/ximgproc
    linked by target "opencv_ximgproc" in directory /opencv_contrib/modules/ximgproc
    linked by target "opencv_ximgproc" in directory /opencv_contrib/modules/ximgproc
    linked by target "opencv_ximgproc" in directory /opencv_contrib/modules/ximgproc
    linked by target "opencv_test_ximgproc" in directory /opencv_contrib/modules/ximgproc
    linked by target "opencv_test_ximgproc" in directory /opencv_contrib/modules/ximgproc
    linked by target "opencv_xobjdetect" in directory /opencv_contrib/modules/xobjdetect
    linked by target "opencv_xobjdetect" in directory /opencv_contrib/modules/xobjdetect
    linked by target "opencv_xobjdetect" in directory /opencv_contrib/modules/xobjdetect
    linked by target "opencv_test_aruco" in directory /opencv_contrib/modules/aruco
    linked by target "opencv_test_aruco" in directory /opencv_contrib/modules/aruco
    linked by target "opencv_aruco" in directory /opencv_contrib/modules/aruco
    linked by target "opencv_aruco" in directory /opencv_contrib/modules/aruco
    linked by target "opencv_aruco" in directory /opencv_contrib/modules/aruco
    linked by target "opencv_bgsegm" in directory /opencv_contrib/modules/bgsegm
    linked by target "opencv_bgsegm" in directory /opencv_contrib/modules/bgsegm
    linked by target "opencv_bgsegm" in directory /opencv_contrib/modules/bgsegm
    linked by target "opencv_test_bgsegm" in directory /opencv_contrib/modules/bgsegm
    linked by target "opencv_test_bgsegm" in directory /opencv_contrib/modules/bgsegm
    linked by target "opencv_test_bioinspired" in directory /opencv_contrib/modules/bioinspired
    linked by target "opencv_test_bioinspired" in directory /opencv_contrib/modules/bioinspired
    linked by target "opencv_perf_bioinspired" in directory /opencv_contrib/modules/bioinspired
    linked by target "opencv_perf_bioinspired" in directory /opencv_contrib/modules/bioinspired
    linked by target "opencv_bioinspired" in directory /opencv_contrib/modules/bioinspired
    linked by target "opencv_bioinspired" in directory /opencv_contrib/modules/bioinspired
    linked by target "opencv_bioinspired" in directory /opencv_contrib/modules/bioinspired
    linked by target "opencv_ccalib" in directory /opencv_contrib/modules/ccalib
    linked by target "opencv_ccalib" in directory /opencv_contrib/modules/ccalib
    linked by target "opencv_ccalib" in directory /opencv_contrib/modules/ccalib
    linked by target "opencv_test_cudalegacy" in directory /opencv/modules/cudalegacy
    linked by target "opencv_test_cudalegacy" in directory /opencv/modules/cudalegacy
    linked by target "opencv_cudalegacy" in directory /opencv/modules/cudalegacy
    linked by target "opencv_cudalegacy" in directory /opencv/modules/cudalegacy
    linked by target "opencv_cudalegacy" in directory /opencv/modules/cudalegacy
    linked by target "opencv_perf_cudalegacy" in directory /opencv/modules/cudalegacy
    linked by target "opencv_perf_cudalegacy" in directory /opencv/modules/cudalegacy
    linked by target "opencv_test_cudaobjdetect" in directory /opencv/modules/cudaobjdetect
    linked by target "opencv_test_cudaobjdetect" in directory /opencv/modules/cudaobjdetect
    linked by target "opencv_perf_cudaobjdetect" in directory /opencv/modules/cudaobjdetect
    linked by target "opencv_perf_cudaobjdetect" in directory /opencv/modules/cudaobjdetect
    linked by target "opencv_cudaobjdetect" in directory /opencv/modules/cudaobjdetect
    linked by target "opencv_cudaobjdetect" in directory /opencv/modules/cudaobjdetect
    linked by target "opencv_cudaobjdetect" in directory /opencv/modules/cudaobjdetect
    linked by target "opencv_cudaoptflow" in directory /opencv/modules/cudaoptflow
    linked by target "opencv_cudaoptflow" in directory /opencv/modules/cudaoptflow
    linked by target "opencv_cudaoptflow" in directory /opencv/modules/cudaoptflow
    linked by target "opencv_perf_cudaoptflow" in directory /opencv/modules/cudaoptflow
    linked by target "opencv_perf_cudaoptflow" in directory /opencv/modules/cudaoptflow
    linked by target "opencv_test_cudaoptflow" in directory /opencv/modules/cudaoptflow
    linked by target "opencv_test_cudaoptflow" in directory /opencv/modules/cudaoptflow
    linked by target "opencv_dnn_objdetect" in directory /opencv_contrib/modules/dnn_objdetect
    linked by target "opencv_dnn_objdetect" in directory /opencv_contrib/modules/dnn_objdetect
    linked by target "opencv_dnn_objdetect" in directory /opencv_contrib/modules/dnn_objdetect
    linked by target "opencv_dpm" in directory /opencv_contrib/modules/dpm
    linked by target "opencv_dpm" in directory /opencv_contrib/modules/dpm
    linked by target "opencv_dpm" in directory /opencv_contrib/modules/dpm
    linked by target "opencv_test_face" in directory /opencv_contrib/modules/face
    linked by target "opencv_test_face" in directory /opencv_contrib/modules/face
    linked by target "opencv_face" in directory /opencv_contrib/modules/face
    linked by target "opencv_face" in directory /opencv_contrib/modules/face
    linked by target "opencv_face" in directory /opencv_contrib/modules/face
    linked by target "opencv_test_optflow" in directory /opencv_contrib/modules/optflow
    linked by target "opencv_test_optflow" in directory /opencv_contrib/modules/optflow
    linked by target "opencv_optflow" in directory /opencv_contrib/modules/optflow
    linked by target "opencv_optflow" in directory /opencv_contrib/modules/optflow
    linked by target "opencv_optflow" in directory /opencv_contrib/modules/optflow
    linked by target "opencv_perf_optflow" in directory /opencv_contrib/modules/optflow
    linked by target "opencv_perf_optflow" in directory /opencv_contrib/modules/optflow
    linked by target "opencv_test_stitching" in directory /opencv/modules/stitching
    linked by target "opencv_test_stitching" in directory /opencv/modules/stitching
    linked by target "opencv_stitching" in directory /opencv/modules/stitching
    linked by target "opencv_stitching" in directory /opencv/modules/stitching
    linked by target "opencv_stitching" in directory /opencv/modules/stitching
    linked by target "opencv_perf_stitching" in directory /opencv/modules/stitching
    linked by target "opencv_perf_stitching" in directory /opencv/modules/stitching
    linked by target "opencv_test_superres" in directory /opencv/modules/superres
    linked by target "opencv_test_superres" in directory /opencv/modules/superres
    linked by target "opencv_superres" in directory /opencv/modules/superres
    linked by target "opencv_superres" in directory /opencv/modules/superres
    linked by target "opencv_superres" in directory /opencv/modules/superres
    linked by target "opencv_perf_superres" in directory /opencv/modules/superres
    linked by target "opencv_perf_superres" in directory /opencv/modules/superres
    linked by target "opencv_test_videostab" in directory /opencv/modules/videostab
    linked by target "opencv_test_videostab" in directory /opencv/modules/videostab
    linked by target "opencv_videostab" in directory /opencv/modules/videostab
    linked by target "opencv_videostab" in directory /opencv/modules/videostab
    linked by target "opencv_videostab" in directory /opencv/modules/videostab
    linked by target "opencv_traincascade" in directory /opencv/apps/traincascade
    linked by target "opencv_traincascade" in directory /opencv/apps/traincascade
    linked by target "opencv_createsamples" in directory /opencv/apps/createsamples
    linked by target "opencv_createsamples" in directory /opencv/apps/createsamples
    linked by target "opencv_annotation" in directory /opencv/apps/annotation
    linked by target "opencv_annotation" in directory /opencv/apps/annotation
    linked by target "opencv_visualisation" in directory /opencv/apps/visualisation
    linked by target "opencv_visualisation" in directory /opencv/apps/visualisation
    linked by target "opencv_interactive-calibration" in directory /opencv/apps/interactive-calibration
    linked by target "opencv_interactive-calibration" in directory /opencv/apps/interactive-calibration
    linked by target "opencv_version" in directory /opencv/apps/version
    linked by target "opencv_version" in directory /opencv/apps/version

Even when I manually specify the directories (/usr/local/cuda-10.2/targets/lib/), the actual build still fails. Is there a work around for this? Or perhaps an image that I can use to get it to work?