Colmap does not find libceres at runtime????

911 views
Skip to first unread message

christo...@gmail.com

unread,
Oct 18, 2017, 3:44:16 PM10/18/17
to COLMAP
I sucessfully built Colmap on my system but when I want to start Colmat the following error message comes up.
What to do ?
christoph@celsus:~/software/colmap/build$ /usr/local/bin/colmap
/usr/local/bin/colmap: error while loading shared libraries: libceres.so.1: cannot open shared object file: No such file or directory
code here...


But it compiled sucessfully before with the following seetings


-- Boost version: 1.62.0
-- Found the following Boost libraries:
--   program_options
--   filesystem
--   regex
--   system
--   unit_test_framework
-- Found Eigen3
--   Includes : /usr/local/include/eigen3
-- Found FreeImage
--   Includes : /usr/include
--   Libraries : /usr/lib/libfreeimage.so
-- Found Glog
--   Includes : /usr/local/include
--   Libraries : /usr/local/lib/libglog.a
-- Found installed version of Eigen: /usr/local/share/eigen3/cmake
-- Found required Ceres dependency: Eigen version 3.3.90 in /usr/local/include/eigen3
-- Found required Ceres dependency: glog
-- Found installed version of gflags: /usr/local/lib/cmake/gflags
-- Detected gflags version: 2.2.1
-- Found required Ceres dependency: gflags
-- Found Ceres version: 1.13.0 installed in: /usr/local with components: [LAPACK, SuiteSparse, SparseLinearAlgebraLibrary, CXSparse, SchurSpecializations, OpenMP]
-- Found Glew
--   Includes : /usr/include
--   Libraries : /usr/lib/x86_64-linux-gnu/libGLEW.so
-- Found Qt 5.7.1
-- Build type not specified, using RelWithDebInfo
-- Enabling OpenMP support
-- Disabling link-time optimization (-flto)
-- Enabling CUDA support (version: 9.0, archs: sm_30)
-- Enabling OpenGL support
-- Disabling profiling support
-- Configuring done
-- Generating done
-- Build files have been written to: /home/christoph/software/colmap/build


Has anyone an idea why this can happen? ceres of course is installed and libceres.so.1 can be found in /usr/local/lib !
Thanks in advance christoph

Johannes Schönberger

unread,
Oct 18, 2017, 5:49:45 PM10/18/17
to col...@googlegroups.com
Hi,

Is /usr/local/lib in your LD_LIBRARY_PATH? Otherwise, I suggest to link the static version of Ceres Solver into COLMAP.

Best,
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/b90736a7-190e-4d79-8787-1e4801ffeab0%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

christo...@gmail.com

unread,
Oct 20, 2017, 3:24:42 PM10/20/17
to COLMAP
Thank you for your reply I solved the issue by making a symbolic link to  /usr/lib/libceres.so.1 and colmap starts jipee... that was hard ... but  finally got it to work. I needed to update to cuda 9 cause apparently I compiled cuda 8 with gcc 4.9 and colmap didn't like it to much as debian 9 uses gcc 6.  But now finally all good! Thank you a lot for your effort. 
That seems to be a bug cause /usr/local/lib is in already in LD_LIBRARY_PATH. All my other compiled sofware workes nice and smooth. No complains :-).
Reply all
Reply to author
Forward
0 new messages