SFM samples build error

asked 2020-02-19 15:00:52 -0500

ani gravatar image
 ~/SDK/OpenCV/4.2/opencv_contrib-master/modules/sfm$ cmake .
-- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
-- Found installed version of gflags: /usr/local/lib/cmake/gflags
-- Detected gflags version: 2.2.2
-- Found required Ceres dependency: Eigen version 3.3.4 in /usr/include/eigen3
-- Found installed version of glog: /usr/local/lib/cmake/glog
-- Detected glog version: 0.4.0
-- Found required Ceres dependency: glog
-- Found required Ceres dependency: gflags
-- Found Ceres version: 2.0.0 installed in: /usr/local with components: [EigenSparse, SparseLinearAlgebraLibrary, LAPACK, SuiteSparse, CXSparse, SchurSpecializations]
-- Checking SFM deps... TRUE
-- Module opencv_sfm disabled because the following dependencies are not found: Eigen
CMake Error at CMakeLists.txt:36 (ocv_module_disable):
  Unknown CMake command "ocv_module_disable".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.10)

  should

     be added at the top of the file.  The version specified may be lower
      if you wish to support older CMake versions for this project.  For more
      information run "cmake --help-policy CMP0000".
    This warning is for project developers.  Use -Wno-dev to suppress it.

    -- Configuring incomplete, errors occurred!
    See also "/home/nj/SDK/OpenCV/4.2/opencv_contrib-master/modules/sfm/CMakeFiles/CMakeOutput.log".
    See also "/home/nj/SDK/OpenCV/4.2/opencv_contrib-master/modules/sfm/CMakeFiles/CMakeError.log".


-------------------------------------------------------------------------------------------

I have built all the dependencies for running opencv correctly but the cmake is still throwing the error "Module opencv_sfm disabled because the following dependencies are not found: Eigen".

But it is also showing "-- Found required Ceres dependency: Eigen version 3.3.4 in /usr/include/eigen3". How do we solve this.

edit retag flag offensive close merge delete

Comments

what are you doing exactly? That's not cmake output for opencv because this error should not be Unknown CMake command "ocv_module_disable".

my cmake output for opencv and opencv_contrib with samples is here

LBerger gravatar imageLBerger ( 2020-02-20 00:27:31 -0500 )edit