I installed the OpenCV on my Raspberry Pi, however I'm receiving some error messages when I do the command :"./build_all.sh" in the Opencv/samples/c folder
compiling contours.c contours.c:1:39: fatal error: opencv2/imgproc/imgproc_c.h: No such file or direc tory compilation terminated. compiling convert_cascade.c convert_cascade.c:1:43: fatal error: opencv2/objdetect/objdetect.hpp: No such fi le or directory compilation terminated. compiling delaunay.c delaunay.c:1:39: fatal error: opencv2/imgproc/imgproc_c.h: No such file or direc tory compilation terminated. compiling fback_c.c fback_c.c:1:38: fatal error: opencv2/video/tracking.hpp: No such file or directo ry compilation terminated. compiling morphology.c morphology.c:1:39: fatal error: opencv2/highgui/highgui.hpp: No such file or dir ectory compilation terminated. compiling motempl.c motempl.c:1:38: fatal error: opencv2/video/tracking.hpp: No such file or directo ry compilation terminated. compiling polar_transforms.c polar_transforms.c:1:39: fatal error: opencv2/imgproc/imgproc.hpp: No such file or directory compilation terminated. compiling pyramid_segmentation.c pyramid_segmentation.c:1:39: fatal error: opencv2/imgproc/imgproc.hpp: No such f ile or directory compilation terminated. compiling adaptiveskindetector.cpp adaptiveskindetector.cpp:41:39: fatal error: opencv2/contrib/contrib.hpp: No suc h file or directory compilation terminated. compiling bgfg_codebook.cpp bgfg_codebook.cpp:23:33: fatal error: opencv2/core/core.hpp: No such file or dir ectory compilation terminated. compiling blobtrack_sample.cpp blobtrack_sample.cpp:1:45: fatal error: opencv2/video/background_segm.hpp: No su ch file or directory compilation terminated. compiling facedetect.cpp facedetect.cpp:1:43: fatal error: opencv2/objdetect/objdetect.hpp: No such file or directory compilation terminated. compiling find_obj.cpp find_obj.cpp:7:43: fatal error: opencv2/objdetect/objdetect.hpp: No such file or directory compilation terminated. compiling find_obj_calonder.cpp find_obj_calonder.cpp:1:39: fatal error: opencv2/highgui/highgui.hpp: No such fi le or directory compilation terminated. compiling find_obj_ferns.cpp find_obj_ferns.cpp:1:39: fatal error: opencv2/highgui/highgui.hpp: No such file or directory compilation terminated. compiling latentsvmdetect.cpp latentsvmdetect.cpp:1:43: fatal error: opencv2/objdetect/objdetect.hpp: No such file or directory compilation terminated. compiling mser_sample.cpp mser_sample.cpp:5:39: fatal error: opencv2/highgui/highgui.hpp: No such file or directory compilation terminated. compiling mushroom.cpp mushroom.cpp:1:33: fatal error: opencv2/core/core_c.h: No such file or directory compilation terminated. compiling one_way_sample.cpp one_way_sample.cpp:10:39: fatal error: opencv2/imgproc/imgproc.hpp: No such file or directory compilation terminated. compiling smiledetect.cpp smiledetect.cpp:1:43: fatal error: opencv2/objdetect/objdetect.hpp: No such file or directory compilation terminated. compiling tree_engine.cpp tree_engine.cpp:1:29: fatal error: opencv2/ml/ml.hpp: No such file or directory compilation terminated.
These files are in the paths:
/home/pi/opencv/samples/ocl/facedetect.cpp
/home/pi/opencv/samples/c/facedetect.cpp
/usr/local -D/share/OpenCV/samples/ocl/facedetect.cpp
/usr/local -D/share/OpenCV/samples/c/facedetect.cpp
How can I make for it to find these libraries?