Could not find module FindOpenCV.cmake when compiling
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
opencv (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Quoted from here: http://
I had installed opencv from ubuntu 12.10 repository (libopencv-)* and had this problem:
I wrote a CMakeLists.txt for a project in C++ (using ROS), which uses OpenCV libraries. When I try to create the project using cmake, I get the next configuration problem:
"
CMake Error at CMakeLists.txt:15 (find_package):
Could not find module FindOpenCV.cmake or a configuration file for package
OpenCV.
Adjust CMAKE_MODULE_PATH to find FindOpenCV.cmake or set OpenCV_DIR to the
directory containing a CMake configuration file for OpenCV. The file will
have one of the following names:
OpenCVConfi
opencv-
"
Couldn't solve it with export OpenCV_
# =======
# Include directories to add to the user project:
# =======
# Provide the include directories to the caller
#SET(OpenCV_
SET(OpenCV_
INCLUDE_
# =======
# Link directories to add to the user project:
# =======
# Provide the libs directory anyway, it may be needed in some cases.
#SET(OpenCV_LIB_DIR "${OpenCV_
SET(OpenCV_LIB_DIR "/usr/lib")
LINK_DIRECTORIE
And that worked on my Ubuntu 12.10. Remember to add the target_
Changed in opencv (Ubuntu): | |
assignee: | nobody → Anushree (anushrivb) |
status: | New → Confirmed |
Changed in opencv (Ubuntu): | |
assignee: | Anushree (anushrivb) → nobody |
status: | Confirmed → New |
May be related to /bugs.launchpad .net/ubuntu/ +source/ opencv/ +bug/1167014
https:/