Ask Your Question

Revision history [back]

OpenCV 2.4.10 compilation problem with CUDA 6.5 On MAC OS Yosemite (compiler: AppleClang6.0.0.6000056)

Hello my friends,

When comipling the OpenCV scource code, I got the following error in linking libopencv_gpu.dylib. I'm a newbie to Mac OSX. I would really appreciate it if you could help me.

Thanks, LK

Linking CXX shared library ../../lib/libopencv_gpu.dylib Undefined symbols for architecture x86_64: "loadFromXML(std::string const&, HaarClassifierCascadeDescriptor&, std::vector<haarstage64, std::allocator<haarstage64=""> >&, std::vector<haarclassifiernode128, std::allocator<haarclassifiernode128=""> >&, std::vector<haarfeature64, std::allocator<haarfeature64=""> >&)", referenced from: ncvHaarGetClassifierSize(std::string const&, unsigned int&, unsigned int&, unsigned int&) in cuda_compile_generated_NCVHaarObjectDetection.cu.o ncvHaarLoadFromFile_host(std::string const&, HaarClassifierCascadeDescriptor&, NCVVector<haarstage64>&, NCVVector<haarclassifiernode128>&, NCVVector<haarfeature64>&) in cuda_compile_generated_NCVHaarObjectDetection.cu.o "ncvDebugOutput(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&)", referenced from: loadFromXML(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, HaarClassifierCascadeDescriptor&, std::__1::vector<haarstage64, std::__1::allocator<haarstage64=""> >&, std::__1::vector<haarclassifiernode128, std::__1::allocator<haarclassifiernode128=""> >&, std::__1::vector<haarfeature64, std::__1::allocator<haarfeature64=""> >&) in cascadeclassifier.cpp.o HaarFeature64::setRect(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) in cascadeclassifier.cpp.o cv::gpu::CascadeClassifier_GPU::HaarCascade::load(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&) in cascadeclassifier.cpp.o NCVVector<haarstage64>::copySolid(NCVVector<haarstage64>&, CUstream_st, unsigned long) const in cascadeclassifier.cpp.o NCVVector<haarclassifiernode128>::copySolid(NCVVector<haarclassifiernode128>&, CUstream_st, unsigned long) const in cascadeclassifier.cpp.o NCVVector<haarfeature64>::copySolid(NCVVector<haarfeature64>&, CUstream_st, unsigned long) const in cascadeclassifier.cpp.o NCVVectorAlloc<haarfeature64>::NCVVectorAlloc(INCVMemAllocator&, unsigned int) in cascadeclassifier.cpp.o ... "groupRectangles(std::vector<ncvrect32u, std::allocator<ncvrect32u=""> >&, int, double, std::vector<unsigned int,="" std::allocator<unsigned="" int=""> >)", referenced from: ncvGroupRectangles_host(NCVVector<ncvrect32u>&, unsigned int&, unsigned int, float, NCVVector<unsigned int="">) in cuda_compile_generated_NCV.cu.o "ncvHaarGetClassifierSize(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, unsigned int&, unsigned int&, unsigned int&)", referenced from: cv::gpu::CascadeClassifier_GPU::HaarCascade::load(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&) in cascadeclassifier.cpp.o "ncvHaarLoadFromFile_host(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, HaarClassifierCascadeDescriptor&, NCVVector<haarstage64>&, NCVVector<haarclassifiernode128>&, NCVVector<haarfeature64>&)", referenced from: cv::gpu::CascadeClassifier_GPU::HaarCascade::load(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&) in cascadeclassifier.cpp.o "ncvSetDebugOutputHandler(void ()(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&))", referenced from: cv::gpu::CascadeClassifier_GPU::HaarCascade::HaarCascade() in cascadeclassifier.cpp.o cv::gpu::BroxOpticalFlow::operator()(cv::gpu::GpuMat const&, cv::gpu::GpuMat const&, cv::gpu::GpuMat&, cv::gpu::GpuMat&, cv::gpu::Stream&) in optical_flow.cpp.o "std::string::find_last_of(char const, unsigned long, unsigned long) const", referenced from: ncvHaarGetClassifierSize(std::string const&, unsigned int&, unsigned int&, unsigned int&) in cuda_compile_generated_NCVHaarObjectDetection.cu.o ncvHaarLoadFromFile_host(std::string const&, HaarClassifierCascadeDescriptor&, NCVVector<haarstage64>&, NCVVector<haarclassifiernode128>&, NCVVector<haarfeature64>&) in cuda_compile_generated_NCVHaarObjectDetection.cu.o "std::string::compare(char const) const", referenced from: ncvHaarGetClassifierSize(std::string const&, unsigned int&, unsigned int&, unsigned int&) in cuda_compile_generated_NCVHaarObjectDetection.cu.o ncvHaarLoadFromFile_host(std::string const&, HaarClassifierCascadeDescriptor&, NCVVector<haarstage64>&, NCVVector<haarclassifiernode128>&, NCVVector<haarfeature64>&) in cuda_compile_generated_NCVHaarObjectDetection.cu.o "std::basic_stringbuf<char, std::char_traits<char="">, std::allocator<char> >::str() const", referenced from: memSegCopyHelper(void, NCVMemoryType, void const, NCVMemoryType, unsigned long, CUstream_st) in cuda_compile_generated_NCV.cu.o memSegCopyHelper2D(void, unsigned int, NCVMemoryType, void const, unsigned int, NCVMemoryType, unsigned int, unsigned int, CUstream_st) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(unsigned int) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(NCVMemoryType, unsigned long, unsigned int, void) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::~NCVMemStackAllocator() in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::alloc(NCVMemSegment&, unsigned long) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::dealloc(NCVMemSegment&) in cuda_compile_generated_NCV.cu.o ... "std::basic_ios<char, std::char_traits<char=""> >::widen(char) const", referenced from: memSegCopyHelper(void, NCVMemoryType, void const, NCVMemoryType, unsigned long, CUstream_st) in cuda_compile_generated_NCV.cu.o memSegCopyHelper2D(void, unsigned int, NCVMemoryType, void const, unsigned int, NCVMemoryType, unsigned int, unsigned int, CUstream_st) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(unsigned int) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(NCVMemoryType, unsigned long, unsigned int, void) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::~NCVMemStackAllocator() in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::alloc(NCVMemSegment&, unsigned long) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::dealloc(NCVMemSegment&) in cuda_compile_generated_NCV.cu.o ... "std::ostream::put(char)", referenced from: memSegCopyHelper(void, NCVMemoryType, void const, NCVMemoryType, unsigned long, CUstream_st) in cuda_compile_generated_NCV.cu.o memSegCopyHelper2D(void, unsigned int, NCVMemoryType, void const, unsigned int, NCVMemoryType, unsigned int, unsigned int, CUstream_st) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(unsigned int) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(NCVMemoryType, unsigned long, unsigned int, void) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::~NCVMemStackAllocator() in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::alloc(NCVMemSegment&, unsigned long) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::dealloc(NCVMemSegment&) in cuda_compile_generated_NCV.cu.o ... "std::ostream::flush()", referenced from: memSegCopyHelper(void, NCVMemoryType, void const, NCVMemoryType, unsigned long, CUstream_st) in cuda_compile_generated_NCV.cu.o memSegCopyHelper2D(void, unsigned int, NCVMemoryType, void const, unsigned int, NCVMemoryType, unsigned int, unsigned int, CUstream_st) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(unsigned int) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(NCVMemoryType, unsigned long, unsigned int, void) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::~NCVMemStackAllocator() in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::alloc(NCVMemSegment&, unsigned long) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::dealloc(NCVMemSegment&) in cuda_compile_generated_NCV.cu.o ... "std::ostream::operator<<(int)", referenced from: memSegCopyHelper(void, NCVMemoryType, void const, NCVMemoryType, unsigned long, CUstream_st) in cuda_compile_generated_NCV.cu.o memSegCopyHelper2D(void, unsigned int, NCVMemoryType, void const, unsigned int, NCVMemoryType, unsigned int, unsigned int, CUstream_st) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(unsigned int) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(NCVMemoryType, unsigned long, unsigned int, void) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::~NCVMemStackAllocator() in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::alloc(NCVMemSegment&, unsigned long) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::dealloc(NCVMemSegment&) in cuda_compile_generated_NCV.cu.o ... "std::string::_M_leak_hard()", referenced from: ncvHaarGetClassifierSize(std::string const&, unsigned int&, unsigned int&, unsigned int&) in cuda_compile_generated_NCVHaarObjectDetection.cu.o ncvHaarLoadFromFile_host(std::string const&, HaarClassifierCascadeDescriptor&, NCVVector<haarstage64>&, NCVVector<haarclassifiernode128>&, NCVVector<haarfeature64>&) in cuda_compile_generated_NCVHaarObjectDetection.cu.o "std::string::_Rep::_M_destroy(std::allocator<char> const&)", referenced from: thrust::system::cuda::detail::current_device() in cuda_compile_generated_generalized_hough.cu.o thrust::system::cuda::detail::function_attributes_t thrust::system::cuda::detail::function_attributes<void (*)(thrust::system::cuda::detail::for_each_n_detail::for_each_n_closure<thrust::zip_iterator<thrust::tuple<thrust::device_ptr<int="">, thrust::device_ptr<int>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type> >, long, thrust::detail::device_unary_transform_functor<cv::gpu::device::binder2nd<cv::gpu::device::minimum<int> > >, thrust::system::cuda::detail::detail::blocked_thread_array>)>(void ()(thrust::system::cuda::detail::for_each_n_detail::for_each_n_closure<thrust::zip_iterator<thrust::tuple<thrust::device_ptr<int>, thrust::device_ptr<int>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type> >, long, thrust::detail::device_unary_transform_functor<cv::gpu::device::binder2nd<cv::gpu::device::minimum<int> > >, thrust::system::cuda::detail::detail::blocked_thread_array>)) in cuda_compile_generated_generalized_hough.cu.o thrust::system::system_error::~system_error() in cuda_compile_generated_generalized_hough.cu.o thrust::system::system_error::~system_error() in cuda_compile_generated_generalized_hough.cu.o thrust::system::system_error::what() const in cuda_compile_generated_generalized_hough.cu.o thrust::system::cuda::detail::runtime_introspection_detail::get_device_properties(thrust::system::cuda::detail::device_properties_t&, int) in cuda_compile_generated_generalized_hough.cu.o thrust::system::cuda::detail::function_attributes_t thrust::system::cuda::detail::function_attributes<void (*)(thrust::system::cuda::detail::for_each_n_detail::for_each_n_closure<thrust::zip_iterator<thrust::tuple<thrust::device_ptr<int="">, thrust::device_ptr<int>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type> >, unsigned int, thrust::detail::device_unary_transform_functor<cv::gpu::device::binder2nd<cv::gpu::device::minimum<int> > >, thrust::system::cuda::detail::detail::blocked_thread_array>)>(void ()(thrust::system::cuda::detail::for_each_n_detail::for_each_n_closure<thrust::zip_iterator<thrust::tuple<thrust::device_ptr<int>, thrust::device_ptr<int>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type> >, unsigned int, thrust::detail::device_unary_transform_functor<cv::gpu::device::binder2nd<cv::gpu::device::minimum<int> > >, thrust::system::cuda::detail::detail::blocked_thread_array>)) in cuda_compile_generated_generalized_hough.cu.o ... "std::string::_Rep::_S_empty_rep_storage", referenced from: thrust::system::cuda::detail::current_device() in cuda_compile_generated_generalized_hough.cu.o thrust::system::cuda::detail::function_attributes_t thrust::system::cuda::detail::function_attributes<void (*)(thrust::system::cuda::detail::for_each_n_detail::for_each_n_closure<thrust::zip_iterator<thrust::tuple<thrust::device_ptr<int="">, thrust::device_ptr<int>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type> >, long, thrust::detail::device_unary_transform_functor<cv::gpu::device::binder2nd<cv::gpu::device::minimum<int> > >, thrust::system::cuda::detail::detail::blocked_thread_array>)>(void ()(thrust::system::cuda::detail::for_each_n_detail::for_each_n_closure<thrust::zip_iterator<thrust::tuple<thrust::device_ptr<int>, thrust::device_ptr<int>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type> >, long, thrust::detail::device_unary_transform_functor<cv::gpu::device::binder2nd<cv::gpu::device::minimum<int> > >, thrust::system::cuda::detail::detail::blocked_thread_array>)) in cuda_compile_generated_generalized_hough.cu.o thrust::system::system_error::~system_error() in cuda_compile_generated_generalized_hough.cu.o thrust::system::system_error::~system_error() in cuda_compile_generated_generalized_hough.cu.o thrust::system::system_error::what() const in cuda_compile_generated_generalized_hough.cu.o thrust::system::cuda::detail::runtime_introspection_detail::get_device_properties(thrust::system::cuda::detail::device_properties_t&, int) in cuda_compile_generated_generalized_hough.cu.o thrust::system::cuda::detail::function_attributes_t thrust::system::cuda::detail::function_attributes<void (*)(thrust::system::cuda::detail::for_each_n_detail::for_each_n_closure<thrust::zip_iterator<thrust::tuple<thrust::device_ptr<int="">, thrust::device_ptr<int>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type> >, unsigned int, thrust::detail::device_unary_transform_functor<cv::gpu::device::binder2nd<cv::gpu::device::minimum<int> > >, thrust::system::cuda::detail::detail::blocked_thread_array>)>(void ()(thrust::system::cuda::detail::for_each_n_detail::for_each_n_closure<thrust::zip_iterator<thrust::tuple<thrust::device_ptr<int>, thrust::device_ptr<int>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type> >, unsigned int, thrust::detail::device_unary_transform_functor<cv::gpu::device::binder2nd<cv::gpu::device::minimum<int> > >, thrust::system::cuda::detail::detail::blocked_thread_array>)) in cuda_compile_generated_generalized_hough.cu.o ... "std::string::append(char const, unsigned long)", referenced from: thrust::system::system_error::what() const in cuda_compile_generated_generalized_hough.cu.o thrust::system::system_error::what() const in cuda_compile_generated_gftt.cu.o thrust::system::detail::bad_alloc::bad_alloc(std::string const&) in cuda_compile_generated_gftt.cu.o thrust::system::system_error::what() const in cuda_compile_generated_global_motion.cu.o thrust::system::detail::bad_alloc::bad_alloc(std::string const&) in cuda_compile_generated_global_motion.cu.o thrust::system::system_error::what() const in cuda_compile_generated_hough_lines.cu.o thrust::system::detail::bad_alloc::bad_alloc(std::string const&) in cuda_compile_generated_hough_lines.cu.o ... "std::string::append(std::string const&)", referenced from: thrust::system::system_error::what() const in cuda_compile_generated_generalized_hough.cu.o thrust::system::system_error::what() const in cuda_compile_generated_gftt.cu.o thrust::system::detail::bad_alloc::bad_alloc(std::string const&) in cuda_compile_generated_gftt.cu.o thrust::system::system_error::what() const in cuda_compile_generated_global_motion.cu.o thrust::system::detail::bad_alloc::bad_alloc(std::string const&) in cuda_compile_generated_global_motion.cu.o thrust::system::system_error::what() const in cuda_compile_generated_hough_lines.cu.o thrust::system::detail::bad_alloc::bad_alloc(std::string const&) in cuda_compile_generated_hough_lines.cu.o ... "std::string::assign(char const, unsigned long)", referenced from: thrust::system::system_error::what() const in cuda_compile_generated_generalized_hough.cu.o thrust::system::system_error::what() const in cuda_compile_generated_gftt.cu.o thrust::system::detail::bad_alloc::bad_alloc(std::string const&) in cuda_compile_generated_gftt.cu.o thrust::system::system_error::what() const in cuda_compile_generated_global_motion.cu.o thrust::system::detail::bad_alloc::bad_alloc(std::string const&) in cuda_compile_generated_global_motion.cu.o thrust::system::system_error::what() const in cuda_compile_generated_hough_lines.cu.o thrust::system::detail::bad_alloc::bad_alloc(std::string const&) in cuda_compile_generated_hough_lines.cu.o ... "std::basic_string<char, std::char_traits<char="">, std::allocator<char> >::basic_string(char const, std::allocator<char> const&)", referenced from: thrust::system::cuda::detail::current_device() in cuda_compile_generated_generalized_hough.cu.o thrust::system::cuda::detail::function_attributes_t thrust::system::cuda::detail::function_attributes<void (*)(thrust::system::cuda::detail::for_each_n_detail::for_each_n_closure<thrust::zip_iterator<thrust::tuple<thrust::device_ptr<int="">, thrust::device_ptr<int>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type> >, long, thrust::detail::device_unary_transform_functor<cv::gpu::device::binder2nd<cv::gpu::device::minimum<int> > >, thrust::system::cuda::detail::detail::blocked_thread_array>)>(void ()(thrust::system::cuda::detail::for_each_n_detail::for_each_n_closure<thrust::zip_iterator<thrust::tuple<thrust::device_ptr<int>, thrust::device_ptr<int>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type> >, long, thrust::detail::device_unary_transform_functor<cv::gpu::device::binder2nd<cv::gpu::device::minimum<int> > >, thrust::system::cuda::detail::detail::blocked_thread_array>)) in cuda_compile_generated_generalized_hough.cu.o thrust::system::cuda::detail::cuda_error_category::message(int) const in cuda_compile_generated_generalized_hough.cu.o thrust::system::detail::generic_error_category::message(int) const in cuda_compile_generated_generalized_hough.cu.o thrust::system::cuda::detail::runtime_introspection_detail::get_device_properties(thrust::system::cuda::detail::device_properties_t&, int) in cuda_compile_generated_generalized_hough.cu.o thrust::system::cuda::detail::function_attributes_t thrust::system::cuda::detail::function_attributes<void (*)(thrust::system::cuda::detail::for_each_n_detail::for_each_n_closure<thrust::zip_iterator<thrust::tuple<thrust::device_ptr<int="">, thrust::device_ptr<int>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type> >, unsigned int, thrust::detail::device_unary_transform_functor<cv::gpu::device::binder2nd<cv::gpu::device::minimum<int> > >, thrust::system::cuda::detail::detail::blocked_thread_array>)>(void ()(thrust::system::cuda::detail::for_each_n_detail::for_each_n_closure<thrust::zip_iterator<thrust::tuple<thrust::device_ptr<int>, thrust::device_ptr<int>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type> >, unsigned int, thrust::detail::device_unary_transform_functor<cv::gpu::device::binder2nd<cv::gpu::device::minimum<int> > >, thrust::system::cuda::detail::detail::blocked_thread_array>)) in cuda_compile_generated_generalized_hough.cu.o void thrust::system::cuda::detail::free<thrust::system::cuda::detail::tag, thrust::pointer<float2,="" thrust::system::cuda::detail::tag,="" thrust::use_default,="" thrust::use_default=""> >(thrust::system::cuda::detail::execution_policy<thrust::system::cuda::detail::tag>&, thrust::pointer<float2, thrust::system::cuda::detail::tag,="" thrust::use_default,="" thrust::use_default="">) in cuda_compile_generated_gftt.cu.o ... "std::basic_string<char, std::char_traits<char="">, std::allocator<char> >::basic_string(std::string const&)", referenced from: thrust::system::cuda::detail::cuda_error_category::message(int) const in cuda_compile_generated_generalized_hough.cu.o thrust::system::detail::generic_error_category::message(int) const in cuda_compile_generated_generalized_hough.cu.o thrust::system::cuda::detail::cuda_error_category::message(int) const in cuda_compile_generated_gftt.cu.o thrust::system::detail::generic_error_category::message(int) const in cuda_compile_generated_gftt.cu.o thrust::system::cuda::detail::cuda_error_category::message(int) const in cuda_compile_generated_global_motion.cu.o thrust::system::detail::generic_error_category::message(int) const in cuda_compile_generated_global_motion.cu.o thrust::system::cuda::detail::cuda_error_category::message(int) const in cuda_compile_generated_hough_lines.cu.o ... "std::basic_string<char, std::char_traits<char="">, std::allocator<char> >::basic_string(std::string const&, unsigned long, unsigned long)", referenced from: ncvHaarGetClassifierSize(std::string const&, unsigned int&, unsigned int&, unsigned int&) in cuda_compile_generated_NCVHaarObjectDetection.cu.o ncvHaarLoadFromFile_host(std::string const&, HaarClassifierCascadeDescriptor&, NCVVector<haarstage64>&, NCVVector<haarclassifiernode128>&, NCVVector<haarfeature64>&) in cuda_compile_generated_NCVHaarObjectDetection.cu.o "std::basic_string<char, std::char_traits<char="">, std::allocator<char> >::~basic_string()", referenced from: thrust::system::cuda::detail::cuda_error_category::message(int) const in cuda_compile_generated_generalized_hough.cu.o thrust::system::detail::generic_error_category::message(int) const in cuda_compile_generated_generalized_hough.cu.o thrust::system::cuda::detail::cuda_error_category::message(int) const in cuda_compile_generated_gftt.cu.o thrust::system::detail::generic_error_category::message(int) const in cuda_compile_generated_gftt.cu.o thrust::system::cuda::detail::cuda_error_category::message(int) const in cuda_compile_generated_global_motion.cu.o thrust::system::detail::generic_error_category::message(int) const in cuda_compile_generated_global_motion.cu.o thrust::system::cuda::detail::cuda_error_category::message(int) const in cuda_compile_generated_hough_lines.cu.o ... "std::runtime_error::runtime_error(std::string const&)", referenced from: thrust::system::cuda::detail::current_device() in cuda_compile_generated_generalized_hough.cu.o thrust::system::cuda::detail::function_attributes_t thrust::system::cuda::detail::function_attributes<void (*)(thrust::system::cuda::detail::for_each_n_detail::for_each_n_closure<thrust::zip_iterator<thrust::tuple<thrust::device_ptr<int="">, thrust::device_ptr<int>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type> >, long, thrust::detail::device_unary_transform_functor<cv::gpu::device::binder2nd<cv::gpu::device::minimum<int> > >, thrust::system::cuda::detail::detail::blocked_thread_array>)>(void ()(thrust::system::cuda::detail::for_each_n_detail::for_each_n_closure<thrust::zip_iterator<thrust::tuple<thrust::device_ptr<int>, thrust::device_ptr<int>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type> >, long, thrust::detail::device_unary_transform_functor<cv::gpu::device::binder2nd<cv::gpu::device::minimum<int> > >, thrust::system::cuda::detail::detail::blocked_thread_array>)) in cuda_compile_generated_generalized_hough.cu.o thrust::system::cuda::detail::runtime_introspection_detail::get_device_properties(thrust::system::cuda::detail::device_properties_t&, int) in cuda_compile_generated_generalized_hough.cu.o thrust::system::cuda::detail::function_attributes_t thrust::system::cuda::detail::function_attributes<void (*)(thrust::system::cuda::detail::for_each_n_detail::for_each_n_closure<thrust::zip_iterator<thrust::tuple<thrust::device_ptr<int="">, thrust::device_ptr<int>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type> >, unsigned int, thrust::detail::device_unary_transform_functor<cv::gpu::device::binder2nd<cv::gpu::device::minimum<int> > >, thrust::system::cuda::detail::detail::blocked_thread_array>)>(void ()(thrust::system::cuda::detail::for_each_n_detail::for_each_n_closure<thrust::zip_iterator<thrust::tuple<thrust::device_ptr<int>, thrust::device_ptr<int>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type> >, unsigned int, thrust::detail::device_unary_transform_functor<cv::gpu::device::binder2nd<cv::gpu::device::minimum<int> > >, thrust::system::cuda::detail::detail::blocked_thread_array>)) in cuda_compile_generated_generalized_hough.cu.o void thrust::system::cuda::detail::free<thrust::system::cuda::detail::tag, thrust::pointer<float2,="" thrust::system::cuda::detail::tag,="" thrust::use_default,="" thrust::use_default=""> >(thrust::system::cuda::detail::execution_policy<thrust::system::cuda::detail::tag>&, thrust::pointer<float2, thrust::system::cuda::detail::tag,="" thrust::use_default,="" thrust::use_default="">) in cuda_compile_generated_gftt.cu.o thrust::system::cuda::detail::current_device() in cuda_compile_generated_gftt.cu.o thrust::system::cuda::detail::function_attributes_t thrust::system::cuda::detail::function_attributes<void (*)(thrust::system::cuda::detail::for_each_n_detail::for_each_n_closure<thrust::pointer<float2,="" thrust::system::cuda::detail::tag,="" thrust::use_default,="" thrust::use_default="">, long, thrust::detail::allocator_traits_detail::gozer, thrust::system::cuda::detail::detail::blocked_thread_array>)>(void ()(thrust::system::cuda::detail::for_each_n_detail::for_each_n_closure<thrust::pointer<float2, thrust::system::cuda::detail::tag,="" thrust::use_default,="" thrust::use_default="">, long, thrust::detail::allocator_traits_detail::gozer, thrust::system::cuda::detail::detail::blocked_thread_array>)) in cuda_compile_generated_gftt.cu.o ... "std::basic_ostringstream<char, std::char_traits<char="">, std::allocator<char> >::basic_ostringstream(std::_Ios_Openmode)", referenced from: memSegCopyHelper(void, NCVMemoryType, void const, NCVMemoryType, unsigned long, CUstream_st) in cuda_compile_generated_NCV.cu.o memSegCopyHelper2D(void, unsigned int, NCVMemoryType, void const, unsigned int, NCVMemoryType, unsigned int, unsigned int, CUstream_st) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(unsigned int) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(NCVMemoryType, unsigned long, unsigned int, void) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::~NCVMemStackAllocator() in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::alloc(NCVMemSegment&, unsigned long) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::dealloc(NCVMemSegment&) in cuda_compile_generated_NCV.cu.o ... "std::locale::~locale()", referenced from: memSegCopyHelper(void, NCVMemoryType, void const, NCVMemoryType, unsigned long, CUstream_st) in cuda_compile_generated_NCV.cu.o memSegCopyHelper2D(void, unsigned int, NCVMemoryType, void const, unsigned int, NCVMemoryType, unsigned int, unsigned int, CUstream_st) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(unsigned int) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(NCVMemoryType, unsigned long, unsigned int, void) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::~NCVMemStackAllocator() in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::alloc(NCVMemSegment&, unsigned long) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::dealloc(NCVMemSegment&) in cuda_compile_generated_NCV.cu.o ... "std::ios_base::Init::Init()", referenced from: __GLOBAL__I_a in cuda_compile_generated_bilateral_filter.cu.o __GLOBAL__I_a in cuda_compile_generated_blend.cu.o __GLOBAL__I_a in cuda_compile_generated_ccomponetns.cu.o __GLOBAL__I_a in cuda_compile_generated_color.cu.o __GLOBAL__I_a in cuda_compile_generated_copy_make_border.cu.o __GLOBAL__I_a in cuda_compile_generated_disp_bilateral_filter.cu.o __GLOBAL__I_a in cuda_compile_generated_generalized_hough.cu.o ... "std::ios_base::Init::~Init()", referenced from: __GLOBAL__I_a in cuda_compile_generated_bilateral_filter.cu.o __GLOBAL__I_a in cuda_compile_generated_blend.cu.o __GLOBAL__I_a in cuda_compile_generated_ccomponetns.cu.o __GLOBAL__I_a in cuda_compile_generated_color.cu.o __GLOBAL__I_a in cuda_compile_generated_copy_make_border.cu.o __GLOBAL__I_a in cuda_compile_generated_disp_bilateral_filter.cu.o __GLOBAL__I_a in cuda_compile_generated_generalized_hough.cu.o ... "std::ios_base::~ios_base()", referenced from: memSegCopyHelper(void, NCVMemoryType, void const, NCVMemoryType, unsigned long, CUstream_st) in cuda_compile_generated_NCV.cu.o memSegCopyHelper2D(void, unsigned int, NCVMemoryType, void const, unsigned int, NCVMemoryType, unsigned int, unsigned int, CUstream_st) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(unsigned int) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(NCVMemoryType, unsigned long, unsigned int, void) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::~NCVMemStackAllocator() in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::alloc(NCVMemSegment&, unsigned long) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::dealloc(NCVMemSegment&) in cuda_compile_generated_NCV.cu.o ... "std::basic_ostream<char, std::char_traits<char=""> >& std::__ostream_insert<char, std::char_traits<char=""> >(std::basic_ostream<char, std::char_traits<char=""> >&, char const, long)", referenced from: memSegCopyHelper(void, NCVMemoryType, void const, NCVMemoryType, unsigned long, CUstream_st) in cuda_compile_generated_NCV.cu.o memSegCopyHelper2D(void, unsigned int, NCVMemoryType, void const, unsigned int, NCVMemoryType, unsigned int, unsigned int, CUstream_st) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(unsigned int) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(NCVMemoryType, unsigned long, unsigned int, void) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::~NCVMemStackAllocator() in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::alloc(NCVMemSegment&, unsigned long) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::dealloc(NCVMemSegment&) in cuda_compile_generated_NCV.cu.o ... "std::__throw_length_error(char const)", referenced from: std::vector<unsigned int,="" std::allocator<unsigned="" int=""> >::_M_insert_aux(__gnu_cxx::__normal_iterator<unsigned int*,="" std::vector<unsigned="" int,="" std::allocator<unsigned="" int=""> > >, unsigned int const&) in cuda_compile_generated_NCVBroxOpticalFlow.cu.o std::vector<ncvvectoralloc<float>, std::allocator<ncvvectoralloc<float>> >::_M_insert_aux(__gnu_cxx::__normal_iterator<ncvvectoralloc<float>, std::vector<ncvvectoralloc<float>, std::allocator<ncvvectoralloc<float>> > >, NCVVectorAlloc<float> const&) in cuda_compile_generated_NCVBroxOpticalFlow.cu.o (anonymous namespace)::ImagePyramid::ImagePyramid(int) in cuda_compile_generated_NCVBroxOpticalFlow.cu.o std::vector<unsigned char,="" std::allocator<unsigned="" char=""> >::_M_fill_insert(__gnu_cxx::__normal_iterator<unsigned char*,="" std::vector<unsigned="" char,="" std::allocator<unsigned="" char=""> > >, unsigned long, unsigned char const&) in cuda_compile_generated_NCVHaarObjectDetection.cu.o std::vector<unsigned int,="" std::allocator<unsigned="" int=""> >::_M_insert_aux(__gnu_cxx::__normal_iterator<unsigned int*,="" std::vector<unsigned="" int,="" std::allocator<unsigned="" int=""> > >, unsigned int const&) in cuda_compile_generated_NCVHaarObjectDetection.cu.o std::vector<int, std::allocator<int=""> >::_M_insert_aux(__gnu_cxx::__normal_iterator<int*, std::vector<int,="" std::allocator<int=""> > >, int const&) in cuda_compile_generated_NCVHaarObjectDetection.cu.o std::vector<haarfeature64, std::allocator<haarfeature64=""> >::_M_fill_insert(__gnu_cxx::__normal_iterator<haarfeature64*, std::vector<haarfeature64,="" std::allocator<haarfeature64=""> > >, unsigned long, HaarFeature64 const&) in cuda_compile_generated_NCVHaarObjectDetection.cu.o ... "std::__throw_out_of_range(char const)", referenced from: ncvHaarGetClassifierSize(std::string const&, unsigned int&, unsigned int&, unsigned int&) in cuda_compile_generated_NCVHaarObjectDetection.cu.o ncvHaarLoadFromFile_host(std::string const&, HaarClassifierCascadeDescriptor&, NCVVector<haarstage64>&, NCVVector<haarclassifiernode128>&, NCVVector<haarfeature64>&) in cuda_compile_generated_NCVHaarObjectDetection.cu.o "std::cout", referenced from: stdDebugOutput(std::string const&) in cuda_compile_generated_NCV.cu.o "VTT for std::basic_ostringstream<char, std::char_traits<char="">, std::allocator<char> >", referenced from: memSegCopyHelper(void, NCVMemoryType, void const, NCVMemoryType, unsigned long, CUstream_st) in cuda_compile_generated_NCV.cu.o memSegCopyHelper2D(void, unsigned int, NCVMemoryType, void const, unsigned int, NCVMemoryType, unsigned int, unsigned int, CUstream_st) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(unsigned int) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(NCVMemoryType, unsigned long, unsigned int, void) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::~NCVMemStackAllocator() in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::alloc(NCVMemSegment&, unsigned long) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::dealloc(NCVMemSegment&) in cuda_compile_generated_NCV.cu.o ... "vtable for std::basic_streambuf<char, std::char_traits<char=""> >", referenced from: memSegCopyHelper(void, NCVMemoryType, void const, NCVMemoryType, unsigned long, CUstream_st) in cuda_compile_generated_NCV.cu.o memSegCopyHelper2D(void, unsigned int, NCVMemoryType, void const, unsigned int, NCVMemoryType, unsigned int, unsigned int, CUstream_st) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(unsigned int) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(NCVMemoryType, unsigned long, unsigned int, void) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::~NCVMemStackAllocator() in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::alloc(NCVMemSegment&, unsigned long) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::dealloc(NCVMemSegment&) in cuda_compile_generated_NCV.cu.o ... NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. "vtable for std::basic_stringbuf<char, std::char_traits<char="">, std::allocator<char> >", referenced from: memSegCopyHelper(void, NCVMemoryType, void const, NCVMemoryType, unsigned long, CUstream_st) in cuda_compile_generated_NCV.cu.o memSegCopyHelper2D(void, unsigned int, NCVMemoryType, void const, unsigned int, NCVMemoryType, unsigned int, unsigned int, CUstream_st) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(unsigned int) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::NCVMemStackAllocator(NCVMemoryType, unsigned long, unsigned int, void) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::~NCVMemStackAllocator() in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::alloc(NCVMemSegment&, unsigned long) in cuda_compile_generated_NCV.cu.o NCVMemStackAllocator::dealloc(NCVMemSegment&) in cuda_compile_generated_NCV.cu.o ... NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. 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]: [lib/libopencv_gpu.2.4.10.dylib] Error 1 make[1]: ** [modules/gpu/CMakeFiles/opencv_gpu.dir/all] Error 2

make: * [all] Error 2