Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 483634

Summary: =media-libs/opencv-2.4.5 with >=dev-util/nvidia-cuda-toolkit-5.5 - The following variables are used in this project, but they are set to NOTFOUND. -/ /- CUDA_npp_LIBRARY (ADVANCED)
Product: Gentoo Linux Reporter: Alan Smithee <s.rohmen>
Component: [OLD] LibraryAssignee: Andreas K. Hüttel <dilfridge>
Status: RESOLVED FIXED    
Severity: normal CC: kde
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://answers.opencv.org/question/14326/problem-of-building-opencv-245-with-cuda-55-rc/
Whiteboard:
Package list:
Runtime testing required: ---

Description Alan Smithee 2013-09-04 20:10:38 UTC
If ones try to install media-libs/opencv-2.4.5 with >=dev-util/nvidia-cuda-toolkit-5.5 (currently ~arch) installed, you will experience the following cmake error:

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 /var/tmp/portage/media-libs/opencv-2.4.5/work/opencv-2.4.5/modules/core
    linked by target "opencv_gpu" in directory /var/tmp/portage/media-libs/opencv-2.4.5/work/opencv-2.4.5/modules/gpu
    linked by target "opencv_nonfree" in directory /var/tmp/portage/media-libs/opencv-2.4.5/work/opencv-2.4.5/modules/nonfree

-- Configuring incomplete, errors occurred!

According to the opencv guys the version is not compatible:
http://answers.opencv.org/question/14326/problem-of-building-opencv-245-with-cuda-55-rc/

this incompatibility should be reflected in the ebuild, what is not the case:
cuda? ( >=dev-util/nvidia-cuda-toolkit-4.2 )
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-09-05 09:43:28 UTC
Please comment with the output of `emerge --info` and attach the full build log.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-09-06 13:09:45 UTC
"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."
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2013-09-06 16:40:09 UTC
Please update to opencv-2.4.6.1 where this is fixed.
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2013-09-06 16:40:34 UTC
PS. dependencies have been fixed in 2.4.5