Ask Your Question

Revision history [back]

Error building opencv with sfm module

Hy,

I have download the opencv and opencv_contrib sources from git and I'm trying to build opencv with the sfm module. I have already download, build and install Eigen, gflags, glog and ceres.

When building opencv I obtain the following log in cmake-gui windows :

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: C:/Program Files (x86)/gflags/lib/cmake/gflags Detected gflags version: 2.2.2 Found required Ceres dependency: Eigen version 3.3.7 in D:/dev/lib/eigen-3.3.7 Found installed version of glog: D:/dev/lib/glog/out Detected glog version: 0.4.0 Found required Ceres dependency: glog Found installed version of gflags: D:/dev/lib/gflags/out Detected gflags version: 2.2.2 Found required Ceres dependency: gflags Found Ceres version: 2.0.0 installed in: C:/Program Files (x86)/Ceres with components: [EigenSparse, SparseLinearAlgebraLibrary, SchurSpecializations] Checking SFM deps... FALSE Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags

Can anyone help me with this issue ?

From what I understand it says that it found gflags and glog for Ceres but not for the sfm module directly. I change a little bit the cmakelist file of the sfm module after this to split the gflagfs and glog check and find that the error comes from glog only : Checking SFM deps gflags... TRUE Checking SFM deps glog... FALSE