hanmekim / SceneLib2

SceneLib2 is an open-source C++ library for SLAM originally designed and implemented by Professor Andrew Davison at Imperial College London.
Other
359 stars 198 forks source link

SceneLib2 build errors #10

Closed LiliMeng closed 10 years ago

LiliMeng commented 10 years ago

Hi,

   All the previous installations before SceneLib2 worked good. After executing $cmake .. in the build directory of SceneLib2, the following errors occurred:

 Build type not set (defaults to debug)

-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:

/home/meng/opencv/cmake/OpenCVConfig.cmake

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!

LiliMeng commented 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

LiliMeng commented 10 years ago

It works good now :)

Using $ccmake .. to change OpenCV_DIR directory to your OpenCV_DIR build directory. :)

hanmekim commented 10 years ago

Hi LiliMeng, thank you for sharing this, hope everything works well on your side now.

zizhaozhang commented 9 years ago

Hi LiliMeng, what do your mean use ccmake .. Could you specific that?