Ask Your Question

Revision history [back]

opencv make file with cuda support : undefined reference to `ncvHaarGetClassifierSize

I make opencv 2.4.10 + cuda , however get the followed error image description I also find the same error by google (https://stackoverflow.com/questions/37888949/opencv-make-fails-with-cuda-support-on-ubuntu http://opencv123.rssing.com/browser.php?indx=63119612&item=950 ) but did't get the solution. Could someone solve the problem? thx!

opencv make file failed with cuda support : undefined reference to `ncvHaarGetClassifierSize

I make opencv 2.4.10 + cuda , however get the followed error image description

I also find the same error by google (https://stackoverflow.com/questions/37888949/opencv-make-fails-with-cuda-support-on-ubuntu http://opencv123.rssing.com/browser.php?indx=63119612&item=950 ) http://opencv123.rssing.com/browser.php?indx=63119612&item=950)

but did't get the solution. solution. Could someone solve the problem? thx!

opencv make failed with cuda support : undefined reference to `ncvHaarGetClassifierSize

I make opencv 2.4.10 + cuda , however get the followed error error

[ 94%] Building CXX object modules/contrib/CMakeFiles/opencv_contrib.dir/src/gencolors.cpp.o ../../../lib/libopencv_gpu.so.2.4.10: undefined reference to ncvSetDebugOutputHandler(void (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))' ../../../lib/libopencv_gpu.so.2.4.10: undefined reference toloadFromXML(std::string const&, HaarClassifierCascadeDescriptor&, std::vector<haarstage64, std::allocator<haarstage64=""> >&, std::vector<haarclassifiernode128, std::allocator<haarclassifiernode128=""> >&, std::vector<haarfeature64, std::allocator<haarfeature64=""> >&)' ../../../lib/libopencv_gpu.so.2.4.10: undefined reference to ncvDebugOutput(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../../../lib/libopencv_gpu.so.2.4.10: undefined reference toncvHaarLoadFromFile_host(std::__cxx11::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&, HaarClassifierCascadeDescriptor&, NCVVector<haarstage64>&, NCVVector<haarclassifiernode128>&, NCVVector<haarfeature64>&)' ../../../lib/libopencv_gpu.so.2.4.10: undefined reference to `ncvHaarGetClassifierSize(std::__cxx11::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&, unsigned int&, unsigned int&, unsigned int&)' collect2: error: ld returned 1 exit status make[2]: * [bin/gpu_perf4au] Error 1 make[1]: * image description[modules/gpu/perf4au/CMakeFiles/gpu_perf4au.dir/all] Error 2

I also find the same error by google (https://stackoverflow.com/questions/37888949/opencv-make-fails-with-cuda-support-on-ubuntu http://opencv123.rssing.com/browser.php?indx=63119612&item=950) (here1 and here2)

but did't get the solution. Could someone solve Can somebody tell me what's the problem? thx!issue?

opencv make failed with cuda support : undefined reference to `ncvHaarGetClassifierSize

I make opencv 2.4.10 + cuda , however get the followed error

[ 94%] Building CXX object modules/contrib/CMakeFiles/opencv_contrib.dir/src/gencolors.cpp.o ../../../lib/libopencv_gpu.so.2.4.10: undefined reference to ncvSetDebugOutputHandler(void (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))' ../../../lib/libopencv_gpu.so.2.4.10: undefined reference toloadFromXML(std::string const&, HaarClassifierCascadeDescriptor&, std::vector<haarstage64, std::allocator<haarstage64=""> >&, std::vector<haarclassifiernode128, std::allocator<haarclassifiernode128=""> >&, std::vector<haarfeature64, std::allocator<haarfeature64=""> >&)' ../../../lib/libopencv_gpu.so.2.4.10: undefined reference to ncvDebugOutput(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../../../lib/libopencv_gpu.so.2.4.10: undefined reference toncvHaarLoadFromFile_host(std::__cxx11::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&, HaarClassifierCascadeDescriptor&, NCVVector<haarstage64>&, NCVVector<haarclassifiernode128>&, NCVVector<haarfeature64>&)' ../../../lib/libopencv_gpu.so.2.4.10: undefined reference to `ncvHaarGetClassifierSize(std::__cxx11::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&, unsigned int&, unsigned int&, unsigned int&)' collect2: error: ld returned 1 exit status make[2]: * [bin/gpu_perf4au] Error 1 make[1]: * [modules/gpu/perf4au/CMakeFiles/gpu_perf4au.dir/all] Error 2

I also find the same error by google (here1 and here2)

but did't get the solution. Can somebody tell me what's the issue?