Configure and compile COLMAP: ('all' Failed)

261 views
Skip to first unread message

abai...@gmail.com

unread,
May 25, 2018, 8:24:14 PM5/25/18
to COLMAP
Hi, I am familiar with using COLMAP on Windows, but have recently switched to Linux to take advantage of certain functionality of the software. I have followed instructions here, https://colmap.github.io/install.html , to build from source with Linux. Everything works fine, without errors, until I run "make" in the build directory. I have provided a print-out to aid in any help!


thepandyman@Laptop:~/colmap/build$ make
Scanning dependencies of target base
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/camera.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/camera_database.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/camera_models.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/camera_rig.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/database.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/database_cache.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/essential_matrix.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/gps.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/graph_cut.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/homography_matrix.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/image.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/image_reader.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/line.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/point2d.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/point3d.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/polynomial.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/pose.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/projection.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/reconstruction.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/reconstruction_manager.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/scene_clustering.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/scene_graph.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/similarity_transform.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/track.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/triangulation.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/undistortion.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/visibility_pyramid.cc.o
[ 10%] Building CXX object src/base/CMakeFiles/base.dir/warp.cc.o
[ 10%] Linking CXX static library libbase.a
[ 10%] Built target base
Scanning dependencies of target controllers
[ 10%] Building CXX object src/controllers/CMakeFiles/controllers.dir/automatic_reconstruction.cc.o

In file included from /home/thepandyman/colmap/src/./sfm/incremental_mapper.h:23:0,
                 from /home/thepandyman/colmap/src/./controllers/incremental_mapper.h:21,
                 from /home/thepandyman/colmap/src/controllers/automatic_reconstruction.cc:20:
/home/thepandyman/colmap/src/./optim/bundle_adjustment.h: In constructor ‘colmap::BundleAdjustmentOptions::BundleAdjustmentOptions()’:
/home/thepandyman/colmap/src/./optim/bundle_adjustment.h:67:20: error: ‘struct ceres::Solver::Options’ has no member named ‘num_linear_solver_threads’
     solver_options.num_linear_solver_threads = -1;
                    ^
src/controllers/CMakeFiles/controllers.dir/build.make:62: recipe for target 'src/controllers/CMakeFiles/controllers.dir/automatic_reconstruction.cc.o' failed
make[2]: *** [src/controllers/CMakeFiles/controllers.dir/automatic_reconstruction.cc.o] Error 1
CMakeFiles/Makefile2:259: recipe for target 'src/controllers/CMakeFiles/controllers.dir/all' failed
make[1]: *** [src/controllers/CMakeFiles/controllers.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Steven Meyers

unread,
May 25, 2018, 11:39:09 PM5/25/18
to COLMAP
What distro are you using? Do you have an NVIDIA card and CUDA dependencies?

Johannes Schönberger

unread,
May 26, 2018, 1:52:51 AM5/26/18
to col...@googlegroups.com
Hi,

Please checkout the latest commit on the dev branch. This bug was fixed and is originally caused by Ceres changing its API. 

Cheers,
Johannes
--
You received this message because you are subscribed to the Google Groups "COLMAP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to colmap+un...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/33fbc51e-5e26-4b51-90c5-3f6955d2554b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Baird

unread,
May 27, 2018, 12:49:51 AM5/27/18
to col...@googlegroups.com
Hello again,

Thank you for the quick response. I have removed everything and started from scratch only to encounter the same issue, even with the most recent commits to the repo. I have explored the commits and cannot determine what exactly might be causing the issue on my end. I am using Ubuntu 16.04.4 LTS  xenial. 

To answer an earlier question about CUDA:

    thepandyman@Laptop:~$ nvcc --version
       nvcc: NVIDIA (R) Cuda compiler driver
       Copyright (c) 2005-2015 NVIDIA Corporation
       Built on Tue_Aug_11_14:27:32_CDT_2015
       Cuda compilation tools, release 7.5, V7.5.17

    thepandyman@Laptop:~$ sudo apt install nvidia-cuda-toolkit
       nvidia-cuda-toolkit is already the newest version (7.5.18-0ubuntu1).


Regards,
Andrew

To unsubscribe from this group and stop receiving emails from it, send an email to colmap+unsubscribe@googlegroups.com.

To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/33fbc51e-5e26-4b51-90c5-3f6955d2554b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "COLMAP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/colmap/WLKwcoEpdFU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to colmap+unsubscribe@googlegroups.com.

To post to this group, send email to col...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages