colmap / glomap

GLOMAP - Global Structured-from-Motion Revisited
BSD 3-Clause "New" or "Revised" License
1.3k stars 76 forks source link

How to handle this problem #70

Closed luoshuiyue closed 2 weeks ago

luoshuiyue commented 4 weeks ago

Describe the bug When I follow the instruction to install COLMAP dependencies running this command cmake .. -GNinja. The error occurs.

To Reproduce Steps to reproduce the behavior:

  1. git clone https://github.com/colmap/colmap
  2. sudo apt-get install \ git \ cmake \ ninja-build \ build-essential \ libboost-program-options-dev \ libboost-filesystem-dev \ libboost-graph-dev \ libboost-system-dev \ libeigen3-dev \ libflann-dev \ libfreeimage-dev \ libmetis-dev \ libgoogle-glog-dev \ libgtest-dev \ libsqlite3-dev \ libglew-dev \ qtbase5-dev \ libqt5opengl5-dev \ libcgal-dev \ libceres-dev
  3. cd colmap mkdir build cd build cmake .. -GNinja

Expected behavior No errors.

Screenshots 741177df4c67bbd6cca91dbfc133850 3ba3f901760d36dd4688e1b8e9aa232 32716e2724c96e5bb31f2e8391b20c9 6e0fcc792bf8ae52b3d04d2c647adf7

Environment:

lpanaf commented 3 weeks ago

Hi, I have not seen this error before. But can you maybe try to reinstall cmake from the source?

wget https://github.com/Kitware/CMake/releases/download/v3.30.1/cmake-3.30.1.tar.gz
tar xfvz cmake-3.30.1.tar.gz && cd cmake-3.30.1
./bootstrap && make -j$(nproc) && sudo make install
luoshuiyue commented 3 weeks ago

I follow your steps , and then run cmake .. -GNinja again, some errors remain: 1724147251993 1724147277043 1724147310319 1724147328489

FeiWang1001 commented 3 weeks ago

I met the similar problem. Have tried rebuild with CMAKE-3.30.1, cuda-11.7\11;.8, gcc&g++-7\8, all met the error:( Seems like cuda compile problem...

image

FeiWang1001 commented 3 weeks ago

I met the similar problem. Have tried rebuild with CMAKE-3.30.1, cuda-11.7\11;.8, gcc&g++-7\8, all met the error:( Seems like cuda compile problem...

image

I solved this problem by adding "-D CMAKE_CUDA_COMPILER=$(which nvcc) " Hope it is helpful

luoshuiyue commented 3 weeks ago

@FeiWang1001 Thanks, but I still encounter error: 1724296689327

FeiWang1001 commented 3 weeks ago

@FeiWang1001 Thanks, but I still encounter error: 1724296689327

It is Eigen problem, not cuda problem anymore:)

lpanaf commented 3 weeks ago

@FeiWang1001 Thanks, but I still encounter error: 1724296689327

Yes, as @FeiWang1001 says, this is due to version mismatch of Eigen. GLOMAP requires Eigen to be at least version 3.4 (which you can build from source)