Hi everybody. I'm trying to compile OpenCV from source in Visual Studio 2012 with CUDA 5.0.
First of all I added CUDA to Visual Studio 2012 following this guide: http://blog.norture.com/2012/10/gpu-parallel-programming-in-vs2012-with-nvidia-c\ uda/#comments Everything is ok and i can compile my CUDA project.
Then, using CMake, I've created the solution for buildig OpenCV in Visual Studio 2012 and now my problems truly begin.
During CMake configuration/generation CUDA 5.0 is correctly found nevertheless Visual Studio projects hold no information about Cuda compilation.
So I specified in Custom Buil for opencv_core project CUDA 5.0 and "CUDA C/C++" in matrix_operations.cu as element type.
when I build the project I have several errors like: error C2065: 'greater_equal': undeclared identifier I:...\opencv_2_4_3\modules\core\src\gpumat.cpp error C2065: 'less_equal': undeclared identifier I:...\opencv_2_4_3\modules\core\src\gpumat.cpp
So I added
include <functional>
and I can compile this project but I think this is only a temporary solution.
When I compile opencv_gpu come the bigger problem: For example when i compile fgd_bgfg.cu I receive the following errors error C2061: errore di sintassi: identificatore 'ParameterType' i:...\opencv_2_4_3\modules\gpu\include\opencv2\gpu\device\functional.hpp error C2039: 'ParameterType': non è un membro di 'cv::gpu::device::TypeTraits ' i:..\opencv_2_4_3\modules\gpu\include\opencv2\gpu\device\functional.hpp
And i can't get rid of it!
Can you please give me an help? I need to compile OpenCv as soon as possibile :(
I read several other post on the topic but no one has my very problem http://answers.opencv.org/question/3601/243rc-visual-studio-2012-cuda-50/
Thank you for the help