Ask Your Question

Revision history [back]

cuda nppial library not found while opencv compiling opencv-4.2.0

hi

i am facing issues while compiling opencv-4.2.0 with cuda-9.0

CUDA Version 9.0.176

following npp library are present : find /usr -iname "nppso" /usr/lib/x86_64-linux-gnu/libnppi.so /usr/lib/x86_64-linux-gnu/stubs/libnppi.so /usr/lib/x86_64-linux-gnu/stubs/libnpps.so /usr/lib/x86_64-linux-gnu/stubs/libnppc.so /usr/lib/x86_64-linux-gnu/libnpps.so /usr/lib/x86_64-linux-gnu/libnppc.so

system details :ubuntu -16.04 lts

following solution i found from stackoverflow : https://stackoverflow.com/questions/46584000/cmake-error-variables-are-set-to-notfound

but still the issue persist

cmake command : cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_CXX11=ON -DBUILD_PERF_TESTS=OFF -DWITH_XINE=ON -DBUILD_TESTS=OFF -DENABLE_PRECOMPILED_HEADERS=ON -DCMAKE_SKIP_RPATH=ON -DBUILD_WITH_DEBUG_INFO=ON -DBUILD_EXAMPLES=OFF -DBUILD_opencv_python3=ON -DWITH_OPENMP=ON -DWITH_CUDA=ON -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-9.0 -DCUDA_ARCH_BIN=5.3,6.0,6.1,7.0,7.5 -DCUDA_ARCH_PTX="" -DINSTALL_TESTS=OFF -DUSE_CUDNN=ON -DWITH_CUBLAS=ON -Wno-dev .. -DWITH_VTK=OFF -DWITH_GSTREAMER=OFF -DWITH_CUDNN=ON -DWITH_FFMPEG=ON -DBUILD_opencv_world=ON -DOPENCV_EXTRA_MODULES_PATH=/home/sree/Downloads/opencv_contrib-4.2.0/modules -DENABLE_PRECOMPILED_HEADERS=OFF -DWITH_PROTOBUF=ON -DBUILD_CAFFE=OFF -DWITH_CAFFE=OFF -DCUDA_GENERATION="Pascal" -DBUILD_opencv_ovis=ON && make

error is mentioned below :

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_nppial_LIBRARY (ADVANCED) linked by target "opencv_world" in directory /home/sree/Downloads/opencv-4.2.0/modules/world linked by target "opencv_world" in directory /home/sree/Downloads/opencv-4.2.0/modules/world linked by target "opencv_img_hash" in directory /home/sree/Downloads/opencv_contrib-4.2.0/modules/img_hash linked by target "opencv_img_hash" in directory /home/sree/Downloads/opencv_contrib-4.2.0/modules/img_hash linked by target "opencv_sfm" in directory /home/sree/Downloads/opencv_contrib-4.2.0/modules/sfm linked by target "opencv_sfm" in directory /home/sree/Downloads/opencv_contrib-4.2.0/modules/sfm linked by target "opencv_annotation" in directory /home/sree/Downloads/opencv-4.2.0/apps/annotation linked by target "opencv_visualisation" in directory /home/sree/Downloads/opencv-4.2.0/apps/visualisation linked by target "opencv_interactive-calibration" in directory /home/sree/Downloads/opencv-4.2.0/apps/interactive-calibration linked by target "opencv_version" in directory /home/sree/Downloads/opencv-4.2.0/apps/version CUDA_nppicc_LIBRARY (ADVANCED) linked by target "opencv_world" in directory /home/sree/Downloads/opencv-4.2.0/modules/world linked by target "opencv_world" in directory /home/sree/Downloads/opencv-4.2.0/modules/world linked by target "opencv_img_hash" in directory /home/sree/Downloads/opencv_contrib-4.2.0/modules/img_hash linked by target "opencv_img_hash" in directory /home/sree/Downloads/opencv_contrib-4.2.0/modules/img_hash linked by target "opencv_sfm" in directory /home/sree/Downloads/opencv_contrib-4.2.0/modules/sfm linked by target "opencv_sfm" in directory /home/sree/Downloads/opencv_contrib-4.2.0/modules/sfm linked by target "opencv_annotation" in directory /home/sree/Downloads/opencv-4.2.0/apps/annotation linked by target "opencv_visualisation" in directory /home/sree/Downloads/opencv-4.2.0/apps/visualisation linked by target "opencv_interactive-calibration" in directory /home/sree/Downloads/opencv-4.2.0/apps/interactive-calibration linked by target "opencv_version" in directory /home/sree/Downloads/opencv-4.2.0/apps/version CUDA_nppicom_LIBRARY (ADVANCED) linked by target "opencv_world" in directory /home/sree/Downloads/opencv-4.2.0/modules/world linked by target "opencv_world" in directory /home/sree/Downloads/opencv-4.2.0/modules/world linked by target "opencv_img_hash" in directory /home/sree/Downloads/opencv_contrib-4.2.0/modules/img_hash linked by target "opencv_img_hash" in directory /home/sree/Downloads/opencv_contrib-4.2.0/modules/img_hash linked by target "opencv_sfm" in directory /home/sree/Downloads/opencv_contrib-4.2.0/modules/sfm linked by target "opencv_sfm" in directory /home/sree/Downloads/opencv_contrib-4.2.0/modules/sfm linked by target "opencv_annotation" in directory /home/sree/Downloads/opencv-4.2.0/apps/annotation linked by target "opencv_visualisation" in directory /home/sree/Downloads/opencv-4.2.0/apps/visualisation linked by target "opencv_interactive-calibration" in directory /home/sree/Downloads/opencv-4.2.0/apps/interactive-calibration linked by target "opencv_version" in directory /home/sree/Downloads/opencv-4.2.0/apps/version CUDA_nppidei_LIBRARY (ADVANCED)

Please let me know how to resolve this issue