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 to
loadFromXML(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 to
ncvHaarLoadFromFile_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?