slambook icon indicating copy to clipboard operation
slambook copied to clipboard

CH12 make error

Open ZENGjunxian opened this issue 7 years ago • 5 comments

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

ZENGjunxian avatar Apr 19 '19 03:04 ZENGjunxian

meet the same error. Have you solved it ? @ZENGjunxian

IamMegatron2025 avatar Aug 11 '19 13:08 IamMegatron2025

specify the correct DBoW3_LIBS in CMakeLists.txt

IamMegatron2025 avatar Aug 12 '19 06:08 IamMegatron2025

please modify feature_trainning.cpp ,if it exist libDBoW3.a',please change it with libDBoW3.so.

amituofo1996 avatar Sep 08 '20 15:09 amituofo1996

Change this line in ch11/CMakeLists.txt: set( DBoW3_LIBS "/usr/local/lib/libDBoW3.a" ) to: set( DBoW3_LIBS "/usr/local/lib/libDBoW3.so" )

salihmarangoz avatar Apr 14 '21 20:04 salihmarangoz

I replaced it with /usr/local/lib/libDBoW3.dylib and it worked. I am using MacOS 11.3

iamkrs9 avatar May 22 '21 16:05 iamkrs9