楼主:
yykkl 2018-02-23 17:13:55如标题:我从网络上按照步骤操作但是一直跳出下列的错误
鉴于本身是程式新手上网搜寻方法都似懂非懂想请教版上高手
[ 12%] Linking CXX static library ../../lib/libopencv_core_pch_dephelp.a
[ 12%] Built target opencv_core_pch_dephelp
[ 12%] Generating precomp.hpp
[ 12%] Generating precomp.hpp.gch/opencv_core_RELEASE.gch
In file included from /usr/include/c++/6/bits/stl_algo.h:59:0,
from /usr/include/c++/6/algorithm:62,
from
/home/pi/opencv-2.4.13/modules/core/include/opencv2/core/core.hpp:53,
from
/home/pi/opencv-2.4.13/build/modules/core/precomp.hpp:48:
/usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: No such file or
directory
#include_next <stdlib.h>
^
compilation terminated.
modules/core/CMakeFiles/pch_Generate_opencv_core.dir/build.make:62: recipe
for target 'modules/core/precomp.hpp.gch/opencv_core_RELEASE.gch' failed
make[2]: *** [modules/core/precomp.hpp.gch/opencv_core_RELEASE.gch] Error 1
CMakeFiles/Makefile2:1261: recipe for target
'modules/core/CMakeFiles/pch_Generate_opencv_core.dir/all' failed
make[1]: *** [modules/core/CMakeFiles/pch_Generate_opencv_core.dir/all] Error
2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
问题如上述
更新:
我是使用Raspberry Pi3 ModelB
版本:Raspbian Stretch
想安装2.4.13版OPENCV
执行步骤到
$ mkdir build
$ cd build
$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D
BUILD_NEW_PYTHON_SUPPORT=ON -D INSTALL_C_EXAMPLES=ON -D
INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON ..
这边发生问题,小弟刚从新手村过来,如果讯息不够我再补充万分感谢