make:** ubuntu16.10中opencv安装期间的所有错误2

时间:2017-04-30 04:44:58

标签: opencv cmake

    [  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

我已经安装了build-essential软件包。 还找到了stdlib.h目前。 但我仍然得到这个错误。

我在https://github.com/milq/milq/blob/master/scripts/bash/install-opencv.sh

的ubuntu 16.10上安装opencv 3.2

我是linux的新手,所以请告诉我我是否做错了。(我已按照上述网站中的所有说明进行操作..)

1 个答案:

答案 0 :(得分:-1)

&#34;您可能错过了OpenCV 3.2.0&#34;

的先决条件
yourTextView.scrollEnabled = YES;

参考:

Tutorial OpenCV Linux

linuxfromscratch opencv