Open ZENGjunxian opened 5 years ago
meet the same error. Have you solved it ? @ZENGjunxian
specify the correct DBoW3_LIBS
in CMakeLists.txt
please modify feature_trainning.cpp ,if it exist libDBoW3.a',please change it with libDBoW3.so.
Change this line in ch11/CMakeLists.txt: set( DBoW3_LIBS "/usr/local/lib/libDBoW3.a" ) to: set( DBoW3_LIBS "/usr/local/lib/libDBoW3.so" )
I replaced it with /usr/local/lib/libDBoW3.dylib and it worked. I am using MacOS 11.3
make[2]: No rule to make target '/usr/local/lib/libDBoW3.a', needed by 'gen_vocab'。 停止。 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/gen_vocab.dir/all' failed make[1]: [CMakeFiles/gen_vocab.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2 I don't know how to use this ch12.I beg you may say more in detail