Ask Your Question

Revision history [back]

Building all the libraries on the Raspberry Pi

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?

Building all the libraries on the Raspberry Pi

I installed the OpenCV on my Raspberry Pi, however 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?

I suppose that the problem might be in the opencv.pc folder, once I had to create it by myself because it didn't exist, that's the content of this file:

prefix=/usr exec_prefix=${prefix} includedir=${prefix}/include libdir=${exec_prefix}/lib

Name: opencv Description: The opencv library Version: 2.x.x Cflags: -I${includedir}/opencv -I${includedir}/opencv2 Libs: -L${libdir} -lopencv_calib3d -lopencv_imgproc -lopencv_contrib -lopencv_legacy -lopencv_core -lopencv_ml -lopencv_features2d -lopencv_objdetect -lopencv_flann -lopencv_video -lopencv_highgui

Thanks!

Building all the libraries on the Raspberry Pi

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/ocl/

/home/pi/opencv/samples/c/facedetect.cpp/home/pi/opencv/samples/c/

/usr/local -D/share/OpenCV/samples/ocl/facedetect.cpp/usr/local -D/share/OpenCV/samples/ocl/

/usr/local -D/share/OpenCV/samples/c/facedetect.cpp/usr/local -D/share/OpenCV/samples/c/

How can I make for it to find these libraries?

I suppose that the problem might be in the opencv.pc folder, once I had to create it by myself because it didn't exist, that's the content of this file:

prefix=/usr exec_prefix=${prefix} includedir=${prefix}/include libdir=${exec_prefix}/lib

Name: opencv Description: The opencv library Version: 2.x.x Cflags: -I${includedir}/opencv -I${includedir}/opencv2 Libs: -L${libdir} -lopencv_calib3d -lopencv_imgproc -lopencv_contrib -lopencv_legacy -lopencv_core -lopencv_ml -lopencv_features2d -lopencv_objdetect -lopencv_flann -lopencv_video -lopencv_highgui

Thanks!

Building all the libraries on the Raspberry Pi

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/

/home/pi/opencv/samples/c/

/usr/local -D/share/OpenCV/samples/ocl/

/usr/local -D/share/OpenCV/samples/c/

How can I make for it to find these libraries?

I suppose that the problem might be in the opencv.pc folder, file, once I had to create it by myself because it didn't exist, that's the content of this file:

prefix=/usr exec_prefix=${prefix} includedir=${prefix}/include libdir=${exec_prefix}/lib

Name: opencv Description: The opencv library Version: 2.x.x Cflags: -I${includedir}/opencv -I${includedir}/opencv2 Libs: -L${libdir} -lopencv_calib3d -lopencv_imgproc -lopencv_contrib -lopencv_legacy -lopencv_core -lopencv_ml -lopencv_features2d -lopencv_objdetect -lopencv_flann -lopencv_video -lopencv_highgui

Thanks!

Building all the libraries on the Raspberry Pi

I installed the OpenCV on my Raspberry Pi,however 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 or directory compilation terminated. compiling tree_engine.cpp tree_engine.cpp:1:29: fatal error: opencv2/ml/ml.hpp: No such file or directory directory compilation terminated.

These files I looked for these files, and they are in the paths:

/home/pi/opencv/samples/ocl/

/home/pi/opencv/samples/c/

/usr/local -D/share/OpenCV/samples/ocl/

/usr/local -D/share/OpenCV/samples/c//home/pi/opencv/modules/core/include/opencv2/

/usr/local -D/include/opencv2/

How can I make for it to find these libraries?libraries? I think that the opencv in looking for them in the wrong path.

I suppose that the problem might be in the opencv.pc file, once I had to create it by myself because it didn't exist, that's the content of this file:

prefix=/usr exec_prefix=${prefix} includedir=${prefix}/include prefix=/usr exec_prefix=${prefix} includedir=${prefix}/include libdir=${exec_prefix}/lib

Name: opencv opencv Description: The opencv library library Version: 2.x.x 2.x.x Cflags: -I${includedir}/opencv -I${includedir}/opencv2 -I${includedir}/opencv2 Libs: -L${libdir} -lopencv_calib3d -lopencv_imgproc -lopencv_contrib -lopencv_legacy -lopencv_core -lopencv_ml -lopencv_features2d -lopencv_objdetect -lopencv_flann -lopencv_video -lopencv_highgui

Thanks!