AIBluefisher / DAGSfM

Distributed and Graph-based Structure from Motion. This project includes the official implementation of our Pattern Recognition 2020 paper: Graph-Based Parallel Large Scale Structure from Motion.
https://aibluefisher.github.io/GraphSfM/
BSD 3-Clause "New" or "Revised" License
395 stars 84 forks source link

expected constructor, destructor, or type conversion before '(' token DEFINE_string(log_directory, "", "directory to store log file."); #24

Closed blacnk-0 closed 3 years ago

blacnk-0 commented 3 years ago

build error


[ 95%] Built target ransac_test
[ 95%] Built target misc_test
[ 95%] Built target cache_test
[ 97%] Built target timer_test
[ 97%] Built target endian_test
[ 98%] Built target bitmap_test
[ 98%] Built target opengl_utils_test
[ 98%] Built target matrix_test
[ 98%] Built target threading_test
[ 98%] Built target string_test
[ 98%] Built target random_test
/home/i23d/data1/dependency/GraphCompileTest/GraphSfM/src/exe/colmap.cc:58:14: error: expected constructor, destructor, or type conversion before '(' token
 DEFINE_string(log_directory, "", "directory to store log file.");
              ^
src/exe/CMakeFiles/colmap_exe.dir/build.make:62: recipe for target 'src/exe/CMakeFiles/colmap_exe.dir/colmap.cc.o' failed
make[2]: *** [src/exe/CMakeFiles/colmap_exe.dir/colmap.cc.o] Error 1
CMakeFiles/Makefile2:4576: recipe for target 'src/exe/CMakeFiles/colmap_exe.dir/all' failed
make[1]: *** [src/exe/CMakeFiles/colmap_exe.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2```
blacnk-0 commented 3 years ago

commented this line DEFINE_string(log_directory, "", "directory to store log file."); in colmap.cc resolved this problem