colmap / glomap

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

Building on Mac #44

Closed bfialkoff closed 1 month ago

bfialkoff commented 1 month ago

I had some trouble building on Mac. Cmake wasn't finding all the dependencies properly i thought id share the final cmake command that ended up working in case it helps anyone

cmake -DCMAKE_PREFIX_PATH=/opt/homebrew/Cellar/qt@5/5.15.13_1 -DOpenMP_C_FLAGS="-Xclang -fopenmp" -DOpenMP_C_LIB_NAMES="libomp" -DOpenMP_CXX_FLAGS="-Xclang -fopenmp" -DOpenMP_CXX_LIB_NAMES="libomp" -DOpenMP_libomp_LIBRARY=/opt/homebrew//Cellar/libomp/18.1.8/lib/libomp.dylib -DOpenMP_INCLUDE_DIR=/opt/homebrew//Cellar/libomp/18.1.8/include .. -GNinja

obviously adjust homebrew path literals if needed