Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
luohongk opened this issue Apr 5, 2024 · 0 comments

Comments

@luohongk
Copy link

luohongk commented Apr 5, 2024

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::allocatorcv::Mat > 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant