emotime icon indicating copy to clipboard operation
emotime copied to clipboard

Error running on running make

Open gsraman opened this issue 8 years ago • 1 comments

The follow error is generated on running cmake ..;make; make install;

Linking CXX executable train_cli CMakeFiles/train_cli.dir/Classifier.cpp.o: In function `void cv::Mat::push_back<float>(float const&)': Classifier.cpp:(.text._ZN2cv3Mat9push_backIfEEvRKT_[_ZN2cv3Mat9push_backIfEEvRKT_]+0x115): undefined reference to `cv::Exception::Exception(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' Classifier.cpp:(.text._ZN2cv3Mat9push_backIfEEvRKT_[_ZN2cv3Mat9push_backIfEEvRKT_]+0x2d9): undefined reference to `cv::Exception::Exception(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' CMakeFiles/train_cli.dir/__/utils/matrix_io.cpp.o: In function `matrix_io_load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)': matrix_io.cpp:(.text+0x41a): undefined reference to `cv::FileStorage::FileStorage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' matrix_io.cpp:(.text+0x45c): undefined reference to `cv::FileStorage::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' matrix_io.cpp:(.text+0x4d3): undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' CMakeFiles/train_cli.dir/__/utils/matrix_io.cpp.o: In function `matrix_io_save(cv::Mat&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)': matrix_io.cpp:(.text+0x703): undefined reference to `cv::FileStorage::FileStorage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' matrix_io.cpp:(.text+0x72b): undefined reference to `cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' matrix_io.cpp:(.text+0x89f): undefined reference to `cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)' matrix_io.cpp:(.text+0x8fb): undefined reference to `cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)' CMakeFiles/train_cli.dir/__/utils/matrix_io.cpp.o: In function `cv::FileStorage& cv::operator<< <cv::Mat>(cv::FileStorage&, cv::Mat const&)': matrix_io.cpp:(.text+0xbab): undefined reference to `cv::Exception::Exception(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' matrix_io.cpp:(.text+0xc38): undefined reference to `cv::write(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::Mat const&)' collect2: error: ld returned 1 exit status make[2]: *** [src/training/CMakeFiles/train_cli.dir/build.make:217: src/training/train_cli] Error 1 make[1]: *** [CMakeFiles/Makefile2:161: src/training/CMakeFiles/train_cli.dir/all] Error 2 make: *** [Makefile:128: all] Error 2 [ 12%] Built target emotime [ 13%] Linking CXX executable train_cli CMakeFiles/train_cli.dir/Classifier.cpp.o: In function `void cv::Mat::push_back<float>(float const&)': Classifier.cpp:(.text._ZN2cv3Mat9push_backIfEEvRKT_[_ZN2cv3Mat9push_backIfEEvRKT_]+0x115): undefined reference to `cv::Exception::Exception(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' Classifier.cpp:(.text._ZN2cv3Mat9push_backIfEEvRKT_[_ZN2cv3Mat9push_backIfEEvRKT_]+0x2d9): undefined reference to `cv::Exception::Exception(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' CMakeFiles/train_cli.dir/__/utils/matrix_io.cpp.o: In function `matrix_io_load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)': matrix_io.cpp:(.text+0x41a): undefined reference to `cv::FileStorage::FileStorage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' matrix_io.cpp:(.text+0x45c): undefined reference to `cv::FileStorage::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' matrix_io.cpp:(.text+0x4d3): undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' CMakeFiles/train_cli.dir/__/utils/matrix_io.cpp.o: In function `matrix_io_save(cv::Mat&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)': matrix_io.cpp:(.text+0x703): undefined reference to `cv::FileStorage::FileStorage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' matrix_io.cpp:(.text+0x72b): undefined reference to `cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' matrix_io.cpp:(.text+0x89f): undefined reference to `cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)' matrix_io.cpp:(.text+0x8fb): undefined reference to `cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)' CMakeFiles/train_cli.dir/__/utils/matrix_io.cpp.o: In function `cv::FileStorage& cv::operator<< <cv::Mat>(cv::FileStorage&, cv::Mat const&)': matrix_io.cpp:(.text+0xbab): undefined reference to `cv::Exception::Exception(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' matrix_io.cpp:(.text+0xc38): undefined reference to `cv::write(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::Mat const&)' collect2: error: ld returned 1 exit status make[2]: *** [src/training/CMakeFiles/train_cli.dir/build.make:217: src/training/train_cli] Error 1 make[1]: *** [CMakeFiles/Makefile2:161: src/training/CMakeFiles/train_cli.dir/all] Error 2 make: *** [Makefile:128: all] Error 2

gsraman avatar Feb 13 '17 18:02 gsraman

Which version of opencv are you running? At the moment 2.4 have been tested.

Sent form my phone. Il 13/feb/2017 19:33, "Sundar Raman G" [email protected] ha scritto:

The follow error is generated on running cmake ..;

Linking CXX executable train_cli CMakeFiles/train_cli.dir/Classifier.cpp.o: In function void cv::Mat::push_back<float>(float const&)': Classifier.cpp:(.text._ZN2cv3Mat9push_backIfEEvRKT_[_ ZN2cv3Mat9push_backIfEEvRKT_]+0x115): undefined reference to cv::Exception::Exception(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)' Classifier.cpp:(.text.ZN2cv3Mat9push_backIfEEvRKT[ ZN2cv3Mat9push_backIfEEvRKT]+0x2d9): undefined reference to cv::Exception::Exception(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' CMakeFiles/train_cli.dir/__/utils/matrix_io.cpp.o: In function matrix_io_load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >&)': matrix_io.cpp:(.text+0x41a): undefined reference to cv::FileStorage::FileStorage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' matrix_io.cpp:(.text+0x45c): undefined reference to cv::FileStorage::operator[](std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) const' matrix_io.cpp:(.text+0x4d3): undefined reference to cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' CMakeFiles/train_cli.dir/__/utils/matrix_io.cpp.o: In function matrix_io_save(cv::Mat&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >&)': matrix_io.cpp:(.text+0x703): undefined reference to cv::FileStorage::FileStorage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' matrix_io.cpp:(.text+0x72b): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)' matrix_io.cpp:(.text+0x89f): undefined reference to cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)' matrix_io.cpp:(.text+0x8fb): undefined reference to cv::imwrite(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, cv::_InputArray const&, std::vector<int, std::allocator > const&)' CMakeFiles/train_cli.dir//utils/matrix_io.cpp.o: In function cv::FileStorage& cv::operator<< <cv::Mat>(cv::FileStorage&, cv::Mat const&)': matrix_io.cpp:(.text+0xbab): undefined reference to cv::Exception::Exception(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)' matrix_io.cpp:(.text+0xc38): undefined reference to cv::write(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::Mat const&)' collect2: error: ld returned 1 exit status make[2]: *** [src/training/CMakeFiles/train_cli.dir/build.make:217: src/training/train_cli] Error 1 make[1]: *** [CMakeFiles/Makefile2:161: src/training/CMakeFiles/train_cli.dir/all] Error 2 make: *** [Makefile:128: all] Error 2 [ 12%] Built target emotime [ 13%] Linking CXX executable train_cli CMakeFiles/train_cli.dir/Classifier.cpp.o: In function void cv::Mat::push_back(float const&)': Classifier.cpp:(.text.ZN2cv3Mat9push_backIfEEvRKT[ ZN2cv3Mat9push_backIfEEvRKT]+0x115): undefined reference to cv::Exception::Exception(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' Classifier.cpp:(.text._ZN2cv3Mat9push_backIfEEvRKT_[_ ZN2cv3Mat9push_backIfEEvRKT_]+0x2d9): undefined reference to cv::Exception::Exception(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)' CMakeFiles/train_cli.dir//utils/matrix_io.cpp.o: In function matrix_io_load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)': matrix_io.cpp:(.text+0x41a): undefined reference to cv::FileStorage::FileStorage(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)' matrix_io.cpp:(.text+0x45c): undefined reference to cv::FileStorage::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' matrix_io.cpp:(.text+0x4d3): undefined reference to cv::imread(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)' CMakeFiles/train_cli.dir//utils/matrix_io.cpp.o: In function matrix_io_save(cv::Mat&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)': matrix_io.cpp:(.text+0x703): undefined reference to cv::FileStorage::FileStorage(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)' matrix_io.cpp:(.text+0x72b): undefined reference to cv::operator<<(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' matrix_io.cpp:(.text+0x89f): undefined reference to cv::imwrite(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, cv::_InputArray const&, std::vector<int, std::allocator > const&)' matrix_io.cpp:(.text+0x8fb): undefined reference to cv::imwrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)' CMakeFiles/train_cli.dir/__/utils/matrix_io.cpp.o: In function cv::FileStorage& cv::operator<< cv::Mat(cv::FileStorage&, cv::Mat const&)': matrix_io.cpp:(.text+0xbab): undefined reference to cv::Exception::Exception(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' matrix_io.cpp:(.text+0xc38): undefined reference to cv::write(cv::FileStorage&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, cv::Mat const&)' collect2: error: ld returned 1 exit status make[2]: *** [src/training/CMakeFiles/train_cli.dir/build.make:217: src/training/train_cli] Error 1 make[1]: *** [CMakeFiles/Makefile2:161: src/training/CMakeFiles/train_cli.dir/all] Error 2 make: *** [Makefile:128: all] Error 2

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/luca-m/emotime/issues/84, or mute the thread https://github.com/notifications/unsubscribe-auth/ACqKq_RvVmQdPfN7PmeW9ENv9D88k4uNks5rcKILgaJpZM4L_j5j .

luca-m avatar Feb 14 '17 19:02 luca-m