I had installed ***opencv from ubuntu 12.10 repository (libopencv-*)***
and had the same problem. Couldn't solve it with `export
OpenCV_DIR=/usr/share/OpenCV/` (since my OpenCVConfig.cmake whas there).
It was solved when I changed some lines on the OpenCVConfig.cmake file:

    # ======================================================
    # Include directories to add to the user project:
    # ======================================================
    
    # Provide the include directories to the caller
    
    #SET(OpenCV_INCLUDE_DIRS 
"${OpenCV_INSTALL_PATH}/include/opencv;${OpenCV_INSTALL_PATH}/include")
    
    SET(OpenCV_INCLUDE_DIRS "/usr/include/opencv;/usr/include/opencv2")
    INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS})
    
    # ======================================================
    # 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_INSTALL_PATH}/lib")
    
    SET(OpenCV_LIB_DIR "/usr/lib")
    
    LINK_DIRECTORIES(${OpenCV_LIB_DIR})

And that worked on my Ubuntu 12.10. Remember to add the
`target_link_libraries(yourprojectname ${OpenCV_LIBS})` in your
CMakeLists.txt.

Posted originally here http://stackoverflow.com/questions/8711109/could-
not-find-module-findopencv-cmake-error-in-configuration-process/22239942

** Also affects: opencv
   Importance: Undecided
       Status: New

** No longer affects: opencv

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1167014

Title:
  MIssing cmake files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/opencv/+bug/1167014/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to