ubuntu 安装 colmap

目录

一、安装colmap

二、报错解决

三、安装成功

四、colmap使用教程


一、安装colmap

参考安装:​​​​​​​chttps://blog.csdn.net/weixin_46132232/article/details/124211233

官方:COLMAP 官方information

二、报错解决

2.1 在安装colmap的时候 cmake ..出现下面报错,通过升级cmake得到解决(将原先的cmake 3.16 升级到最新版本cmake-3.24.3)

ubuntu 安装 colmap_第1张图片

 报错细节:

CMake Error at /usr/share/cmake-3.16/Modules/FindCUDA.cmake:1825 (add_library):
  Target "colmap_cuda" links to target "CUDA::cublas" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
Call Stack (most recent call first):
  cmake/CMakeHelper.cmake:148 (cuda_add_library)
  src/CMakeLists.txt:82 (COLMAP_ADD_STATIC_CUDA_LIBRARY)

  
  


CMake Error at cmake/CMakeHelper.cmake:121 (add_library):
  Target "colmap" links to target "CUDA::cublas" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
Call Stack (most recent call first):
  src/CMakeLists.txt:65 (COLMAP_ADD_STATIC_LIBRARY)


  


CMake Error at cmake/CMakeHelper.cmake:160 (add_executable):
  Target "colmap_exe" links to target "CUDA::cublas" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
Call Stack (most recent call first):
  src/exe/CMakeLists.txt:38 (COLMAP_ADD_EXECUTABLE)



CMake Error at cmake/CMakeHelper.cmake:160 (add_executable):
  Target "colmap_exe" links to target "CUDA::cusparse" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
Call Stack (most recent call first):
  src/exe/CMakeLists.txt:38 (COLMAP_ADD_EXECUTABLE)


CMake Warning at cmake/CMakeHelper.cmake:160 (add_executable):
  Cannot generate a safe runtime search path for target colmap_exe because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libmpfr.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/w/anaconda3/lib
    runtime library [libgmp.so.10] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/w/anaconda3/lib

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  src/exe/CMakeLists.txt:38 (COLMAP_ADD_EXECUTABLE)

2.2 编译colmap时会出现

Make Warning at cmake/CMakeHelper.cmake:160 (add_executable):
 Cannot generate a safe runtime search path for target colmap_exe because
 files in some directories may conflict with libraries in implicit directories:

  runtime library [libmpfr.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/w/anaconda3/lib
 runtime library [libgmp.so.10] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/w/anaconda3/lib

 解决办法:

更改anaconda3名字,安装colmap后改回来

ubuntu 安装 colmap_第2张图片

2.3 make 的时候出现下面警告,但是不影响colmap的编译

txas warning : Stack size for entry function '_ZN6colmap3mvs20SweepFromTopToBottomILi41ELi2ELb0ELb0ELb0EEEvNS0_6GpuMatIfEENS2_I17curandStateXORWOWEES3_S3_S3_NS2_IhEES3_S3_S3_S3_NS0_12SweepOptionsE' cannot be statically determined

ubuntu 安装 colmap_第3张图片

三、安装成功

colmap gui

ubuntu 安装 colmap_第4张图片

四、colmap使用教程

colmap使用教程

colmap官方数据集下载

其他数据集下载

你可能感兴趣的:(SLAM,ubuntu,colmap)