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

Build fails linking OpenCV on AGX Orin #19

Open
kevin-chau opened this issue Apr 9, 2024 · 2 comments
Open

Build fails linking OpenCV on AGX Orin #19

kevin-chau opened this issue Apr 9, 2024 · 2 comments

Comments

@kevin-chau
Copy link

Hello! Thank you for this great project. I'm trying to build from source on the Jetson Orin platform using the Install from Source instructions. After invoking catkin_make I'm running in to this error linking:

[ 92%] Linking CXX executable /home/moca/Desktop/ext_storage/catkin_ws/devel/lib/monocular_person_following/monocular_person_following_node
/usr/bin/ld: CMakeFiles/monocular_people_tracking_node.dir/src/monocular_people_tracking_node.cpp.o: in function `monocular_people_tracking::MonocularPeopleTrackingNode::visualize(cv::Mat const&, std::vector<std::shared_ptr<monocular_people_tracking::Observation>, std::allocator<std::shared_ptr<monocular_people_tracking::Observation> > > const&) const':
monocular_people_tracking_node.cpp:(.text._ZNK25monocular_people_tracking27MonocularPeopleTrackingNode9visualizeERKN2cv3MatERKSt6vectorISt10shared_ptrINS_11ObservationEESaIS8_EE[_ZNK25monocular_people_tracking27MonocularPeopleTrackingNode9visualizeERKN2cv3MatERKSt6vectorISt10shared_ptrINS_11ObservationEESaIS8_EE]+0x84): undefined reference to `cv::Mat::Mat(cv::Size_<int>, int, cv::Scalar_<double> const&)'
/usr/bin/ld: CMakeFiles/monocular_people_tracking_node.dir/src/monocular_people_tracking_node.cpp.o: in function `monocular_people_tracking::MonocularPeopleTrackingNode::poses_callback(boost::shared_ptr<tfpose_ros::Persons_<std::allocator<void> > const> const&)':
monocular_people_tracking_node.cpp:(.text._ZN25monocular_people_tracking27MonocularPeopleTrackingNode14poses_callbackERKN5boost10shared_ptrIKN10tfpose_ros8Persons_ISaIvEEEEE[_ZN25monocular_people_tracking27MonocularPeopleTrackingNode14poses_callbackERKN5boost10shared_ptrIKN10tfpose_ros8Persons_ISaIvEEEEE]+0x2c4): undefined reference to `cv::Mat::Mat(int, int, int, cv::Scalar_<double> const&)'
/usr/bin/ld: monocular_people_tracking_node.cpp:(.text._ZN25monocular_people_tracking27MonocularPeopleTrackingNode14poses_callbackERKN5boost10shared_ptrIKN10tfpose_ros8Persons_ISaIvEEEEE[_ZN25monocular_people_tracking27MonocularPeopleTrackingNode14poses_callbackERKN5boost10shared_ptrIKN10tfpose_ros8Persons_ISaIvEEEEE]+0x2e8): undefined reference to `cv::Mat::Mat()'
collect2: error: ld returned 1 exit status
make[2]: *** [monocular_people_tracking/CMakeFiles/monocular_people_tracking_node.dir/build.make:212: /home/moca/Desktop/ext_storage/catkin_ws/devel/lib/monocular_people_tracking/monocular_people_tracking_node] Error 1
make[1]: *** [CMakeFiles/Makefile2:2195: monocular_people_tracking/CMakeFiles/monocular_people_tracking_node.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: warning: libopencv_features2d.so.4.2, needed by /usr/lib/aarch64-linux-gnu/libopencv_calib3d.so.4.2.0, may conflict with libopencv_features2d.so.3.3
/usr/bin/ld: warning: libopencv_imgproc.so.3.3, needed by /usr/local/lib/libopencv_features2d.so.3.3.1, may conflict with libopencv_imgproc.so.4.2
/usr/bin/ld: warning: libopencv_core.so.3.3, needed by /usr/local/lib/libopencv_features2d.so.3.3.1, may conflict with libopencv_core.so.4.2
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `cvk::ChannelExtractorLUV::extract(cv::Mat const&, cv::Mat const&) const':
ccf_person_identification_test.cpp:(.text._ZNK3cvk19ChannelExtractorLUV7extractERKN2cv3MatES4_[_ZNK3cvk19ChannelExtractorLUV7extractERKN2cv3MatES4_]+0x3c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `std::vector<cv::Mat, std::allocator<cv::Mat> >::vector(unsigned long, std::allocator<cv::Mat> const&)':
ccf_person_identification_test.cpp:(.text._ZNSt6vectorIN2cv3MatESaIS1_EEC2EmRKS2_[_ZNSt6vectorIN2cv3MatESaIS1_EEC5EmRKS2_]+0x68): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `cvk::ChannelExtractorGrads::extract(cv::Mat const&, cv::Mat const&) const':
ccf_person_identification_test.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x58): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x60): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x158): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o:ccf_person_identification_test.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x160): more undefined references to `cv::Mat::Mat()' follow
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `cvk::ChannelExtractorGrads::extract(cv::Mat const&, cv::Mat const&) const':
ccf_person_identification_test.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x230): undefined reference to `cv::Mat::Mat(int, int, int, cv::Scalar_<double> const&)'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `ccf_person_classifier::BodyClassifier::visualize() const':
ccf_person_identification_test.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x1cc): undefined reference to `cv::Mat::Mat(int, int, int, cv::Scalar_<double> const&)'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x20c): undefined reference to `cv::Mat::Mat(int, int, int)'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x4f4): undefined reference to `cv::Mat::Mat(int, int, int)'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x680): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x6c0): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x7b4): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `std::__detail::_Map_base<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, cv::Mat>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, cv::Mat> >, std::__detail::_Select1st, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true>, true>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)':
ccf_person_identification_test.cpp:(.text._ZNSt8__detail9_Map_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS6_N2cv3MatEESaISB_ENS_10_Select1stESt8equal_toIS6_ESt4hashIS6_ENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb1ELb0ELb1EEELb1EEixEOS6_[_ZNSt8__detail9_Map_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS6_N2cv3MatEESaISB_ENS_10_Select1stESt8equal_toIS6_ESt4hashIS6_ENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb1ELb0ELb1EEELb1EEixEOS6_]+0xdc): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `std::vector<cv::Mat, std::allocator<cv::Mat> >::_M_default_append(unsigned long)':
ccf_person_identification_test.cpp:(.text._ZNSt6vectorIN2cv3MatESaIS1_EE17_M_default_appendEm[_ZNSt6vectorIN2cv3MatESaIS1_EE17_M_default_appendEm]+0x6c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o:ccf_person_identification_test.cpp:(.text._ZNSt6vectorIN2cv3MatESaIS1_EE17_M_default_appendEm[_ZNSt6vectorIN2cv3MatESaIS1_EE17_M_default_appendEm]+0xe4): more undefined references to `cv::Mat::Mat()' follow
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `cvk::AhmedSubnet<10, 10>::AhmedSubnet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)':
ccf_person_identification_test.cpp:(.text._ZN3cvk11AhmedSubnetILi10ELi10EEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb[_ZN3cvk11AhmedSubnetILi10ELi10EEC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb]+0x1c0): undefined reference to `cv::Mat::Mat(int, int, int)'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `cvk::CNNChannelExtractor<10, 10>::extract(cv::Mat const&, cv::Mat const&) const':
ccf_person_identification_test.cpp:(.text._ZNK3cvk19CNNChannelExtractorILi10ELi10EE7extractERKN2cv3MatES5_[_ZNK3cvk19CNNChannelExtractorILi10ELi10EE7extractERKN2cv3MatES5_]+0x3c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `cvk::AhmedSubnet<20, 25>::forward(cv::Mat const&)':
ccf_person_identification_test.cpp:(.text._ZN3cvk11AhmedSubnetILi20ELi25EE7forwardERKN2cv3MatE[_ZN3cvk11AhmedSubnetILi20ELi25EE7forwardERKN2cv3MatE]+0x368): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `cvk::AhmedSubnet<20, 25>::AhmedSubnet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)':
ccf_person_identification_test.cpp:(.text._ZN3cvk11AhmedSubnetILi20ELi25EEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb[_ZN3cvk11AhmedSubnetILi20ELi25EEC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb]+0x2a8): undefined reference to `cv::Mat::Mat(int, int, int)'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `main':
ccf_person_identification_test.cpp:(.text.startup+0x590): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text.startup+0x610): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text.startup+0x68c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text.startup+0x72c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text.startup+0x734): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o:ccf_person_identification_test.cpp:(.text.startup+0x754): more undefined references to `cv::Mat::Mat()' follow
collect2: error: ld returned 1 exit status
make[2]: *** [ccf_person_identification/CMakeFiles/ccf_person_identification_test.dir/build.make:206: /home/moca/Desktop/ext_storage/catkin_ws/devel/lib/ccf_person_identification/ccf_person_identification_test] Error 1
make[1]: *** [CMakeFiles/Makefile2:1687: ccf_person_identification/CMakeFiles/ccf_person_identification_test.dir/all] Error 2
/usr/bin/ld: warning: libopencv_imgcodecs.so.4.2, needed by /opt/ros/noetic/lib/libcv_bridge.so, may conflict with libopencv_imgcodecs.so.3.3
/usr/bin/ld: warning: libopencv_features2d.so.4.2, needed by /usr/lib/aarch64-linux-gnu/libopencv_calib3d.so.4.2.0, may conflict with libopencv_features2d.so.3.3
/usr/bin/ld: warning: libopencv_imgproc.so.3.3, needed by /usr/local/lib/libopencv_features2d.so.3.3.1, may conflict with libopencv_imgproc.so.4.2
/usr/bin/ld: warning: libopencv_core.so.3.3, needed by /usr/local/lib/libopencv_features2d.so.3.3.1, may conflict with libopencv_core.so.4.2
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `monocular_person_following::Context::visualize_body_features()':
context.cpp:(.text+0x1a48): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: context.cpp:(.text+0x1a84): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `monocular_person_following::Context::extract_features(cv::Mat const&, std::unordered_map<long, std::shared_ptr<monocular_person_following::Tracklet>, std::hash<long>, std::equal_to<long>, std::allocator<std::pair<long const, std::shared_ptr<monocular_person_following::Tracklet> > > >&)':
context.cpp:(.text+0x1bac): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: context.cpp:(.text+0x1bb4): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: context.cpp:(.text+0x1bd4): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o:context.cpp:(.text+0x1c6c): more undefined references to `cv::Mat::Mat()' follow
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `flann::serialization::SaveArchive::initBlock()':
context.cpp:(.text._ZN5flann13serialization11SaveArchive9initBlockEv[_ZN5flann13serialization11SaveArchive9initBlockEv]+0x50): undefined reference to `LZ4_resetStreamHC'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `flann::serialization::SaveArchive::flushBlock()':
context.cpp:(.text._ZN5flann13serialization11SaveArchive10flushBlockEv[_ZN5flann13serialization11SaveArchive10flushBlockEv]+0x48): undefined reference to `LZ4_compress_HC_continue'
/usr/bin/ld: context.cpp:(.text._ZN5flann13serialization11SaveArchive10flushBlockEv[_ZN5flann13serialization11SaveArchive10flushBlockEv]+0xd8): undefined reference to `LZ4_compress_HC_continue'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `flann::serialization::LoadArchive::decompressAndLoadV10(_IO_FILE*)':
context.cpp:(.text._ZN5flann13serialization11LoadArchive20decompressAndLoadV10EP8_IO_FILE[_ZN5flann13serialization11LoadArchive20decompressAndLoadV10EP8_IO_FILE]+0xc0): undefined reference to `LZ4_decompress_safe'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `flann::serialization::LoadArchive::loadBlock(char*, unsigned long, _IO_FILE*)':
context.cpp:(.text._ZN5flann13serialization11LoadArchive9loadBlockEPcmP8_IO_FILE[_ZN5flann13serialization11LoadArchive9loadBlockEPcmP8_IO_FILE]+0x58): undefined reference to `LZ4_decompress_safe_continue'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `flann::serialization::LoadArchive::initBlock(_IO_FILE*)':
context.cpp:(.text._ZN5flann13serialization11LoadArchive9initBlockEP8_IO_FILE[_ZN5flann13serialization11LoadArchive9initBlockEP8_IO_FILE]+0xac): undefined reference to `LZ4_setStreamDecode'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `cvk::ChannelExtractorLUV::extract(cv::Mat const&, cv::Mat const&) const':
context.cpp:(.text._ZNK3cvk19ChannelExtractorLUV7extractERKN2cv3MatES4_[_ZNK3cvk19ChannelExtractorLUV7extractERKN2cv3MatES4_]+0x3c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `std::vector<cv::Mat, std::allocator<cv::Mat> >::vector(unsigned long, std::allocator<cv::Mat> const&)':
context.cpp:(.text._ZNSt6vectorIN2cv3MatESaIS1_EEC2EmRKS2_[_ZNSt6vectorIN2cv3MatESaIS1_EEC5EmRKS2_]+0x68): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `cvk::ChannelExtractorGrads::extract(cv::Mat const&, cv::Mat const&) const':
context.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x54): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: context.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x5c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: context.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x158): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o:context.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x160): more undefined references to `cv::Mat::Mat()' follow
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `cvk::ChannelExtractorGrads::extract(cv::Mat const&, cv::Mat const&) const':
context.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x230): undefined reference to `cv::Mat::Mat(int, int, int, cv::Scalar_<double> const&)'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `ccf_person_classifier::BodyClassifier::visualize() const':
context.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x1cc): undefined reference to `cv::Mat::Mat(int, int, int, cv::Scalar_<double> const&)'
/usr/bin/ld: context.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x20c): undefined reference to `cv::Mat::Mat(int, int, int)'
/usr/bin/ld: context.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x4f4): undefined reference to `cv::Mat::Mat(int, int, int)'
/usr/bin/ld: context.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x680): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: context.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x6c0): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: context.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x7b4): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `std::__detail::_Map_base<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, cv::Mat>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, cv::Mat> >, std::__detail::_Select1st, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true>, true>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)':
context.cpp:(.text._ZNSt8__detail9_Map_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS6_N2cv3MatEESaISB_ENS_10_Select1stESt8equal_toIS6_ESt4hashIS6_ENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb1ELb0ELb1EEELb1EEixEOS6_[_ZNSt8__detail9_Map_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS6_N2cv3MatEESaISB_ENS_10_Select1stESt8equal_toIS6_ESt4hashIS6_ENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb1ELb0ELb1EEELb1EEixEOS6_]+0xdc): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `std::vector<cv::Mat, std::allocator<cv::Mat> >::_M_default_append(unsigned long)':
context.cpp:(.text._ZNSt6vectorIN2cv3MatESaIS1_EE17_M_default_appendEm[_ZNSt6vectorIN2cv3MatESaIS1_EE17_M_default_appendEm]+0x6c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o:context.cpp:(.text._ZNSt6vectorIN2cv3MatESaIS1_EE17_M_default_appendEm[_ZNSt6vectorIN2cv3MatESaIS1_EE17_M_default_appendEm]+0xe4): more undefined references to `cv::Mat::Mat()' follow
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `cvk::AhmedSubnet<10, 10>::AhmedSubnet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)':
context.cpp:(.text._ZN3cvk11AhmedSubnetILi10ELi10EEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb[_ZN3cvk11AhmedSubnetILi10ELi10EEC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb]+0x1c0): undefined reference to `cv::Mat::Mat(int, int, int)'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `cvk::CNNChannelExtractor<10, 10>::extract(cv::Mat const&, cv::Mat const&) const':
context.cpp:(.text._ZNK3cvk19CNNChannelExtractorILi10ELi10EE7extractERKN2cv3MatES5_[_ZNK3cvk19CNNChannelExtractorILi10ELi10EE7extractERKN2cv3MatES5_]+0x3c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `cvk::AhmedSubnet<20, 25>::forward(cv::Mat const&)':
context.cpp:(.text._ZN3cvk11AhmedSubnetILi20ELi25EE7forwardERKN2cv3MatE[_ZN3cvk11AhmedSubnetILi20ELi25EE7forwardERKN2cv3MatE]+0x368): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `cvk::AhmedSubnet<20, 25>::AhmedSubnet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)':
context.cpp:(.text._ZN3cvk11AhmedSubnetILi20ELi25EEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb[_ZN3cvk11AhmedSubnetILi20ELi25EEC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb]+0x2a8): undefined reference to `cv::Mat::Mat(int, int, int)'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `cvk::CNNChannelExtractor<20, 25>::extract(cv::Mat const&, cv::Mat const&) const':
context.cpp:(.text._ZNK3cvk19CNNChannelExtractorILi20ELi25EE7extractERKN2cv3MatES5_[_ZNK3cvk19CNNChannelExtractorILi20ELi25EE7extractERKN2cv3MatES5_]+0x3c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `flann::LshIndex<flann::L2<float> >::saveIndex(_IO_FILE*)':
context.cpp:(.text._ZN5flann8LshIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE[_ZN5flann8LshIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE]+0x43c): undefined reference to `LZ4_compress_HC_continue'
/usr/bin/ld: context.cpp:(.text._ZN5flann8LshIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE[_ZN5flann8LshIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE]+0x5a4): undefined reference to `LZ4_compress_HC_continue'
/usr/bin/ld: context.cpp:(.text._ZN5flann8LshIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE[_ZN5flann8LshIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE]+0x6d4): undefined reference to `LZ4_compress_HC_continue'
/usr/bin/ld: context.cpp:(.text._ZN5flann8LshIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE[_ZN5flann8LshIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE]+0x790): undefined reference to `LZ4_compress_HC_continue'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `void flann::serialization::Serializer<std::vector<unsigned long, std::allocator<unsigned long> > >::load<flann::serialization::LoadArchive>(flann::serialization::LoadArchive&, std::vector<unsigned long, std::allocator<unsigned long> >&)':
context.cpp:(.text._ZN5flann13serialization10SerializerISt6vectorImSaImEEE4loadINS0_11LoadArchiveEEEvRT_RS4_[_ZN5flann13serialization10SerializerISt6vectorImSaImEEE4loadINS0_11LoadArchiveEEEvRT_RS4_]+0x118): undefined reference to `LZ4_decompress_safe_continue'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `void flann::NNIndex<flann::L2<float> >::serialize<flann::serialization::LoadArchive>(flann::serialization::LoadArchive&)':
context.cpp:(.text._ZN5flann7NNIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_[_ZN5flann7NNIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_]+0x2d8): undefined reference to `LZ4_decompress_safe_continue'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `void flann::LshIndex<flann::L2<float> >::serialize<flann::serialization::LoadArchive>(flann::serialization::LoadArchive&)':
context.cpp:(.text._ZN5flann8LshIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_[_ZN5flann8LshIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_]+0x388): undefined reference to `LZ4_decompress_safe_continue'
/usr/bin/ld: context.cpp:(.text._ZN5flann8LshIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_[_ZN5flann8LshIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_]+0x6e0): undefined reference to `LZ4_decompress_safe_continue'
/usr/bin/ld: context.cpp:(.text._ZN5flann8LshIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_[_ZN5flann8LshIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_]+0x9b8): undefined reference to `LZ4_decompress_safe_continue'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o:context.cpp:(.text._ZN5flann8LshIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_[_ZN5flann8LshIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_]+0xac0): more undefined references to `LZ4_decompress_safe_continue' follow
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following_node.cpp.o: in function `monocular_person_following::MonocularPersonFollowingNode::callback(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<monocular_people_tracking::TrackArray_<std::allocator<void> > const> const&, boost::shared_ptr<monocular_person_following::FaceDetectionArray_<std::allocator<void> > const> const&)':
monocular_person_following_node.cpp:(.text._ZN26monocular_person_following28MonocularPersonFollowingNode8callbackERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEERKNS2_IKN25monocular_people_tracking11TrackArray_IS5_EEEERKNS2_IKNS_19FaceDetectionArray_IS5_EEEE[_ZN26monocular_person_following28MonocularPersonFollowingNode8callbackERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEERKNS2_IKN25monocular_people_tracking11TrackArray_IS5_EEEERKNS2_IKNS_19FaceDetectionArray_IS5_EEEE]+0x278): undefined reference to `cv::Mat::Mat()'
collect2: error: ld returned 1 exit status
make[2]: *** [monocular_person_following/CMakeFiles/monocular_person_following_node.dir/build.make:363: /home/moca/Desktop/ext_storage/catkin_ws/devel/lib/monocular_person_following/monocular_person_following_node] Error 1
make[1]: *** [CMakeFiles/Makefile2:3221: monocular_person_following/CMakeFiles/monocular_person_following_node.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Invoking "make -j12 -l12" failed
@kevin-chau
Copy link
Author

I'm also having the same issue with LZ4. Is that from flann?

@kevin-chau
Copy link
Author

I fixed both of these issues by updating the CMakeLists.txt file:
image

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