Ask Your Question
0

Is there a FindOpenCV.cmake that works?

asked 2012-10-29 11:46:51 -0600

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!

edit retag flag offensive close merge delete

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 ( 2012-10-29 14:08:43 -0600 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2014-01-22 16:30:27 -0600

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.

edit flag offensive delete link more

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 ( 2015-02-27 06:28:49 -0600 )edit

Question Tools

Stats

Asked: 2012-10-29 11:46:51 -0600

Seen: 2,120 times

Last updated: Jan 22 '14