imgproc.o compilation error (Bug #1777)
Description
I am not a programmer but will try my best to describe this.
uname -a
Linux me-desktop 2.6.32-40-generic #87-Ubuntu SMP Tue Mar 6 00:56:56 UTC 2012 x86_64 GNU/Linux
= Ubuntu Linux 10.04, 64 bit, up-to-date
Installed successfully:
NVIDIA-Linux-x86_64-285.05.33.run
cudatoolkit_4.1.28_linux_64_ubuntu10.04.run
gpucomputingsdk_4.1.28_linux.run
Test work well.
make error:
[ 73%] Building CXX object modules/gpu/CMakeFiles/opencv_gpu.dir/src/imgproc.o
/home/me/OpenCV-2.3.1/modules/gpu/src/imgproc.cpp: In function ‘void cv::gpu::copyMakeBorder(const cv::gpu::GpuMat&, cv::gpu::GpuMat&, int, int, int, int, const cv::Scalar&, cv::gpu::Stream&)’:
/home/me/OpenCV-2.3.1/modules/gpu/src/imgproc.cpp:344: warning: dereferencing type-punned pointer will break strict-aliasing rules
/home/me/OpenCV-2.3.1/modules/gpu/src/imgproc.cpp: In function ‘void cv::gpu::rectStdDev(const cv::gpu::GpuMat&, const cv::gpu::GpuMat&, cv::gpu::GpuMat&, const cv::Rect&, cv::gpu::Stream&)’:
/home/me/OpenCV-2.3.1/modules/gpu/src/imgproc.cpp:762: error: cannot convert ‘const float*’ to ‘const Npp64f*’ for argument ‘3’ to ‘NppStatus nppiRectStdDev_32s32f_C1R(const Npp32s*, int, const Npp64f*, int, Npp32f*, int, NppiSize, NppiRect)’
make2: * [modules/gpu/CMakeFiles/opencv_gpu.dir/src/imgproc.o] Error 1
make1: [modules/gpu/CMakeFiles/opencv_gpu.dir/all] Error 2
make: ** [all] Error 2
Happens with both:
OpenCV-2.3.0.tar.bz2
OpenCV-2.3.1a.tar.bz2
~/OpenCV-2.3.1$ cmake D WITH_CUDA=ON . Extracting svn version, please wait...
-
-- SVNVERSION: exported
-- Detected version of GNU GCC: 44 (404)
-- checking for module 'gstreamer-base-0.10'
-- package 'gstreamer-base-0.10' not found
-- checking for module 'gstreamer-app-0.10'
-- package 'gstreamer-app-0.10' not found
-- checking for module 'gstreamer-video-0.10'
-- package 'gstreamer-video-0.10' not found
-- 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
-- Found OpenEXR: /usr/lib/libIlmImf.so
-- Use NumPy headers from: /usr/lib/python2.6/dist-packages/numpy/core/include
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named sphinx
-- CUDA detected: 4.1
-- CUDA NVCC target flags: gencode;arch=compute_11,code=sm_11;-gencode;arch=compute_12,code=sm_12;-gencode;arch=compute_13,code=sm_13;-gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_20,code=sm_21;-gencode;arch=compute_20,code=compute_20 Parsing 'cvconfig.h.cmake'
-
--
-- General configuration for opencv 2.3.1 =====================================
--
-- Built as dynamic libs?: YES
-- Compiler: /usr/bin/c++
-- C++ flags (Release): Wall -Wno-long-long -pthread -ffunction-sections -O3 -DNDEBUG -fomit-frame-pointer -msse -msse2 -DNDEBUG C++ flags (Debug):
-Wall -Wno-long-long -pthread -ffunction-sections -g -O0 -DDEBUG -D_DEBUG -ggdb3 Linker flags (Release):
-
-- Linker flags (Debug):
--
-- GUI:
-- GTK+ 2.x: YES
-- GThread: YES
--
-- Media I/O:
-- ZLib: YES
-- JPEG: TRUE
-- PNG: TRUE
-- TIFF: TRUE
-- JPEG 2000: TRUE
-- OpenEXR: YES
-- OpenNI: NO
-- OpenNI PrimeSensor Modules: NO
-- XIMEA: NO
--
-- Video I/O:
-- DC1394 1.x: NO
-- DC1394 2.x: NO
-- FFMPEG: YES
-- codec: YES
-- format: YES
-- util: YES
-- swscale: YES
-- gentoo-style: YES
-- GStreamer: NO
-- UniCap: NO
-- PvAPI: NO
-- V4L/V4L2: 1/1
-- Xine: NO
--
-- Other third-party libraries:
-- Use IPP: NO
-- Use TBB: NO
-- Use ThreadingFramework: NO
-- Use Cuda: YES
-- Use Eigen: NO
--
-- Interfaces:
-- Python: YES
-- Python interpreter: /usr/bin/python2.6 B (ver 2.6) Python numpy: YES
-
-- Java: NO
--
-- Documentation:
-- Sphinx: NO
-- PdfLaTeX compiler: /usr/bin/pdflatex
-- Build Documentation: NO
--
-- Tests and samples:
-- Tests: YES
-- Examples: YES
--
-- Install path: /usr/local
--
-- cvconfig.h is in: /home/me/OpenCV-2.3.1
-- -----------------------------------------------------------------
--
CMake Warning at CMakeLists.txt:1755 (message):
The source directory is the same as binary directory. "make clean" may
damage the source tree
-- Configuring done
-- Generating done
-- Build files have been written to: /home/me/OpenCV-2.3.1
History
Updated by Marina Kolpakova almost 13 years ago
OpenCV 2.3 does not support CUDA 4.1. We have added support of CUDA 4.1 in upcoming 2.4 version. You can try branch 2.4 beta or current trunk version.
- Status changed from Open to Cancelled
- Category changed from imgproc, video to gpu (cuda)
- Assignee set to Marina Kolpakova
Updated by Andrey Kamaev almost 13 years ago
- Priority changed from Blocker to Low
- Target version set to 2.4.0