Build OpenCV source code with CUDA support

asked 2015-10-24 00:29:02 -0500

I am building opencv source code according to the link.

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?


edit retag flag offensive close merge delete