make:**在ubuntu16.10中安装opencv期间出现所有错误2 [8%]生成test\u precomp.hpp.gch/opencv\u test\u imgcodecs\u Release.gch 在/usr/include/c++/6/ext/string_conversions.h:41:0中包含的文件中, 从/usr/include/c++/6/bits/basic_string.h:5402, 从/usr/include/c++/6/string:52, from/home/vibha/OpenCV/modules/viz/include/opencv2/viz/types.hpp:49, from/home/vibha/OpenCV/modules/viz/include/opencv2/viz/vizcore.hpp:49, from/home/vibha/OpenCV/build/modules/viz/test_precomp.hpp:58: /usr/include/c++/6/cstdlib:75:25:致命错误:stdlib.h:没有这样的文件或目录 #下一步包括 ^ 编译终止。 modules/viz/CMakeFiles/pch_Generate_opencv_test_viz.dir/build.make:62:target“modules/viz/test_precomp.hpp.gch/opencv_test_viz_Release.gch”失败 make[2]:***[modules/viz/test_precomp.hpp.gch/opencv_test_viz_Release.gch]错误1 CMakeFiles/Makefile2:3080:目标“模块/viz/CMakeFiles/pch_生成_opencv_测试_viz.dir/all”的配方失败 make[1]:***[modules/viz/CMakeFiles/pch_Generate_opencv_test_viz.dir/all]错误2 make[1]:***等待未完成的工作。。。。 在/usr/include/c++/6/ext/string_conversions.h:41:0中包含的文件中, 从/usr/include/c++/6/bits/basic_string.h:5402, 从/usr/include/c++/6/string:52, 从/usr/include/c++/6/stdexcept:39, 从/usr/include/c++/6/array:39, 从/usr/include/c++/6/tuple:39, 从/usr/include/c++/6/bits/stl_map.h:63, 从/usr/include/c++/6/map:61, from/home/vibha/OpenCV/build/modules/viz/precomp.hpp:49: /usr/include/c++/6/cstdlib:75:25:致命错误:stdlib.h:没有这样的文件或目录 #下一步包括 ^ 编译终止。 modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/build.make:62:目标“modules/viz/precomp.hpp.gch/opencv_viz_Release.gch”的配方失败 make[2]:***[modules/viz/precomp.hpp.gch/opencv_viz_Release.gch]错误1 CMakeFiles/Makefile2:3186:目标'modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all'的配方失败 make[1]:***[modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all]错误2 [9%]生成perf_precomp.hpp.gch/opencv_perf_imgcodecs_Release.gch [9%]构建目标pch\u生成\u opencv\u性能\u imgcodecs [9%]构建目标pch\u生成\u opencv\u测试\u imgcodecs Makefile:160:目标“全部”的配方失败 make:**[全部]错误2

make:**在ubuntu16.10中安装opencv期间出现所有错误2 [8%]生成test\u precomp.hpp.gch/opencv\u test\u imgcodecs\u Release.gch 在/usr/include/c++/6/ext/string_conversions.h:41:0中包含的文件中, 从/usr/include/c++/6/bits/basic_string.h:5402, 从/usr/include/c++/6/string:52, from/home/vibha/OpenCV/modules/viz/include/opencv2/viz/types.hpp:49, from/home/vibha/OpenCV/modules/viz/include/opencv2/viz/vizcore.hpp:49, from/home/vibha/OpenCV/build/modules/viz/test_precomp.hpp:58: /usr/include/c++/6/cstdlib:75:25:致命错误:stdlib.h:没有这样的文件或目录 #下一步包括 ^ 编译终止。 modules/viz/CMakeFiles/pch_Generate_opencv_test_viz.dir/build.make:62:target“modules/viz/test_precomp.hpp.gch/opencv_test_viz_Release.gch”失败 make[2]:***[modules/viz/test_precomp.hpp.gch/opencv_test_viz_Release.gch]错误1 CMakeFiles/Makefile2:3080:目标“模块/viz/CMakeFiles/pch_生成_opencv_测试_viz.dir/all”的配方失败 make[1]:***[modules/viz/CMakeFiles/pch_Generate_opencv_test_viz.dir/all]错误2 make[1]:***等待未完成的工作。。。。 在/usr/include/c++/6/ext/string_conversions.h:41:0中包含的文件中, 从/usr/include/c++/6/bits/basic_string.h:5402, 从/usr/include/c++/6/string:52, 从/usr/include/c++/6/stdexcept:39, 从/usr/include/c++/6/array:39, 从/usr/include/c++/6/tuple:39, 从/usr/include/c++/6/bits/stl_map.h:63, 从/usr/include/c++/6/map:61, from/home/vibha/OpenCV/build/modules/viz/precomp.hpp:49: /usr/include/c++/6/cstdlib:75:25:致命错误:stdlib.h:没有这样的文件或目录 #下一步包括 ^ 编译终止。 modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/build.make:62:目标“modules/viz/precomp.hpp.gch/opencv_viz_Release.gch”的配方失败 make[2]:***[modules/viz/precomp.hpp.gch/opencv_viz_Release.gch]错误1 CMakeFiles/Makefile2:3186:目标'modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all'的配方失败 make[1]:***[modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all]错误2 [9%]生成perf_precomp.hpp.gch/opencv_perf_imgcodecs_Release.gch [9%]构建目标pch\u生成\u opencv\u性能\u imgcodecs [9%]构建目标pch\u生成\u opencv\u测试\u imgcodecs Makefile:160:目标“全部”的配方失败 make:**[全部]错误2,opencv,cmake,Opencv,Cmake,我已经安装了build essential软件包。 也发现有stdlib.h存在。 但我还是犯了这个错误 我正在ubuntu 16.10上从安装opencv 3.2 我是linux新手,请告诉我我是否做错了什么。(我已经按照上面站点中的所有说明进行了操作。)“您可能错过了OpenCV 3.2.0的先决条件” 参考: 我在[]中找到了解决方案的可能副本。 [ 8%] Generating test_precomp.hpp.gch/opencv_test_imgcodecs_Releas

我已经安装了build essential软件包。 也发现有stdlib.h存在。 但我还是犯了这个错误

我正在ubuntu 16.10上从安装opencv 3.2

我是linux新手,请告诉我我是否做错了什么。(我已经按照上面站点中的所有说明进行了操作。)

“您可能错过了OpenCV 3.2.0的先决条件”

参考:

我在[]中找到了解决方案的可能副本。
    [  8%] Generating test_precomp.hpp.gch/opencv_test_imgcodecs_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 /home/vibha/OpenCV/modules/viz/include/opencv2/viz/types.hpp:49,
             from /home/vibha/OpenCV/modules/viz/include/opencv2/viz/vizcore.hpp:49,
             from /home/vibha/OpenCV/build/modules/viz/test_precomp.hpp:58:
/usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
                     ^
compilation terminated.
modules/viz/CMakeFiles/pch_Generate_opencv_test_viz.dir/build.make:62: recipe for target 'modules/viz/test_precomp.hpp.gch/opencv_test_viz_Release.gch' failed
make[2]: *** [modules/viz/test_precomp.hpp.gch/opencv_test_viz_Release.gch] Error 1
CMakeFiles/Makefile2:3080: recipe for target 'modules/viz/CMakeFiles/pch_Generate_opencv_test_viz.dir/all' failed
make[1]: *** [modules/viz/CMakeFiles/pch_Generate_opencv_test_viz.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
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/stdexcept:39,
             from /usr/include/c++/6/array:39,
             from /usr/include/c++/6/tuple:39,
             from /usr/include/c++/6/bits/stl_map.h:63,
             from /usr/include/c++/6/map:61,
             from /home/vibha/OpenCV/build/modules/viz/precomp.hpp:49:
/usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
                     ^
compilation terminated.
modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/build.make:62: recipe for target 'modules/viz/precomp.hpp.gch/opencv_viz_Release.gch' failed
make[2]: *** [modules/viz/precomp.hpp.gch/opencv_viz_Release.gch] Error 1
CMakeFiles/Makefile2:3186: recipe for target 'modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all' failed
make[1]: *** [modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all] Error 2
[  9%] Generating perf_precomp.hpp.gch/opencv_perf_imgcodecs_Release.gch
[  9%] Built target pch_Generate_opencv_perf_imgcodecs
[  9%] Built target pch_Generate_opencv_test_imgcodecs
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
[compiler] sudo apt-get install build-essential
[required] sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
[optional] sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev