Ask Your Question
0

unknown cmake command "ocv_clear_vars"

asked 2014-02-21 06:12:45 -0600

Mahadeva Prasad M gravatar image

updated 2014-02-21 06:26:41 -0600

berak gravatar image

Dear All,

I am getting following errors while installing opencv 2.4.8 on Ubuntu 13.10. Please help me in overcoming above issues.

  1. cmake error at CMakeLists.txt:62 (include) include could not find load vile: CMake/openCVUtils.cmake
  2. Cmake error at CMakeLists.txt :64 (OCV_clear_vars); unknown CMake command "OCV_clear_vars".

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2014-02-22 06:13:07 -0600

1)In the CMakeLists.txt make sure the file name is "OpenCVUtils.cmake" NOT "openCVUtils.cmake"

and

2)inside OpenCVUtils.cmake make sure the command is "ovc_clear_vars" NOT "OCV_clear_vars".

If you are fine with installing opencv-2.4.6.1,here's a link to do it in a very easy manner:Click here

Hope this helps you:)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-02-21 06:12:45 -0600

Seen: 4,270 times

Last updated: Feb 22 '14