/lib/libopencv_calib3d.so.3.1.0: file not recognized: File truncated << make -j $nproc
hello guys. I'm trinig to install opencv 3.1 in ubuntu x64
this is error i receive after run
make -j $nproc
--------------
Linking CXX executable ../../bin/opencv_createsamples
Linking CXX executable ../../bin/opencv_traincascade
Linking CXX executable ../../bin/opencv_perf_calib3d
Linking CXX shared library ../../lib/libopencv_videostab.so
Linking CXX executable ../../bin/opencv_test_calib3d
../../lib/libopencv_calib3d.so.3.1.0: file not recognized: File truncated
collect2: error: ld returned 1 exit status
apps/createsamples/CMakeFiles/opencv_createsamples.dir/build.make:123: recipe for target 'bin/opencv_createsamples' failed
make[2]: *** [bin/opencv_createsamples] Error 1
CMakeFiles/Makefile2:6891: recipe for target 'apps/createsamples/CMakeFiles/opencv_createsamples.dir/all' failed
make[1]: *** [apps/createsamples/CMakeFiles/opencv_createsamples.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
../../lib/libopencv_calib3d.so.3.1.0: file not recognized: File truncated
collect2: error: ld returned 1 exit status
Linking CXX shared library ../../lib/libopencv_stitching.so
modules/videostab/CMakeFiles/opencv_videostab.dir/build.make:349: recipe for target 'lib/libopencv_videostab.so.3.1.0' failed
make[2]: *** [lib/libopencv_videostab.so.3.1.0] Error 1
CMakeFiles/Makefile2:6560: recipe for target 'modules/videostab/CMakeFiles/opencv_videostab.dir/all' failed
make[1]: *** [modules/videostab/CMakeFiles/opencv_videostab.dir/all] Error 2
../../lib/libopencv_calib3d.so.3.1.0: file not recognized: File truncated
collect2: error: ld returned 1 exit status
apps/traincascade/CMakeFiles/opencv_traincascade.dir/build.make:373: recipe for target 'bin/opencv_traincascade' failed
make[2]: *** [bin/opencv_traincascade] Error 1
CMakeFiles/Makefile2:6832: recipe for target 'apps/traincascade/CMakeFiles/opencv_traincascade.dir/all' failed
make[1]: *** [apps/traincascade/CMakeFiles/opencv_traincascade.dir/all] Error 2
../../lib/libopencv_calib3d.so.3.1.0: file not recognized: File truncated
collect2: error: ld returned 1 exit status
modules/calib3d/CMakeFiles/opencv_perf_calib3d.dir/build.make:198: recipe for target 'bin/opencv_perf_calib3d' failed
make[2]: *** [bin/opencv_perf_calib3d] Error 1
CMakeFiles/Makefile2:5744: recipe for target 'modules/calib3d/CMakeFiles/opencv_perf_calib3d.dir/all' failed
make[1]: *** [modules/calib3d/CMakeFiles/opencv_perf_calib3d.dir/all] Error 2
../../lib/libopencv_calib3d.so.3.1.0: file not recognized: File truncated
collect2: error: ld returned 1 exit status
modules/stitching/CMakeFiles/opencv_stitching.dir/build.make:408: recipe for target 'lib/libopencv_stitching.so.3.1.0' failed
make[2]: *** [lib/libopencv_stitching.so.3.1.0] Error 1
CMakeFiles/Makefile2:6254: recipe for target 'modules/stitching/CMakeFiles/opencv_stitching.dir/all' failed
make[1]: *** [modules/stitching/CMakeFiles/opencv_stitching.dir/all] Error 2
../../lib/libopencv_calib3d.so.3.1.0: file not recognized: File truncated
collect2: error: ld returned 1 exit status
modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/build.make:748: recipe for target 'bin/opencv_test_calib3d' failed
make[2]: *** [bin/opencv_test_calib3d] Error 1
CMakeFiles/Makefile2:5824: recipe for target 'modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/all' failed
make[1]: *** [modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/all] Error 2
Linking CXX shared module ../../lib/libopencv_java310.so
../../lib/libopencv_calib3d.so.3.1.0: file not recognized: File truncated
collect2: error: ld returned 1 exit status
modules/java/CMakeFiles/opencv_java.dir/build.make:11798: recipe for target 'lib/libopencv_java310.so' failed
make[2]: *** [lib/libopencv_java310.so] Error 1
CMakeFiles/Makefile2:6015: recipe for target 'modules/java ...
try to clean your build folder, re-run cmake, and make (but single-threaded, without
-j $nproc
)Thx.!! you guys for your support