Skip to content

Instantly share code, notes, and snippets.

@YCmove
Last active May 8, 2024 12:06
Show Gist options
  • Save YCmove/a728d4cd4e73197cb5df48df2df54a27 to your computer and use it in GitHub Desktop.
Save YCmove/a728d4cd4e73197cb5df48df2df54a27 to your computer and use it in GitHub Desktop.
colmap - error: parameter packs not expanded with ‘...’

colmap - error: parameter packs not expanded with ‘...’

Problem

colmap make failed with with error message error: parameter packs not expanded with ‘...’

Solution

Make sure you have gcc 10 and g++ 10, if not, install them first sudo apt install gcc-10 g++-10

Compile under build directory cd colmap/build Set the environment variables for CMake:

  • CC: the preferred executable for compiling C language files.
  • CXX: the preferred executable for compiling CXX language files.
  • CUDAHOSTCXX: the preferred executable for compiling host code when compiling CUDA language files.
CC=/usr/bin/gcc-10 CXX=/usr/bin/g++-11 CUDAHOSTCXX=/usr/bin/g++-10 cmake .. -GNinja -DCMAKE_CUDA_ARCHITECTURES=86

Environment

  • OS: Ubuntu 22.04
  • Driver: 545.29.06
  • CUDA: 12.3
  • nvcc: 11.5

Reference

CMake 3.29 doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment