bytedance / particle-sfm

ParticleSfM: Exploiting Dense Point Trajectories for Localizing Moving Cameras in the Wild. ECCV 2022.
http://b1ueber2y.me/projects/ParticleSfM/
GNU General Public License v3.0
285 stars 23 forks source link

Error while install gmapper #15

Closed avinashay closed 1 year ago

avinashay commented 1 year ago

I have have installed colmap, with no issues, but gmapper requires aligment.h from colmap which is not present in include folder of colmap, is there any specific version of colmap needs to used ?

bash scripts/build_all.sh

In file included from /home/avinash/Desktop/code/sfm/particle-sfm/sfm/gmapper/src/sfm/incremental_triangulator.cc:32: /home/avinash/Desktop/code/sfm/particle-sfm/sfm/gmapper/src/sfm/incremental_triangulator.h:35:10: fatal error: colmap/util/alignment.h: No such file or directory 35 | #include <colmap/util/alignment.h>

avinashay commented 1 year ago

Solved it, I had to install master branch of colmap not the dev

git clone https://github.com/colmap/colmap.git cd colmap git checkout master mkdir build cd build cmake .. make -j8 sudo make install

Lifedecoder commented 4 months ago

hi, colmap branches had changes, master did not exist anymore, how to find the suitable version of colmap?

guohengkai commented 4 months ago

@Lifedecoder hi, you can use version 3.8: git checkout 3.8

Lifedecoder commented 4 months ago

Hi! I as well checked the version at that time and switched to version 3.8, and the problem solved; I used commands below:

git clone https://github.com/colmap/colmap.git cd colmap git checkout 3.8 mkdir build cd build cmake .. -DCMAKE_CUDA_ARCHITECTURES=native (or there will be error message:CMake Error at CMakeLists.txt:255 (message): You must set CMAKE_CUDA_ARCHITECTURES to e.g. 'native', 'all-major', '70',) make -j8 sudo make install

Thanks very much for your quick response!