shinsumicco/DBoW2

CMakeFiles/convert_orb_vocab.dir/build.make:110: recipe for target 'convert_orb_vocab' failed

stefcian opened this issue · 2 comments

Hi,
first of all, thank you!
I can't fix an error that i get while trying to build it.

Ubuntu 18.04

First i launch this:

cmake
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/usr/local
..

and it seems everything is ok

-- The CXX compiler identification is GNU 7.4.0
-- The C compiler identification is GNU 7.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Use OpenCV 4.1.0
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/DBoW2/build

Then i launch:

make -j4

Scanning dependencies of target DBoW2
[ 11%] Building CXX object CMakeFiles/DBoW2.dir/src/QueryResults.cpp.o
[ 22%] Building CXX object CMakeFiles/DBoW2.dir/src/ScoringObject.cpp.o
[ 44%] Building CXX object CMakeFiles/DBoW2.dir/src/FeatureVector.cpp.o
[ 44%] Building CXX object CMakeFiles/DBoW2.dir/src/BowVector.cpp.o
[ 55%] Building CXX object CMakeFiles/DBoW2.dir/src/FORB.cpp.o
[ 66%] Building CXX object CMakeFiles/DBoW2.dir/src/FBrief.cpp.o
[ 77%] Linking CXX shared library libDBoW2.so
[ 77%] Built target DBoW2
Scanning dependencies of target convert_orb_vocab
[ 88%] Building CXX object CMakeFiles/convert_orb_vocab.dir/util/convert_orb_vocab.cpp.o
[100%] Linking CXX executable convert_orb_vocab
CMakeFiles/convert_orb_vocab.dir/util/convert_orb_vocab.cpp.o: In function std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > cv::CommandLineParser::get<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) const': convert_orb_vocab.cpp:(.text._ZNK2cv17CommandLineParser3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_RKS7_b[_ZNK2cv17CommandLineParser3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_RKS7_b]+0x2c): undefined reference to cv::CommandLineParser::getByName(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool, cv::Param, void*) const'
CMakeFiles/convert_orb_vocab.dir/util/convert_orb_vocab.cpp.o: In function DBoW2::TemplatedVocabulary<cv::Mat, DBoW2::FORB>::load(cv::FileStorage const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': convert_orb_vocab.cpp:(.text._ZN5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4loadERKNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4loadERKNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x148): undefined reference to cv::FileStorage::operator[](std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const'
convert_orb_vocab.cpp:(.text._ZN5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4loadERKNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4loadERKNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x3f5): undefined reference to cv::FileNode::string[abi:cxx11]() const' CMakeFiles/convert_orb_vocab.dir/util/convert_orb_vocab.cpp.o: In function main':
convert_orb_vocab.cpp:(.text.startup+0x51): undefined reference to cv::CommandLineParser::CommandLineParser(int, char const* const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' convert_orb_vocab.cpp:(.text.startup+0xb9): undefined reference to cv::CommandLineParser::has(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const'
convert_orb_vocab.cpp:(.text.startup+0x128): undefined reference to cv::CommandLineParser::has(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' convert_orb_vocab.cpp:(.text.startup+0x17f): undefined reference to cv::CommandLineParser::has(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const'
convert_orb_vocab.cpp:(.text.startup+0x50a): undefined reference to cv::CommandLineParser::has(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' convert_orb_vocab.cpp:(.text.startup+0x5b0): undefined reference to cv::CommandLineParser::has(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const'
CMakeFiles/convert_orb_vocab.dir/util/convert_orb_vocab.cpp.o:convert_orb_vocab.cpp:(.text.startup+0x5f1): more undefined references to cv::CommandLineParser::has(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' follow CMakeFiles/convert_orb_vocab.dir/util/convert_orb_vocab.cpp.o: In function DBoW2::TemplatedVocabulary<cv::Mat, DBoW2::FORB>::save(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const':
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x3b): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x6b): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
...
...
...
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0xc31): undefined reference to cv::error(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, char const*, int)' CMakeFiles/convert_orb_vocab.dir/util/convert_orb_vocab.cpp.o:convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0xc6b): more undefined references to cv::error(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, char const*, char const*, int)' follow
collect2: error: ld returned 1 exit status
CMakeFiles/convert_orb_vocab.dir/build.make:110: recipe for target 'convert_orb_vocab' failed
make[2]: *** [convert_orb_vocab] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/convert_orb_vocab.dir/all' failed
make[1]: *** [CMakeFiles/convert_orb_vocab.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

in my last post i deleted the central part of the error, cause i thought it was too long.
I'll post again here the whole error:

make -j4

Scanning dependencies of target DBoW2
[ 11%] Building CXX object CMakeFiles/DBoW2.dir/src/QueryResults.cpp.o
[ 22%] Building CXX object CMakeFiles/DBoW2.dir/src/ScoringObject.cpp.o
[ 44%] Building CXX object CMakeFiles/DBoW2.dir/src/FeatureVector.cpp.o
[ 44%] Building CXX object CMakeFiles/DBoW2.dir/src/BowVector.cpp.o
[ 55%] Building CXX object CMakeFiles/DBoW2.dir/src/FORB.cpp.o
[ 66%] Building CXX object CMakeFiles/DBoW2.dir/src/FBrief.cpp.o
[ 77%] Linking CXX shared library libDBoW2.so
[ 77%] Built target DBoW2
Scanning dependencies of target convert_orb_vocab
[ 88%] Building CXX object CMakeFiles/convert_orb_vocab.dir/util/convert_orb_vocab.cpp.o
[100%] Linking CXX executable convert_orb_vocab
CMakeFiles/convert_orb_vocab.dir/util/convert_orb_vocab.cpp.o: In function std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > cv::CommandLineParser::get<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) const': convert_orb_vocab.cpp:(.text._ZNK2cv17CommandLineParser3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_RKS7_b[_ZNK2cv17CommandLineParser3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_RKS7_b]+0x2c): undefined reference to cv::CommandLineParser::getByName(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool, cv::Param, void*) const'
CMakeFiles/convert_orb_vocab.dir/util/convert_orb_vocab.cpp.o: In function DBoW2::TemplatedVocabulary<cv::Mat, DBoW2::FORB>::load(cv::FileStorage const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': convert_orb_vocab.cpp:(.text._ZN5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4loadERKNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4loadERKNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x148): undefined reference to cv::FileStorage::operator[](std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const'
convert_orb_vocab.cpp:(.text._ZN5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4loadERKNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4loadERKNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x3f5): undefined reference to cv::FileNode::string[abi:cxx11]() const' CMakeFiles/convert_orb_vocab.dir/util/convert_orb_vocab.cpp.o: In function main':
convert_orb_vocab.cpp:(.text.startup+0x51): undefined reference to cv::CommandLineParser::CommandLineParser(int, char const* const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' convert_orb_vocab.cpp:(.text.startup+0xb9): undefined reference to cv::CommandLineParser::has(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const'
convert_orb_vocab.cpp:(.text.startup+0x128): undefined reference to cv::CommandLineParser::has(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' convert_orb_vocab.cpp:(.text.startup+0x17f): undefined reference to cv::CommandLineParser::has(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const'
convert_orb_vocab.cpp:(.text.startup+0x50a): undefined reference to cv::CommandLineParser::has(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' convert_orb_vocab.cpp:(.text.startup+0x5b0): undefined reference to cv::CommandLineParser::has(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const'
CMakeFiles/convert_orb_vocab.dir/util/convert_orb_vocab.cpp.o:convert_orb_vocab.cpp:(.text.startup+0x5f1): more undefined references to cv::CommandLineParser::has(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' follow CMakeFiles/convert_orb_vocab.dir/util/convert_orb_vocab.cpp.o: In function DBoW2::TemplatedVocabulary<cv::Mat, DBoW2::FORB>::save(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const':
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x3b): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x6b): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0xb1): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0xf5): undefined reference to cv::write(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)'
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x132): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x176): undefined reference to cv::write(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)'
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1cd): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x211): undefined reference to cv::write(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)'
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x266): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x2aa): undefined reference to cv::write(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)'
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x2f1): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x33a): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x459): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x4a1): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x4e6): undefined reference to cv::write(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x529): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x566): undefined reference to cv::write(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x5ab): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x5f6): undefined reference to cv::write(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)' convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x644): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x670): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x6b0): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x72e): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x77e): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
CMakeFiles/convert_orb_vocab.dir/util/convert_orb_vocab.cpp.o:convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x7c9): more undefined references to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' follow CMakeFiles/convert_orb_vocab.dir/util/convert_orb_vocab.cpp.o: In function DBoW2::TemplatedVocabulary<cv::Mat, DBoW2::FORB>::save(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const':
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x8d5): undefined reference to cv::write(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x91a): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x95d): undefined reference to cv::write(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x998): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x9ec): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0xa32): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0xabf): undefined reference to cv::error(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, char const*, int)' convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0xb34): undefined reference to cv::error(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, char const*, char const*, int)'
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0xb6c): undefined reference to cv::error(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, char const*, int)' convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0xbdf): undefined reference to cv::error(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, char const*, char const*, int)'
convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0xc31): undefined reference to cv::error(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*, char const*, int)' CMakeFiles/convert_orb_vocab.dir/util/convert_orb_vocab.cpp.o:convert_orb_vocab.cpp:(.text._ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK5DBoW219TemplatedVocabularyIN2cv3MatENS_4FORBEE4saveERNS1_11FileStorageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0xc6b): more undefined references to cv::error(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, char const*, char const*, int)' follow
collect2: error: ld returned 1 exit status
CMakeFiles/convert_orb_vocab.dir/build.make:110: recipe for target 'convert_orb_vocab' failed
make[2]: *** [convert_orb_vocab] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/convert_orb_vocab.dir/all' failed
make[1]: *** [CMakeFiles/convert_orb_vocab.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

The author is helping me on this problem in another repository ( xdspacelab/openvslam#253 ) so i'm closing this