Ask Your Question

cmake error

asked 2014-10-01 10:55:18 -0500

pn gravatar image

updated 2014-10-03 03:57:17 -0500


I am new to opencv and I've just got opencv installed. I'm trying to get this simple example working, but I'm getting a compilation error. Any leads will be highly appreciated.

CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find OpenCV (missing: OpenCV_INCLUDE_DIR) (found version "3.0.0")
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindOpenCV.cmake:300 (find_package_handle_standard_args)
  CMakeLists.txt:3 (find_package)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-10-01 11:12:39 -0500

boaz001 gravatar image

To the CMakeLists.txt you created add:

include_directories( ${OpenCV_INCLUDE_DIRS} )
edit flag offensive delete link more


This will only work if you have done a make install of your openCV installation. Else make the OpenCV_INCLUDE_DIRS system variable first and assign it to your include folder location. This can simply be done by adding the following line in front of this.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-10-03 03:59:22 -0500 )edit

Question Tools


Asked: 2014-10-01 10:55:18 -0500

Seen: 971 times

Last updated: Oct 03 '14