素梅派安裝OPENCV問題 - Linux

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 ..

這邊發生問題,小弟剛從新手村過來,如果訊息不夠我再補充萬分感謝



--

All Comments

Elvira avatarElvira2018-02-28
請先講你用的是哪邊的步驟 還有你用哪個發行板
Jake avatarJake2018-03-02
素梅派是啥鬼XD 然後你也不講哪個發行板 也不講按照哪裡
Ophelia avatarOphelia2018-03-05
看到的步驟 不講哪一步遇到問題 要別人幫你隔空抓藥?
George avatarGeorge2018-03-08
還有OpenCV抓哪一版?某教學是3.2 現在最新3.4
Andy avatarAndy2018-03-10
素美!
Dora avatarDora2018-03-14
那段錯誤訊息餵狗得到的解法 一個是用最新板OpenCV
Genevieve avatarGenevieve2018-03-16
另外一個是cmake後面加一句
Selena avatarSelena2018-03-17
詳細你自己找吧 你連標題都沒打對 我其實是很想噓的...
James avatarJames2018-03-18
標題打錯會讓以後想找的人找不到
Tom avatarTom2018-03-19
系統上有 libc6-dev 之類的東西嗎?
Iris avatarIris2018-03-22
回樓上,請問到哪裡檢查,沒有使用過UNIX系統很陌生> <
Anthony avatarAnthony2018-03-24
發行版&參考資料?我猜是Raspbian
Ingrid avatarIngrid2018-03-27
dpkg -l 試試看,當然這是猜測你用 Debian 系列的系統