- OpenCV => 3.4.3
- Operating System / Platform => Raspbian Stretch
Hi,
following the standard procedure on https://www.pyimagesearch.com/2017/09/04/raspbian-stretch-install-opencv-3-python-on-your-raspberry-pi/
after doing:
cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.4.3/modules \ -D BUILD_EXAMPLES=ON ..
gives me the following error at around 48%:
[ 46%] Built target opencv_perf_bioinspired Scanning dependencies of target opencv_line_descriptor
[ 46%] Built target example_dpm_cascade_detect_sequence
[ 46%] Building CXX object modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/src/LSDDetector.cpp.o Scanning dependencies of target opencv_saliency
[ 46%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/CmFile.cpp.o
[ 46%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/CmShow.cpp.o
[ 46%] Building CXX object modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/src/binary_descriptor.cpp.o
[ 46%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/FilterTIG.cpp.o
[ 46%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/ValStructVec.cpp.o
[ 46%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/BING/objectnessBING.cpp.o
[ 46%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/ocl/test_feature2d.cpp.o
[ 46%] Building CXX object modules/features2d/CMakeFiles/opencv_perf_features2d.dir/perf/opencl/perf_feature2d.cpp.o
[ 46%] Building CXX object modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/src/binary_descriptor_matcher.cpp.o
[ 46%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/motionSaliency.cpp.o
[ 46%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/motionSaliencyBinWangApr2014.cpp.o
[ 47%] Building CXX object modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/src/draw.cpp.o
[ 47%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_agast.cpp.o
[ 48%] Building CXX object modules/features2d/CMakeFiles/opencv_perf_features2d.dir/perf/perf_batchDistance.cpp.o
[ 48%] Linking CXX shared library ../../lib/libopencv_line_descriptor.so
[ 48%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/objectness.cpp.o
[ 48%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_akaze.cpp.o
[ 48%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/saliency.cpp.o /usr/bin/ld: error: ../../lib/libopencv_features2d.so.3.4.3: file too short collect2: error: ld returned 1 exit status modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/build.make:180: recipe for target 'lib/libopencv_line_descriptor.so.3.4.3' failed make[2]: * [lib/libopencv_line_descriptor.so.3.4.3] Error 1 CMakeFiles/Makefile2:12442: recipe for target 'modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/all' failed make[1]: [modules/line_descriptor/CMakeFiles/opencv_line_descriptor.dir/all] Error 2 make[1]: ** Waiting for unfinished jobs....
[ 48%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/staticSaliency.cpp.o
[ 48%] Building CXX object modules/features2d/CMakeFiles/opencv_perf_features2d.dir/perf/perf_feature2d.cpp.o
[ 48%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/staticSaliencyFineGrained.cpp.o
[ 48%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_brisk.cpp.o
[ 48%] Building CXX object modules/saliency/CMakeFiles/opencv_saliency.dir/src/staticSaliencySpectralResidual.cpp.o
[ 48%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_descriptors_invariance.cpp.o
[ 48%] Linking CXX shared library ../../lib/libopencv_saliency.so /usr/bin/ld: error: ../../lib/libopencv_features2d.so.3.4.3: file too short collect2: error: ld returned 1 exit status modules/saliency/CMakeFiles/opencv_saliency.dir/build.make:388: recipe for target 'lib/libopencv_saliency.so.3.4.3' failed make[2]: * [lib/libopencv_saliency.so.3.4.3] Error 1 CMakeFiles/Makefile2:13226: recipe for target 'modules/saliency/CMakeFiles/opencv_saliency.dir/all' failed make[1]: * [modules/saliency/CMakeFiles/opencv_saliency.dir/all] Error 2
[ 48%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_descriptors_regression.cpp.o
[ 48%] Building CXX object modules/features2d/CMakeFiles/opencv_perf_features2d.dir/perf/perf_main.cpp.o
[ 48%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_detectors_invariance.cpp.o
[ 48%] Linking CXX executable ../../bin/opencv_perf_features2d /usr/bin/ld: error: ../../lib/libopencv_features2d.so.3.4.3: file too short collect2: error: ld returned 1 exit status modules/features2d/CMakeFiles/opencv_perf_features2d.dir/build.make:207: recipe for target 'bin/opencv_perf_features2d' failed make[2]: * [bin/opencv_perf_features2d] Error 1 CMakeFiles/Makefile2:12252: recipe for target 'modules/features2d/CMakeFiles/opencv_perf_features2d.dir/all' failed make[1]: * [modules/features2d/CMakeFiles/opencv_perf_features2d.dir/all] Error 2
[ 48%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_detectors_regression.cpp.o
[ 48%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_fast.cpp.o
[ 48%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_keypoints.cpp.o
[ 48%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_main.cpp.o
[ 48%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_matchers_algorithmic.cpp.o
[ 48%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_mser.cpp.o
[ 48%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_nearestneighbors.cpp.o
[ 48%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_orb.cpp.o
[ 48%] Linking CXX executable ../../bin/opencv_test_features2d /usr/bin/ld: error: ../../lib/libopencv_features2d.so.3.4.3: file too short collect2: error: ld returned 1 exit status modules/features2d/CMakeFiles/opencv_test_features2d.dir/build.make:493: recipe for target 'bin/opencv_test_features2d' failed make[2]: * [bin/opencv_test_features2d] Error 1 CMakeFiles/Makefile2:12024: recipe for target 'modules/features2d/CMakeFiles/opencv_test_features2d.dir/all' failed make[1]: [modules/features2d/CMakeFiles/opencv_test_features2d.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: ** [all] Error 2
Any suggestions?
Cheers
Bettina