Closed LiliMeng closed 10 years ago
I changed some parameters in the /home/meng/opencv/cmake/OpenCVConfig.cmake,
OpenCV STATIC from OFF to ON, OpenCV_FOUND from FALSE to TRUE, it still has the following problem:
Build type not set (defaults to debug) -DCMAKE_BUILD_TYPE=Release for release -- OpenCV ARCH: -- OpenCV RUNTIME: -- OpenCV STATIC: ON CMake Warning at /home/meng/opencv/cmake/OpenCVConfig.cmake:161 (message): Found OpenCV Windows Pack but it has not binaries compatible with your configuration.
You should manually point CMake variable OpenCV_DIR to your build of OpenCV library. Call Stack (most recent call first): scenelib2/CMakeLists.txt:10 (FIND_PACKAGE)
-- OpenCV ARCH: -- OpenCV RUNTIME: -- OpenCV STATIC: ON CMake Warning at /home/meng/opencv/cmake/OpenCVConfig.cmake:161 (message): Found OpenCV Windows Pack but it has not binaries compatible with your configuration.
You should manually point CMake variable OpenCV_DIR to your build of OpenCV library. Call Stack (most recent call first): examples/CMakeLists.txt:14 (FIND_PACKAGE)
-- Configuring done -- Generating done -- Build files have been written to: /home/meng/workspace/MonoSLAM2/SceneLib2/build
It works good now :)
Using $ccmake .. to change OpenCV_DIR directory to your OpenCV_DIR build directory. :)
Hi LiliMeng, thank you for sharing this, hope everything works well on your side now.
Hi LiliMeng, what do your mean use ccmake .. Could you specific that?
Hi,
-DCMAKE_BUILD_TYPE=Release for release -- OpenCV ARCH: -- OpenCV RUNTIME: -- OpenCV STATIC: OFF CMake Warning at /home/meng/opencv/cmake/OpenCVConfig.cmake:161 (message): Found OpenCV Windows Pack but it has not binaries compatible with your configuration.
You should manually point CMake variable OpenCV_DIR to your build of OpenCV library. Call Stack (most recent call first): scenelib2/CMakeLists.txt:10 (FIND_PACKAGE)
CMake Error at scenelib2/CMakeLists.txt:10 (FIND_PACKAGE): Found package configuration file:
but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be NOT FOUND.
-- Configuring incomplete, errors occurred! See also "/home/meng/workspace/MonoSLAM2/SceneLib2/build/CMakeFiles/CMakeOutput.log".
Could anyone provide some suggestions? Thanks in advance!