Ask Your Question
0

Building OpenCV for GPU with CMake - cannot open file

asked 2013-06-18 12:32:25 -0600

1'' gravatar image

I'm building OpenCV for CUDA 5.0 with CMake and Visual Studio 2010 based on this tutorial and many of the sub-builds are failing with the error

30>LINK : fatal error LNK1104: cannot open file '..\..\lib\Debug\opencv_gpuarithm249d.lib'

How can I debug or fix this error?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-06-19 01:07:21 -0600

Vladislav Vinogradov gravatar image

It is a bug : http://code.opencv.org/issues/3103

It will be fixed soon.

You can fix it by enabling WITH_CUBLAS and WITH_CUFFT CMake options.

BTW, you use master branch. This is a developer branch for next major release. It can be a bit unstable. If you want to use stable version of OpenCV use 2.4 branch or 2.4.5 release.

edit flag offensive delete link more

Comments

Thanks, and thanks for the tip regarding the master branch also!

1'' gravatar image1'' ( 2013-06-19 13:18:53 -0600 )edit

Now I'm getting a whole bunch of sub-builds failing with fatal error C1033: cannot open program database '[OpenCV path]\bin\debug\opencv_[library name]249d.pdb' and error LNK2019: unresolved external symbol "public: static struct CUstream_st * __cdecl cv::gpu::StreamAccessor::getStream(class cv::gpu::Stream const &)".

1'' gravatar image1'' ( 2013-06-19 15:59:22 -0600 )edit

Can you share the link to download source code for OpenCv 2.4.5?

I am building it with CUDA 5.5 + Visual Studio 2012 Professional + Windows 8

Regards,

Tariq gravatar imageTariq ( 2013-11-07 11:27:57 -0600 )edit

Question Tools

Stats

Asked: 2013-06-18 12:32:25 -0600

Seen: 925 times

Last updated: Jun 19 '13