rmsalinas / fbow

FBOW (Fast Bag of Words) is an extremmely optimized version of the DBow2/DBow3 libraries.
570 stars 141 forks source link

fbow::VocabularyCreator::create(),fbow::Vocabulary::saveToFile() no reference defined #45

Open luohongk opened 8 months ago

luohongk commented 8 months ago

When I try to link fbow in cmakefiles, and call VocabularyCreator::create(),fbow::Vocabulary::saveToFile() in the main function but it fails.

There is: set(FBOW_INCLUDE_DIRS "/usr/local/include") in my CMakeList.txt set(FBOW_LIBS "/usr/local/lib/libfbow.so"). target_link_libraries( main ${FBOW_LIBS}).

The error shows: 'fbow::VocabularyCreator::create(fbow::Vocabulary&, std::vector<cv::Mat, std::allocator > const&, std::string const&, fbow:: VocabularyCreator::Params)' undefined reference feature_training_fbow.cpp:(.text.startup+0xd0b): undefined reference to 'fbow::Vocabulary::saveToFile(std::string const&)'

I want to know why something goes wrong?