First time here? Check out the FAQ!

Ask Your Question
1

Problem of building OpenCV 2.4.5 with Cuda 5.5 RC

asked May 31 '13

Gianluigi gravatar image

When I use cmake to configure, it will it cannot found CUDA_npp_LIBRARY

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_npp_LIBRARY (ADVANCED)
    linked by target "opencv_core" in directory /home/gianluigi/Lib/opencv-2.4.5/modules/core
    linked by target "opencv_gpu" in directory /home/gianluigi/Lib/opencv-2.4.5/modules/gpu
    linked by target "opencv_nonfree" in directory /home/gianluigi/Lib/opencv-2.4.5/modules/nonfree

I think this is caused by NVIDIA split the libnpp to libnppc, libnppi and libnpps in CUDA 5.5. Is there any way to fix this problem?

Preview: (hide)

3 answers

Sort by » oldest newest most voted
5

answered May 31 '13

cuda.geek gravatar image

NVIDIA divide npp into 3 libraries.

libnppc.so is general libnppi.so is for image processing libnpps.so is for signal processing

So, just a hack for now open your CMakeCache.txt and manually set it to your path. Like following //"npp" library CUDA_npp_LIBRARY:FILEPATH=/opt/cuda/lib64/libnppc.so;/opt/cuda/lib64/libnppi.so

I guess it'll be fixed in next version of cmake. Anyway we should workaround it in OpenCV.

Preview: (hide)

Comments

Thanks, it works!

Gianluigi gravatar imageGianluigi (Jun 3 '13)edit

Sorry, it can configure now, but it appear many error when I build it. Like, error: calling a __device__ function("AddMat") from a __host__ function("addMat") is not allowed detected during instantiation of "void arithm::addMat<T,D>(cv::gpu::PtrStepSzb, cv::gpu::PtrStepSzb, cv::gpu::PtrStepSzb, cv::gpu::PtrStepb, cudaStream_t) [with T=ushort, D=double]"

Gianluigi gravatar imageGianluigi (Jun 3 '13)edit
1

answered Jun 5 '13

Vladislav Vinogradov gravatar image

Compilation issues with CUDA 5.5 will be fixed in 2.4 branch and in the next release (2.4.6).

OpenCV 2.4.5 can be built only with CUDA 4.2 or 5.0.

Preview: (hide)
0

answered Jun 5 '13

the same question with you, wish to be solved in the later versions

Preview: (hide)

Question Tools

Stats

Asked: May 31 '13

Seen: 4,497 times

Last updated: Jun 05 '13