Running Sample Programs in Visual Studio 2013

asked 2015-11-05 03:17:22 -0600

MartinTarrou gravatar image

Hey All, I have OpenCV working in Visual Studio 2013 and ran a test program with my webcam. I'd like to start working with motion tracking so I thought to play around with the Optical_Flow example which is contained in the samples folder. However, putting the cpp file into my project led to a whole hunt for why cudaarithm.hpp and cudaoptflow.hpp couldn't be found. I eventually put the headers, and the folders they were originally contained in with the same include directory as the other headers (i.e. core.hpp) but now I get a lot of LNK2019 errors which I frankly don't understand. Any advice on how exactly to run the sample code? Should I create a new project? Do I have to do some folder gymnastics?

Thanks in advance for the help.

edit retag flag offensive close merge delete

Comments

which sample was it exactly (there are 4 optflow related ones) ?

do you even want / have cuda support ?

what linking errors exactly ?

"Do I have to do some folder gymnastics?" - nooo !!

berak gravatar imageberak ( 2015-11-05 03:31:32 -0600 )edit