Open sharpenHolic opened 3 years ago
/home/tianbot/LBD_and_LineMatching/Demo_LBD_single.cpp: In function ‘int main(int, char)’: /home/tianbot/LBD_and_LineMatching/Demo_LBD_single.cpp:21:51: error: could not convert ‘false’ from ‘bool’ to ‘std::cxx11::string {aka std::cxx11::basic_string}’ image_process(argv[1], argv[2], argv[3], false); ^ CMakeFiles/Test_Single_LMA.dir/build.make:62: recipe for target 'CMakeFiles/Test_Single_LMA.dir/Demo_LBD_single.cpp.o' failed make[2]: ** [CMakeFiles/Test_Single_LMA.dir/Demo_LBD_single.cpp.o] Error 1 CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/Test_Single_LMA.dir/all' failed make[1]: [CMakeFiles/Test_Single_LMA.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
I make the project meeting with this problem, can you tell how to deal with it?
I also encountered this problem. I solved it by replacing false with ”false“.
it works,thanks!
it works,thanks!
/home/tianbot/LBD_and_LineMatching/Demo_LBD_single.cpp: In function ‘int main(int, char)’: /home/tianbot/LBD_and_LineMatching/Demo_LBD_single.cpp:21:51: error: could not convert ‘false’ from ‘bool’ to ‘std::cxx11::string {aka std::cxx11::basic_string}’
image_process(argv[1], argv[2], argv[3], false);
^
CMakeFiles/Test_Single_LMA.dir/build.make:62: recipe for target 'CMakeFiles/Test_Single_LMA.dir/Demo_LBD_single.cpp.o' failed
make[2]: ** [CMakeFiles/Test_Single_LMA.dir/Demo_LBD_single.cpp.o] Error 1
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/Test_Single_LMA.dir/all' failed
make[1]: [CMakeFiles/Test_Single_LMA.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
I make the project meeting with this problem, can you tell how to deal with it?