installation when wrong on ubuntu 16.10
Hello guys I'm trying to install opencv- 2.4-13 on ubuntu 16.10(x64) /opencv-2.4.13/release$ make -j2
[ 0%] Built target opencv_core_pch_dephelp
[ 2%] Built target opencv_perf_core_pch_dephelp
[ 5%] Built target IlmImf
[ 5%] Built target opencv_test_core_pch_dephelp
[ 5%] Built target opencv_ts_pch_dephelp
[ 5%] Automatic moc for target opencv_highgui
[ 5%] Automatic moc for target opencv_highgui_pch_dephelp
[ 5%] Built target opencv_highgui_pch_dephelp_automoc
[ 5%] Built target opencv_highgui_automoc
[ 5%] Built target opencv_imgproc_pch_dephelp
[ 6%] Built target opencv_flann_pch_dephelp
[ 6%] Built target opencv_features2d_pch_dephelp
[ 6%] Built target opencv_calib3d_pch_dephelp
[ 6%] Built target opencv_video_pch_dephelp
[ 6%] Generating test_precomp.hpp.gch/opencv_test_core_RELEASE.gch
[ 6%] Generating perf_precomp.hpp.gch/opencv_perf_core_RELEASE.gch
In file included from /usr/include/c++/6/ext/string_conversions.h:41:0,
from /usr/include/c++/6/bits/basic_string.h:5402,
from /usr/include/c++/6/string:52,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /home/q_p/opencv-2.4.13/modules/ts/include/opencv2/ts/ts_gtest.h:55,
from /home/q_p/opencv-2.4.13/modules/ts/include/opencv2/ts/ts.hpp:66,
from /home/q_p/opencv-2.4.13/release/modules/core/test_precomp.hpp:12:
/usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^
In file included from /usr/include/c++/6/ext/string_conversions.h:41:0,
from /usr/include/c++/6/bits/basic_string.h:5402,
from /usr/include/c++/6/string:52,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /home/q_p/opencv-2.4.13/modules/ts/include/opencv2/ts/ts_gtest.h:55,
from /home/q_p/opencv-2.4.13/modules/ts/include/opencv2/ts/ts.hpp:66,
from /home/q_p/opencv-2.4.13/release/modules/core/perf_precomp.hpp:12:
/usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^
compilation terminated.
compilation terminated.
modules/core/CMakeFiles/pch_Generate_opencv_perf_core.dir/build.make:62: recipe for target 'modules/core/perf_precomp.hpp.gch/opencv_perf_core_RELEASE.gch' failed
make[2]: *** [modules/core/perf_precomp.hpp.gch/opencv_perf_core_RELEASE.gch] Error 1
CMakeFiles/Makefile2:1250: recipe for target 'modules/core/CMakeFiles/pch_Generate_opencv_perf_core.dir/all' failed
make[1]: *** [modules/core/CMakeFiles/pch_Generate_opencv_perf_core.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
modules/core/CMakeFiles/pch_Generate_opencv_test_core.dir/build.make:62: recipe for target 'modules/core/test_precomp.hpp.gch/opencv_test_core_RELEASE.gch' failed
make[2]: *** [modules/core/test_precomp.hpp.gch/opencv_test_core_RELEASE.gch] Error 1
CMakeFiles/Makefile2:1128: recipe for target 'modules/core/CMakeFiles/pch_Generate_opencv_test_core.dir/all' failed
make[1]: *** [modules/core/CMakeFiles/pch_Generate_opencv_test_core.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
Thx for your time