Ask Your Question

PhonPanom's profile - activity

2015-10-24 00:37:56 -0600 asked a question Build OpenCV source code with CUDA support

I am building opencv source code according to the link. https://hemprasad.wordpress.com/2014/...

I created Visual Studio projects with CMake.

I have the errors as following.

Error 1 error LNK2001: unresolved external symbol "public: static class cv::cuda::GpuMat::Allocator * __cdecl cv::cuda::GpuMat::defaultAllocator(void)" (?defaultAllocator@GpuMat@cuda@cv@@SAPEAVAllocator@123@XZ) G:\Study\OpenCV\cuda\OpenCV\build\modules\world\frame_source.cpp.obj opencv_world

While debugging, I found that VS did not compile *.cu files at all.

In this reason, there are a lot of linkage errors.

Who can help me?

Thanks.