OpenCV error in cmake

asked 2018-02-20 16:54:20 -0600

Rizqi gravatar image

I have following problem, I use the following Link to install and cmake opencV https://www.pyimagesearch.com/2016/04... how to overcome the error ??

(cv) pi@raspberrypi:~/opencv-3.1.0/build $ make -j4 [ 0%] Built target opencv_perf_core_pch_dephelp [ 1%] Built target opencv_core_pch_dephelp [ 3%] Built target libwebp [ 3%] Built target opencv_imgproc_pch_dephelp [ 3%] Built target opencv_imgcodecs_pch_dephelp [ 3%] Built target opencv_videoio_pch_dephelp [ 5%] Built target IlmImf [ 5%] Built target opencv_highgui_pch_dephelp [ 5%] Built target opencv_ts_pch_dephelp [ 5%] Built target pch_Generate_opencv_perf_core [ 5%] Built target opencv_test_core_pch_dephelp [ 7%] Built target opencv_flann_pch_dephelp [ 7%] Built target opencv_test_flann_pch_dephelp [ 7%] Built target opencv_test_imgproc_pch_dephelp [ 7%] Built target opencv_perf_imgproc_pch_dephelp [ 8%] Built target opencv_ml_pch_dephelp [ 8%] Built target opencv_test_ml_pch_dephelp [ 9%] Built target opencv_photo_pch_dephelp [ 9%] Built target opencv_test_photo_pch_dephelp [ 9%] Built target opencv_reg_pch_dephelp [ 9%] Built target opencv_perf_photo_pch_dephelp [ 9%] Built target opencv_perf_reg_pch_dephelp [ 9%] Built target opencv_test_reg_pch_dephelp [ 9%] Built target opencv_surface_matching_pch_dephelp [ 9%] Built target opencv_video_pch_dephelp [ 9%] Built target opencv_test_video_pch_dephelp [ 9%] Built target opencv_perf_video_pch_dephelp [ 9%] Built target opencv_dnn_pch_dephelp [ 9%] Built target opencv_test_dnn_pch_dephelp [ 10%] Built target libprotobuf [ 10%] Built target opencv_fuzzy_pch_dephelp [ 11%] Built target opencv_test_fuzzy_pch_dephelp [ 13%] Built target opencv_perf_imgcodecs_pch_dephelp [ 13%] Built target opencv_test_imgcodecs_pch_dephelp [ 14%] Built target opencv_shape_pch_dephelp [ 14%] Built target opencv_test_shape_pch_dephelp [ 14%] Built target opencv_test_videoio_pch_dephelp [ 14%] Built target opencv_perf_videoio_pch_dephelp [ 14%] Built target opencv_test_highgui_pch_dephelp [ 14%] Built target opencv_objdetect_pch_dephelp [ 14%] Built target opencv_test_objdetect_pch_dephelp [ 14%] Built target opencv_plot_pch_dephelp [ 14%] Built target opencv_perf_objdetect_pch_dephelp [ 14%] Built target opencv_superres_pch_dephelp [ 14%] Built target opencv_perf_superres_pch_dephelp [ 14%] Built target opencv_test_superres_pch_dephelp [ 14%] Built target opencv_xobjdetect_pch_dephelp [ 15%] Built target opencv_test_xphoto_pch_dephelp [ 15%] Built target opencv_perf_xphoto_pch_dephelp [ 15%] Built target opencv_bgsegm_pch_dephelp [ 15%] Built target opencv_test_bgsegm_pch_dephelp [ 15%] Built target opencv_bioinspired_pch_dephelp [ 15%] Built target opencv_perf_bioinspired_pch_dephelp [ 15%] Built target opencv_test_bioinspired_pch_dephelp [ 15%] Built target opencv_dpm_pch_dephelp [ 15%] Built target opencv_face_pch_dephelp [ 15%] Built target opencv_features2d_pch_dephelp [ 15%] Built target opencv_test_features2d_pch_dephelp [ 15%] Built target opencv_perf_features2d_pch_dephelp [ 15%] Built target opencv_line_descriptor_pch_dephelp [ 15%] Built target opencv_test_line_descriptor_pch_dephelp [ 15%] Built target opencv_perf_line_descriptor_pch_dephelp [ 15%] Built target opencv_saliency_pch_dephelp [ 15%] Built target opencv_text_pch_dephelp [ 15%] Built target opencv_calib3d_pch_dephelp [ 15%] Built target opencv_test_calib3d_pch_dephelp [ 15%] Built target opencv_perf_calib3d_pch_dephelp [ 16%] Built target opencv_ccalib_pch_dephelp [ 16%] Built target opencv_test_rgbd_pch_dephelp [ 16%] Built target opencv_rgbd_pch_dephelp [ 16%] Built target opencv_stereo_pch_dephelp [ 16%] Built target opencv_test_stereo_pch_dephelp [ 16%] Built target opencv_structured_light_pch_dephelp [ 17%] Built target opencv_perf_stereo_pch_dephelp [ 17%] Built target opencv_test_structured_light_pch_dephelp [ 17%] Built target opencv_tracking_pch_dephelp [ 17%] Built target opencv_perf_tracking_pch_dephelp [ 17%] Built target opencv_test_tracking_pch_dephelp [ 17%] Built target opencv_videostab_pch_dephelp [ 17%] Built target opencv_perf_xfeatures2d_pch_dephelp [ 17%] Built target opencv_xfeatures2d_pch_dephelp [ 19%] Built target opencv_test_xfeatures2d_pch_dephelp [ 19%] Built target opencv_perf_ximgproc_pch_dephelp [ 19%] Built target opencv_ximgproc_pch_dephelp [ 19%] Built target opencv_aruco_pch_dephelp [ 19%] Built target opencv_test_ximgproc_pch_dephelp [ 19%] Built target opencv_optflow_pch_dephelp [ 19%] Built target opencv_test_aruco_pch_dephelp [ 19%] Built target opencv_test_optflow_pch_dephelp [ 19%] Built target opencv_stitching_pch_dephelp [ 19%] Built target opencv_test_stitching_pch_dephelp [ 19%] Built target opencv_perf_stitching_pch_dephelp Scanning dependencies of target pch_Generate_opencv_imgproc Scanning dependencies of target pch_Generate_opencv_imgcodecs [ 19%] Generating precomp.hpp.gch/opencv_core_RELEASE.gch [ 19%] Generating precomp.hpp [ 19%] Generating precomp.hpp [ 19%] Built target pch_Generate_opencv_videoio Scanning dependencies of target pch_Generate_opencv_highgui [ 19%] Generating precomp.hpp.gch/opencv_imgproc_RELEASE.gch [ 19%] Generating precomp.hpp.gch/opencv_imgcodecs_RELEASE.gch [ 19%] Generating precomp.hpp In file included from /usr/include/c++/6/bits/stl_algo.h:59:0, from /usr/include/c++/6/algorithm:62, from /home/pi/opencv-3.1.0/modules/core/include/opencv2/core/base.hpp:53, from /home/pi/opencv-3.1.0/modules/core/include/opencv2/core.hpp ... (more)

edit retag flag offensive close merge delete

Comments

Mine is using rpi 3, OpenCV 3.4.0, kernel 4.4.18. IDLE 3.5 Don't used make -j4. I suggest you attempt make -j1. This will take about 3 hrs

supra56 gravatar imagesupra56 ( 2018-02-20 21:24:32 -0600 )edit

"opencv-3.1.0/" -- if at all please try with latest (3.4), not such an outdated thing

berak gravatar imageberak ( 2018-02-20 21:46:14 -0600 )edit