I need to compile OpenCV 2.4.5 with Visual Studio 2012. In particular, I'm interested in compiling the gpu module with Cuda 5.0.
To enable CUDA compilation in VS2012, I followed this guide .
I use CMake to create a VS2012 solution, then for each .cu file I change the element type from "Custom build rule" to "CUDA C / C ++"
I can compile most of the project files, but in some files I have an unpleasant problem.
For example, fgd_bgfg.cu cause
error C2039: 'ParameterType': not a member ':: resume :: GPU device :: TypeTraits'
But in type_traits.hpp I can read
typedef typename type_traits_detail::Select<IsSimpleParameter<UnqualifiedType>::value, T, typename type_traits_detail::AddParameterType<T>::type>::type ParameterType;
This is a really annoying problem that I canβt get rid of!
I canβt believe that no one has already built opencv with VS2012 and GPU, some tips?
source share