gpu module doesn't build on Mac 10.7.1 (Bug #1332)
Description
Mac OS X 10.7.1 (64bit), gcc-4.2
I got the following error message while building OpenCV SVN and 2.3.1. I added a line "#include<algorithm>" in modules/gpu/src/cuda/canny.cu and the problem was fixed.
[ 84%] Building NVCC (Device) object modules/gpu/./cuda_compile_generated_canny.
cu.o
/Users/vgod/Downloads/opencv/opencv-svn/modules/gpu/src/cuda/canny.cu(466): error: namespace "std" has no member "swap"
1 error detected in the compilation of "/tmp/tmpxft_000104ec_00000000-10_canny.c
ompute_20.cpp1.ii".
CMake Error at CMakeFiles/cuda_compile_generated_canny.cu.o.cmake:256 (message):
Error generating file
/Users/vgod/Downloads/opencv/opencv-svn/build/modules/gpu/./cuda_compile_generated_canny.cu.o
Associated revisions
1) ticket #1332
2) device layer utility
Merge pull request #1332 from pengx17:2.4_fix_parallel
History
Updated by Anatoly Baksheev over 13 years ago
- Status changed from Open to Done
- (deleted custom field) set to fixed