[問題] Raspberry Pi3安裝OPENCV問題

看板Linux作者時間7年前 (2018/02/23 17:13), 7年前編輯推噓3(3010)
留言13則, 6人參與, 7年前最新討論串1/1
如標題:我從網路上按照步驟操作但是一直跳出下列的錯誤 鑒於本身是程式新手上網搜尋方法都似懂非懂想請教版上高手 [ 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 .. 這邊發生問題,小弟剛從新手村過來,如果訊息不夠我再補充萬分感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.116.201.63 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1519377237.A.6D1.html

02/23 18:08, 7年前 , 1F
請先講你用的是哪邊的步驟 還有你用哪個發行板
02/23 18:08, 1F

02/23 18:35, 7年前 , 2F
素梅派是啥鬼XD 然後你也不講哪個發行板 也不講按照哪裡
02/23 18:35, 2F

02/23 18:36, 7年前 , 3F
看到的步驟 不講哪一步遇到問題 要別人幫你隔空抓藥?
02/23 18:36, 3F

02/23 18:40, 7年前 , 4F
還有OpenCV抓哪一版?某教學是3.2 現在最新3.4
02/23 18:40, 4F

02/23 18:44, 7年前 , 5F
素美!
02/23 18:44, 5F

02/23 18:46, 7年前 , 6F
那段錯誤訊息餵狗得到的解法 一個是用最新板OpenCV
02/23 18:46, 6F

02/23 18:47, 7年前 , 7F
另外一個是cmake後面加一句
02/23 18:47, 7F

02/23 18:49, 7年前 , 8F
詳細你自己找吧 你連標題都沒打對 我其實是很想噓的...
02/23 18:49, 8F
※ 編輯: yykkl (140.116.201.63), 02/23/2018 21:58:06

02/23 22:00, 7年前 , 9F
標題打錯會讓以後想找的人找不到
02/23 22:00, 9F

02/23 22:16, 7年前 , 10F
系統上有 libc6-dev 之類的東西嗎?
02/23 22:16, 10F

02/23 22:56, 7年前 , 11F
回樓上,請問到哪裡檢查,沒有使用過UNIX系統很陌生> <
02/23 22:56, 11F

02/23 22:59, 7年前 , 12F
發行版&參考資料?我猜是Raspbian
02/23 22:59, 12F
※ 編輯: yykkl (140.116.201.63), 02/23/2018 23:07:30

02/23 23:17, 7年前 , 13F
dpkg -l 試試看,當然這是猜測你用 Debian 系列的系統
02/23 23:17, 13F
文章代碼(AID): #1QZzjLRH (Linux)
文章代碼(AID): #1QZzjLRH (Linux)