Ask Your Question
0

Is there a FindOpenCV.cmake that works?

asked Oct 29 '12

V.K gravatar image

The ones on the web are out of date and does not work. I am trying to include OpenCV with my project and it has to be via CMake.

The automatically generated build/OpenCVConfig.cmake does not work. Amogst other things, this .cmake file is looking for variable "MSVC_VERSION" which does not exist in my environment (even after running vcvarsall.bat)

HELP please!

Preview: (hide)

Comments

2

So it turns out it works fine if i build opencv myself. The out of the box version has issues.

V.K gravatar imageV.K (Oct 29 '12)edit

1 answer

Sort by » oldest newest most voted
0

answered Jan 22 '14

In my experience, the FindOpenCV.cmake files floating around are incompatible with OpenCV 2.4+. If that's the version of OpenCV you're working with, then try this one:

https://code.google.com/p/openfabmap/source/browse/branches/openfabmap2-dev/FindOpenCV.cmake?r=96

I've had some success with it when building on Linux with gcc. The project is licensed under GPLv3.

Preview: (hide)

Comments

I know it is almost a year from your answer, but the link you provided is no longer working. Could you please post another link to the aforementioned FindOpenCV.cmake? Thank you.

wagp11 gravatar imagewagp11 (Feb 27 '15)edit

Question Tools

Stats

Asked: Oct 29 '12

Seen: 2,144 times

Last updated: Jan 22 '14