LNK error for MSVC CUDA

asked 2018-04-19 13:13:20 -0500

jnracv gravatar image

Hi there, I was building a project in MSVC and encountered this linker error. I have looked for a solution online but with no success. I was wondering if the "cudabgsegm(version#).lib" is in any previous (to v. 3.4.1) versions of opencv or if I may just not be building it correctly. I don't seem to have the directory structure after C:\opencv\build\ below. Thanks so much!

error LNK1181: cannot open input file 'C:\opencv\build\lib\Release\opencv_cudabgsegm341.lib'

Best James

edit retag flag offensive close merge delete

Comments

"C:\opencv\build\" -- please clarify: are you trying with prebuilt libs ?

(those don't come with any cuda support)

berak gravatar imageberak ( 2018-04-19 13:22:41 -0500 )edit

IF you built your own libs with cuda sdk, locally, you'll have to look at C:\opencv\build\install

berak gravatar imageberak ( 2018-04-19 13:25:00 -0500 )edit

Thanks for having a look @berak! It didn't have prebuilt libs... I had to build them but didn't check off the box on cmake to include them in the "all build" for MSVC. All good now!

jnracv gravatar imagejnracv ( 2018-04-19 13:54:19 -0500 )edit