How do I build example_sfm_scene_reconstruction?

asked 2016-10-20 18:50:26 -0500

grendell gravatar image

I am trying to evaluate the opencv_contrib/scene_reconstruction sample, but cannot figure out how to compile it on OSX. I have cloned opencv 3.1.0 and opencv_contrib 3.1.0.

Here is my current cmake command, run from ~/projects/opencv/build:

cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=/Users/gwendell/projects/opencv_contrib/modules -D BUILD_EXAMPLES=ON -D BUILD_DOCS=ON ..

sfm is listed in the modules to be built:

--   OpenCV modules:
--     To be built:                 core flann imgproc ml photo reg surface_matching video dnn fuzzy imgcodecs shape videoio highgui objdetect plot superres ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib datasets java rgbd stereo structured_light tracking videostab xfeatures2d ximgproc aruco optflow sfm stitching python2

After running make, bin has 108 example_* executables, as well as opencv_test_sfm, but not example_sfm_scene_reconstruction. Am I missing a cmake flag, or some other configuration? Thank you in advance.

edit retag flag offensive close merge delete

Comments

you need glog and gflags

LBerger gravatar imageLBerger ( 2016-10-21 03:32:34 -0500 )edit

I have installed both via homebrew. I don't believe sfm was showing up in the list to be built before I had them installed. Thanks, though!

grendell gravatar imagegrendell ( 2016-10-21 12:34:30 -0500 )edit

I compiled and installed both from source just to confirm. Same results. I have captured the output of cmake and make here. Thanks again.

grendell gravatar imagegrendell ( 2016-10-25 18:14:23 -0500 )edit

I am also facing the same issue

shanmukhananda gravatar imageshanmukhananda ( 2017-12-20 02:39:50 -0500 )edit