素梅派安裝OPENCV問題 - Linux

By Bethany
at 2018-02-23T17:13
at 2018-02-23T17:13
Table of Contents
如標題:我從網路上按照步驟操作但是一直跳出下列的錯誤
鑒於本身是程式新手上網搜尋方法都似懂非懂想請教版上高手
[ 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 ..
這邊發生問題,小弟剛從新手村過來,如果訊息不夠我再補充萬分感謝
--
Tags:
Linux
All Comments

By Elvira
at 2018-02-28T15:59
at 2018-02-28T15:59

By Jake
at 2018-03-02T00:29
at 2018-03-02T00:29

By Ophelia
at 2018-03-05T15:08
at 2018-03-05T15:08

By George
at 2018-03-08T03:25
at 2018-03-08T03:25

By Andy
at 2018-03-10T22:35
at 2018-03-10T22:35

By Dora
at 2018-03-14T18:40
at 2018-03-14T18:40

By Genevieve
at 2018-03-16T15:45
at 2018-03-16T15:45

By Selena
at 2018-03-17T11:37
at 2018-03-17T11:37

By James
at 2018-03-18T20:19
at 2018-03-18T20:19

By Tom
at 2018-03-19T17:01
at 2018-03-19T17:01

By Iris
at 2018-03-22T20:08
at 2018-03-22T20:08

By Anthony
at 2018-03-24T11:53
at 2018-03-24T11:53

By Ingrid
at 2018-03-27T05:59
at 2018-03-27T05:59
Related Posts
syslogd 的設定檔?

By Cara
at 2018-02-19T19:00
at 2018-02-19T19:00
新增了網路卡但是找不到?

By Elma
at 2018-02-19T10:46
at 2018-02-19T10:46
2017年度最佳Linux版本出爐,Ubuntu奪冠

By Joseph
at 2018-02-18T10:40
at 2018-02-18T10:40
靠shell 批量建立帳號無權限?

By Olivia
at 2018-02-16T21:00
at 2018-02-16T21:00
被防火牆檔下來的Apache

By Frederic
at 2018-02-16T18:34
at 2018-02-16T18:34