Revision 7436 cmake scripts broken (Bug #1648)
Description
The cmake scripts in Rev. 7436 never check for CUDA. They don't even offer it as a choice. As a result, cv::gpu cannot be built.
The tarball from sourceforge (2.3.1a) offers CUDA and attempts to build. It fails miserably:
[ 76%] Building CXX object modules/gpu/CMakeFiles/opencv_gpu.dir/src/graphcuts.o
/usr/local/src/OpenCV-2.3.1/modules/gpu/src/graphcuts.cpp: In function ‘void cv::gpu::graphcut(cv::gpu::GpuMat&, cv::gpu::GpuMat&, cv::gpu::GpuMat&, cv::gpu::GpuMat&, cv::gpu::GpuMat&, cv::gpu::GpuMat&, cv::gpu::GpuMat&, cv::gpu::Stream&)’:
/usr/local/src/OpenCV-2.3.1/modules/gpu/src/graphcuts.cpp:80: error: cannot convert ‘unsigned char*’ to ‘NppiGraphcutState*’ for argument ‘11’ to ‘NppStatus nppiGraphcut_32s8u(Npp32s*, Npp32s*, Npp32s*, Npp32s*, Npp32s*, int, int, NppiSize, Npp8u*, int, NppiGraphcutState*)’
make2: * [modules/gpu/CMakeFiles/opencv_gpu.dir/src/graphcuts.o] Error 1
make1: [modules/gpu/CMakeFiles/opencv_gpu.dir/all] Error 2
make: ** [all] Error 2
Using CUDA 4.1
sarah@energeia:/usr/local/src/OpenCV-2.3.1/release$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2011 NVIDIA Corporation
Built on Thu_Jan_12_14:41:45_PST_2012
Cuda compilation tools, release 4.1, V0.2.1221
History
Updated by Sarah Rosen about 13 years ago
Some additional information:
sarah@energeia:/usr/local/src/opencv/trunk/opencv/release$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON -D WITH_IPP=ON -D WITH_CUDA=ON -D WITH_CUBLAS=ON -D WITH_CUFFT=ON -D WITH_TBB=ON .. -- Detected version of GNU GCC: 44 (404) -- Extracting svn version, please wait... -- SVNVERSION: svn:7436M -- Found OpenEXR: /usr/lib64/libIlmImf.so -- checking for module 'libdc1394-2' -- package 'libdc1394-2' not found -- checking for module 'libdc1394' -- package 'libdc1394' not found -- checking for module 'libv4l1' -- package 'libv4l1' not found -- Use NumPy headers from: /usr/lib/python2.6/dist-packages/numpy/core/include -- Found Sphinx 0.6.4: /usr/bin/sphinx-build -- Found apache ant 1.7.1: /usr/bin/ant -- found IPP: 7.0.205 [7.0] -- at: /opt/intel/composer_xe_2011_sp1.8.273/ipp -- IPP libs: libippvm_l.a;libippcc_l.a;libippcv_l.a;libippi_l.a;libipps_l.a;libippcore_l.a CMake Error at modules/core/CMakeLists.txt:10 (OCV_CUDA_COMPILE): Unknown CMake command "OCV_CUDA_COMPILE".
Updated by Andrey Kamaev about 13 years ago
OpenCV 2.3.1a requires CUDA 4.0. I can not be compiled with CUDA 4.1.
Error with r7436 is not reproducible. Remove all files from your release
folder and make clean build.
- Status changed from Open to Cancelled
- Category set to build/install
Updated by Andrey Kamaev almost 13 years ago
- Target version set to 2.4.0
- Assignee set to Andrey Kamaev