Closed blacnk-0 closed 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```
commented this line DEFINE_string(log_directory, "", "directory to store log file."); in colmap.cc resolved this problem
DEFINE_string(log_directory, "", "directory to store log file.");
colmap.cc
build error