pablofdezalc / kaze

KAZE Features
BSD 3-Clause "New" or "Revised" License
126 stars 44 forks source link

Compiling error: Undefined symbols for architecture x86_64 #11

Open dicobrazz opened 4 years ago

dicobrazz commented 4 years ago

Hi, I am trying to compile and get the following error:

[ 66%] Linking CXX executable ../bin/kaze_match Undefined symbols for architecture x86_64: "cv::imwrite(cv::String const&, cv::_InputArray const&, std::1::vector<int, std::1::allocator > const&)", referenced from: libKAZE::KAZE::Save_Scale_Space() in libKAZE.a(KAZE.cpp.o) libKAZE::KAZE::Save_Detector_Responses() in libKAZE.a(KAZE.cpp.o) "cv::DescriptorMatcher::knnMatch(cv::_InputArray const&, cv::_InputArray const&, std::1::vector<std::1::vector<cv::DMatch, std::1::allocator >, std::1::allocator<std::1::vector<cv::DMatch, std::1::allocator > > >&, int, cv::_InputArray const&, bool) const", referenced from: _main in kaze_match.cpp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [bin/kaze_match] Error 1 make[1]: [src/CMakeFiles/kaze_match.dir/all] Error 2 make: *** [all] Error 2

I am not sure what has happened, googled it, but its so broad this issue - Undefined symbols for architecture x86_64.

System:

Mac OS 10.14.6

pablofdezalc commented 4 years ago

Hi Pavel,

It has been a while since I have not worked on the library. I will try to take a look. Which compiler and version of OpenCV are you using?

Regards, Pablo

On Mon, 6 Jan 2020 at 20:37, Pavel Kosyrev notifications@github.com wrote:

Hi, I am trying to compile and get the following error:

[ 66%] Linking CXX executable ../bin/kaze_match Undefined symbols for architecture x86_64: "cv::imwrite(cv::String const&, cv::_InputArray const&, std::1::vector<int, std::1::allocator > const&)", referenced from: libKAZE::KAZE::Save_Scale_Space() in libKAZE.a(KAZE.cpp.o) libKAZE::KAZE::Save_Detector_Responses() in libKAZE.a(KAZE.cpp.o) "cv::DescriptorMatcher::knnMatch(cv::_InputArray const&, cv::_InputArray const&, std::1::vector<std::1::vector<cv::DMatch, std::1::allocatorcv::DMatch >, std::1::allocator<std::1::vector<cv::DMatch, std::1::allocatorcv::DMatch > > >&, int, cv::_InputArray const&, bool) const", referenced from: _main in kaze_match.cpp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [bin/kaze_match] Error 1 make[1]: [src/CMakeFiles/kaze_match.dir/all] Error 2 make: *** [all] Error 2

I am not sure what has happened, googled it, but its so broad this issue - Undefined symbols for architecture x86_64.

System:

Mac OS 10.14.6

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pablofdezalc/kaze/issues/11?email_source=notifications&email_token=AAJY6CDPK5K34XR4NFQ2KW3Q4OI7LA5CNFSM4KDKL5DKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IEKGJUQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJY6CEXCR6VXIWDX5LCEL3Q4OI7LANCNFSM4KDKL5DA .