Download the "opencv_contrib" on https://github.com/itseez/opencv_contrib
cd /home/lwc-pc/opencv-3.0.0
cmake -DOPENCV_EXTRA_MODULES_PATH=/opencv_contrib-master/modules /opencv-3.0.0
make -j5
But when I 'make", there is a error. I don't know how to do.
[ 65%] Built target opencv_face
[ 65%] Building CXX object modules/bioinspired/CMakeFiles/opencv_test_bioinspired.dir/test/test_retina_ocl.cpp.o
[ 65%] Building CXX object modules/bgsegm/CMakeFiles/opencv_test_bgsegm.dir/test/test_main.cpp.o
make[2]: * [modules/xphoto/CMakeFiles/opencv_xphoto.dir/src/grayworld_white_balance.cpp.o] Error 1
make[1]: * [modules/xphoto/CMakeFiles/opencv_xphoto.dir/all] Error 2
make[1]: * Waiting for unfinished jobs....
[ 65%] Building CXX object modules/bioinspired/CMakeFiles/opencv_test_bioinspired.dir/test/test_main.cpp.o
[ 65%] Building CXX object modules/bioinspired/CMakeFiles/opencv_perf_bioinspired.dir/perf/opencl/perf_retina.cpp.o
[ 65%] Linking CXX executable ../../bin/opencv_test_bioinspired
[ 65%] Linking CXX executable ../../bin/opencv_perf_bioinspired
[ 65%] Linking CXX executable ../../bin/opencv_test_bgsegm
[ 65%] Built target opencv_test_bioinspired
[ 65%] Built target opencv_perf_bioinspired
[ 65%] Built target opencv_test_bgsegm
make: * [all] Error 2