素梅派安裝OPENCV問題 - Linux

Bethany avatar
By Bethany
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

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

syslogd 的設定檔?

Cara avatar
By Cara
at 2018-02-19T19:00
鳥哥看到的還有 google 找到的設定檔都說是 /etc/syslog.conf 但是我剛剛在主機裡想看一下內容沒有這個檔案~ ps -ef|grep syslog 確定有這隻程式在跑 改用 find / -name syslog.conf 尋找 找到一個檔案 /etc/audisp/plugins.d ...

新增了網路卡但是找不到?

Elma avatar
By Elma
at 2018-02-19T10:46
在 VM 裡新增了一張網路卡, dmesg 有看到為 eth1 但是沒有設定檔 使用的是 CentOS 6.9 google 過以後得到的方法有幾種 1.start_udev 啟動以後重新啟動 network ~無效~ 2.刪除 /etc/udev/rule.d/70-persistent-net.r ...

2017年度最佳Linux版本出爐,Ubuntu奪冠

Joseph avatar
By Joseph
at 2018-02-18T10:40
2017年度最佳Linux版本出爐,Ubuntu奪冠Linux Mint緊追在後 https://www.ithome.com.tw/news/121357 年度桌面版Linux由Ubuntu獲取18.17%的票數獲勝,不過第二名的Linux Mint也有18.02 %,而桌面版第三名的Slackware ...

靠shell 批量建立帳號無權限?

Olivia avatar
By Olivia
at 2018-02-16T21:00
先建立一個 account.txt 內容很簡單的只有三個帳號 user1:123456 user2:123456 user3:123456 然後建立 script makeuser.sh, 內容如下~ #!/bin/bash FILE=$1 for i in `awk -F: and#39;{ print ...

被防火牆檔下來的Apache

Frederic avatar
By Frederic
at 2018-02-16T18:34
規格是由上方第一條開始執行, 以這行為例子 -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT 如果INPUT 收到的封包符合 -p tcp -m tcp --dport 80, 則會 ACCEPT,就是送給之後的程式處理, 如果這個封包不符合, 繼續用下一條規格判斷。 ...