Ask Your Question
0

cmake error

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

pn gravatar image

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

Hello,

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.

http://docs.opencv.org/doc/tutorials/introduction/linux_gcc_cmake/linux_gcc_cmake.html#create-a-cmake-file

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
1

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

boaz001 gravatar image

To the CMakeLists.txt you created add:

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

Comments

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.

 OpenCV_INCLUDE_DIRS=/path/to/include/folder/
 export OpenCV_INCLUDE_DIRS
StevenPuttemans gravatar imageStevenPuttemans ( 2014-10-03 03:59:22 -0600 )edit

Question Tools

Stats

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

Seen: 2,034 times

Last updated: Oct 03 '14