gpu module doesn't build on Mac 10.7.1 (Bug #1332)


Added by Tsung-Hsiang Chang over 13 years ago. Updated over 13 years ago.


Status:Done Start date:
Priority:Low Due date:
Assignee:Anatoly Baksheev % Done:

0%

Category:gpu (cuda)
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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

Revision e90aeb08
Added by Anatoly Baksheev over 13 years ago

1) ticket #1332
2) device layer utility

Revision cae44808
Added by Roman Donchenko over 11 years ago

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

Also available in: Atom PDF