Help required for colmap install on Linux

598 views
Skip to first unread message

Tom Trigano

unread,
Mar 25, 2019, 6:06:46 AM3/25/19
to COLMAP
Hi everyone, 

I have been experiencing some issues while installing COLMAP as a CLI on Linux (Ubuntu 16.04, CUDA 9). here is the message I got when running the cmake:

-- Found installed version of Eigen: /usr/lib/cmake/eigen3
-- Found required Ceres dependency: Eigen version 3.2.92 in /usr/include/eigen3
-- 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]
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   program_options
--   filesystem
--   graph
--   regex
--   system
--   unit_test_framework
-- Found Eigen
--   Includes : /usr/include/eigen3
-- Found FreeImage
--   Includes : /usr/include
--   Libraries : /usr/lib/x86_64-linux-gnu/libfreeimage.so
-- Found Glog
--   Includes : /usr/include
--   Libraries : /usr/lib/x86_64-linux-gnu/libglog.so
-- Found Glew
--   Includes : /usr/include
--   Libraries : /usr/lib/x86_64-linux-gnu/libGLEW.so
-- Found Qt
--   Module : /usr/lib/x86_64-linux-gnu/cmake/Qt5Core
--   Module : /usr/lib/x86_64-linux-gnu/cmake/Qt5OpenGL
--   Module : /usr/lib/x86_64-linux-gnu/cmake/Qt5Widgets
-- Found CGAL
--   Includes : /usr/include
--   Libraries : /usr/lib/x86_64-linux-gnu/libCGAL.so.11.0.1
-- Build type not specified, using Release
-- Enabling SIMD support
-- Enabling OpenMP support
-- Disabling interprocedural optimization
CMake Error at cmake/SelectCudaComputeArch.cmake:79 (if):
  if given arguments:

    "CUDA_VERSION" "VERSION_GREATER_EQUAL" "7.0"

  Unknown arguments specified
Call Stack (most recent call first):
  CMakeLists.txt:188 (include)


-- Configuring incomplete, errors occurred!

I tried to figure it out based on the log files, but so far haven't been successful. Has anyone encountered this issue ?


Thomas Drebert

unread,
Mar 25, 2019, 6:18:13 AM3/25/19
to col...@googlegroups.com
Hello,

looks like an Error with your cuda installation.
Try the Nvidia Tool nvidia-smi in the command line to see information about your cuda

regards

--
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/d8bca7c0-b59d-48e9-9a50-37c1bd2c1e4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tom Trigano

unread,
Mar 25, 2019, 9:05:19 AM3/25/19
to COLMAP
Hi, 

Thanks for your answer. However, I think CUDA is ok, since nvidia-smi returns this

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.130                Driver Version: 384.130                   |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Tesla K80           Off  | 00000000:00:04.0 Off |                    0 |
| N/A   38C    P8    26W / 149W |     16MiB / 11439MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   1  Tesla K80           Off  | 00000000:00:05.0 Off |                    0 |
| N/A   54C    P8    30W / 149W |      0MiB / 11439MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1796      G   /usr/lib/xorg/Xorg                            15MiB |
+-----------------------------------------------------------------------------+

and nvcc returns this:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:03_CDT_2017
Cuda compilation tools, release 9.0, V9.0.176

Any ideas ? I forgot to mention that I tried to install it on a google virtual instance, don't know if this is related

regards

Thomas Drebert

unread,
Mar 25, 2019, 11:54:12 AM3/25/19
to col...@googlegroups.com
Hello,

@ Johannes:
Is at line 82 a Line like this missing?
list(APPEND CUDA_ALL_GPU_ARCHITECTURES "3.7")

regards   


Johannes Schönberger

unread,
Mar 26, 2019, 9:14:32 AM3/26/19
to col...@googlegroups.com
Checkout the latest commit in the dev branch. The error you see is an issue with an old CMake version. The latest commit should be backwards compatible. Let me know if it doesn't work.

Cheers, Johannes
> >>> To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/d8bca7c0-b59d-48e9-9a50-37c1bd2c1e4b%40googlegroups.com <https://groups.google.com/d/msgid/colmap/d8bca7c0-b59d-48e9-9a50-37c1bd2c1e4b%40googlegroups.com?utm_medium=email&utm_source=footer>.
> >>> For more options, visit https://groups.google.com/d/optout.
>
> > --
> > 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/42221c4b-e89b-40f8-a0d4-d7ba94f810e5%40googlegroups.com <https://groups.google.com/d/msgid/colmap/42221c4b-e89b-40f8-a0d4-d7ba94f810e5%40googlegroups.com?utm_medium=email&utm_source=footer>.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/CANn%2B32h%3DscfsNn_NiPpMsXFinVNg6Gs0n_93X3KLE-1NgMH1yA%40mail.gmail.com <https://groups.google.com/d/msgid/colmap/CANn%2B32h%3DscfsNn_NiPpMsXFinVNg6Gs0n_93X3KLE-1NgMH1yA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Tom Trigano

unread,
Mar 26, 2019, 1:16:31 PM3/26/19
to COLMAP
Indeed the problem was with with cmake...

Somehow making a checkout did not help, so I tweaked a bit the .cmake which configures CUDA ; when replacing everywhere VERSION_GREATER_EQUAL with VERSION_GREATER (and adjusting the version number accordingly), the compilation succeeded without any problem and it now seems to run smoothly.

Thanks a lot for all your help !
Reply all
Reply to author
Forward
0 new messages