質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.44%
OpenCV

OpenCV(オープンソースコンピュータービジョン)は、1999年にインテルが開発・公開したオープンソースのコンピュータビジョン向けのクロスプラットフォームライブラリです。

Raspberry Pi

Raspberry Piは、ラズベリーパイ財団が開発した、名刺サイズのLinuxコンピュータです。 学校で基本的なコンピュータ科学の教育を促進することを意図しています。

Q&A

解決済

1回答

6928閲覧

raspberry piでcontrib付きのopencvをインストールできない件

uriuri

総合スコア47

OpenCV

OpenCV(オープンソースコンピュータービジョン)は、1999年にインテルが開発・公開したオープンソースのコンピュータビジョン向けのクロスプラットフォームライブラリです。

Raspberry Pi

Raspberry Piは、ラズベリーパイ財団が開発した、名刺サイズのLinuxコンピュータです。 学校で基本的なコンピュータ科学の教育を促進することを意図しています。

0グッド

0クリップ

投稿2017/11/23 07:14

現在、画像認識の勉強をしている最中です
opencvを用いて特徴点抽出をしようと以下のコードで実行し
import numpy as np
import cv2

img1 = cv2.imread('dollar.png',0)
img2 = cv2.imread('dollar_in_scene.png',0)

#特徴抽出機の生成
detector = cv2.xfeatures2d.SIFT_create()

#kpは特徴的な点の位置 destは特徴を現すベクトル
kp1, des1 = detector.detectAndCompute(img1, None)
kp2, des2 = detector.detectAndCompute(img2, None)

#特徴点の比較機
bf = cv2.BFMatcher()
matches = bf.knnMatch(des1,des2, k=2)

#割合試験を適用
good = []
match_param = 0.6
for m,n in matches:
if m.distance < match_param*n.distance:
good.append([m])

#cv2.drawMatchesKnnは適合している点を結ぶ画像を生成する
img3 = cv2.drawMatchesKnn(img1,kp1,img2,kp2,good, None,flags=2)

cv2.imwrite("shift_result.png", img3)

実行したところエラーがでました
Traceback (most recent call last):
File "/home/pi/models/tutorials/image/imagenet/特徴点 抽出.py", line 8, in <module>
detector = cv2.xfeatures2d.SIFT_create()
AttributeError: 'module' object has no attribute 'xfeatures2d'

サイトには、OpenCVはライセンスフリーではないアルゴリズムはcontribパッケージに隔離されています。なので、SIFTやSURFを使うためにはcontribパッケージを導入する必要があります。と書いてあったのでcontrib付きのopencvを入れるためopencvをアンインストールしpip install opencv-contrib-pythonでインストールを行ったところ
Downloading/unpacking opencv-contrib-python
Could not find any downloads that satisfy the requirement opencv-contrib-python
Cleaning up...
No distributions at all found for opencv-contrib-python
Storing debug log for failure in /home/pi/.pip/pip.log

というエラーがおき、pip install opencv-pythonも同じようなエラーがでて困っています
よろしければアドバイスのほうよろしくお願いします

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

RaspberryPi用のパッケージが用意されていないと思われます。
自力でソースからビルドする必要があるようです。
OpenCV + Python3 on Raspberry Pi
ラズパイにOpenCV 3.2 をインストールする(暫定版)

投稿2017/11/23 07:43

can110

総合スコア38313

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

uriuri

2017/11/23 09:41

実行したところ cmake -D CMAKE_BUILD_TYPE=RELEASE \ > -D CMAKE_INSTALL_PREFIX=/usr/local \ > -D INSTALL_PYTHON_EXAMPLES=ON \ > -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \ > -D BUILD_EXAMPLES=ON .. を入力しこのようなものがでて -- Detected version of GNU GCC: 49 (409) -- FP16: Compiler support is available -- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found suitable version "1.2.8", minimum required is "1.2.3") -- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.2.8") -- Found OpenEXR: /usr/lib/arm-linux-gnueabihf/libIlmImf.so CMake Warning at cmake/OpenCVFindLibsGUI.cmake:18 (find_package): By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Core", but CMake did not find one. Could not find a package configuration file provided by "Qt5Core" with any of the following names: Qt5CoreConfig.cmake qt5core-config.cmake Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set "Qt5Core_DIR" to a directory containing one of the above files. If "Qt5Core" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:556 (include) CMake Warning at cmake/OpenCVFindLibsGUI.cmake:19 (find_package): By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Gui", but CMake did not find one. Could not find a package configuration file provided by "Qt5Gui" with any of the following names: Qt5GuiConfig.cmake qt5gui-config.cmake Add the installation prefix of "Qt5Gui" to CMAKE_PREFIX_PATH or set "Qt5Gui_DIR" to a directory containing one of the above files. If "Qt5Gui" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:556 (include) CMake Warning at cmake/OpenCVFindLibsGUI.cmake:20 (find_package): By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Widgets", but CMake did not find one. Could not find a package configuration file provided by "Qt5Widgets" with any of the following names: Qt5WidgetsConfig.cmake qt5widgets-config.cmake Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set "Qt5Widgets_DIR" to a directory containing one of the above files. If "Qt5Widgets" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:556 (include) CMake Warning at cmake/OpenCVFindLibsGUI.cmake:21 (find_package): By not providing "FindQt5Test.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Test", but CMake did not find one. Could not find a package configuration file provided by "Qt5Test" with any of the following names: Qt5TestConfig.cmake qt5test-config.cmake Add the installation prefix of "Qt5Test" to CMAKE_PREFIX_PATH or set "Qt5Test_DIR" to a directory containing one of the above files. If "Qt5Test" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:556 (include) CMake Warning at cmake/OpenCVFindLibsGUI.cmake:22 (find_package): By not providing "FindQt5Concurrent.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Concurrent", but CMake did not find one. Could not find a package configuration file provided by "Qt5Concurrent" with any of the following names: Qt5ConcurrentConfig.cmake qt5concurrent-config.cmake Add the installation prefix of "Qt5Concurrent" to CMAKE_PREFIX_PATH or set "Qt5Concurrent_DIR" to a directory containing one of the above files. If "Qt5Concurrent" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:556 (include) qmake: could not exec '/usr/lib/arm-linux-gnueabihf/qt4/bin/qmake': No such file or directory CMake Error at /usr/share/cmake-3.6/Modules/FindQt4.cmake:1328 (message): Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x Call Stack (most recent call first): cmake/OpenCVFindLibsGUI.cmake:34 (find_package) CMakeLists.txt:556 (include) -- Configuring incomplete, errors occurred! See also "/home/pi/opencv/build/CMakeFiles/CMakeOutput.log". See also "/home/pi/opencv/build/CMakeFiles/CMakeError.log". make -j4では make: *** ターゲットが指定されておらず, makefile も見つかりません. 中止. とでてしまい行き詰まってしまいました 原因が分からず対処ができずごめんなさい
uriuri

2017/11/24 06:41

-- Detected version of GNU GCC: 49 (409) -- FP16: Compiler support is available -- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found suitable version "1.2.8", minimum required is "1.2.3") -- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.2.8") -- Found OpenEXR: /usr/lib/arm-linux-gnueabihf/libIlmImf.so -- Checking for module 'gstreamer-base-1.0' -- No package 'gstreamer-base-1.0' found -- Checking for module 'gstreamer-video-1.0' -- No package 'gstreamer-video-1.0' found -- Checking for module 'gstreamer-app-1.0' -- No package 'gstreamer-app-1.0' found -- Checking for module 'gstreamer-riff-1.0' -- No package 'gstreamer-riff-1.0' found -- Checking for module 'gstreamer-pbutils-1.0' -- No package 'gstreamer-pbutils-1.0' found -- Checking for module 'gstreamer-base-0.10' -- No package 'gstreamer-base-0.10' found -- Checking for module 'gstreamer-video-0.10' -- No package 'gstreamer-video-0.10' found -- Checking for module 'gstreamer-app-0.10' -- No package 'gstreamer-app-0.10' found -- Checking for module 'gstreamer-riff-0.10' -- No package 'gstreamer-riff-0.10' found -- Checking for module 'gstreamer-pbutils-0.10' -- No package 'gstreamer-pbutils-0.10' found -- Looking for linux/videodev.h -- Looking for linux/videodev.h - not found -- Looking for linux/videodev2.h -- Looking for linux/videodev2.h - found -- Looking for sys/videoio.h -- Looking for sys/videoio.h - not found -- Checking for module 'libgphoto2' -- No package 'libgphoto2' found -- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off -- Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR) -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) -- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) -- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file CMake Error at cmake/OpenCVModule.cmake:295 (message): No extra modules found in folder: /home/pi/opencv_contrib/modules Please provide path to 'opencv_contrib/modules' folder. Call Stack (most recent call first): modules/CMakeLists.txt:7 (ocv_glob_modules) CMake Warning (dev) at /usr/lib/arm-linux-gnueabihf/cmake/Qt5Core/Qt5CoreMacros.cmake:224 (configure_file): configure_file called with unknown argument(s): COPY_ONLY Call Stack (most recent call first): modules/highgui/CMakeLists.txt:39 (QT5_ADD_RESOURCES) This warning is for project developers. Use -Wno-dev to suppress it. -- General configuration for OpenCV 3.2.0 ===================================== -- Version control: 3.2.0 -- -- Platform: -- Timestamp: 2017-11-24T06:29:12Z -- Host: Linux 4.9.35-v7+ armv7l -- CMake: 3.6.2 -- CMake generator: Unix Makefiles -- CMake build tool: /usr/bin/make -- Configuration: RELEASE -- -- C/C++: -- Built as dynamic libs?: YES -- C++ Compiler: /usr/bin/c++ (ver 4.9.2) -- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -mfp16-format=ieee -mfpu=neon -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -mfpu=neon-fp16 -O3 -DNDEBUG -DNDEBUG -- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -mfp16-format=ieee -mfpu=neon -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -mfpu=neon-fp16 -g -O0 -DDEBUG -D_DEBUG -- C Compiler: /usr/bin/cc -- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -mfp16-format=ieee -mfpu=neon -ffunction-sections -fvisibility=hidden -mfpu=neon-fp16 -O3 -DNDEBUG -DNDEBUG -- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -mfp16-format=ieee -mfpu=neon -ffunction-sections -fvisibility=hidden -mfpu=neon-fp16 -g -O0 -DDEBUG -D_DEBUG -- Linker flags (Release): -- Linker flags (Debug): -- ccache: NO -- Precompiled headers: YES -- Extra dependencies: Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Test Qt5::Concurrent /usr/lib/arm-linux-gnueabihf/libpng.so /usr/lib/arm-linux-gnueabihf/libz.so /usr/lib/arm-linux-gnueabihf/libtiff.so /usr/lib/arm-linux-gnueabihf/libjasper.so /usr/lib/arm-linux-gnueabihf/libjpeg.so /usr/lib/arm-linux-gnueabihf/libImath.so /usr/lib/arm-linux-gnueabihf/libIlmImf.so /usr/lib/arm-linux-gnueabihf/libIex.so /usr/lib/arm-linux-gnueabihf/libHalf.so /usr/lib/arm-linux-gnueabihf/libIlmThread.so dc1394 avcodec avformat avutil swscale avresample dl m pthread rt -- 3rdparty dependencies: libwebp tegra_hal -- -- OpenCV modules: -- To be built: core flann imgproc ml photo video imgcodecs shape videoio highgui objdetect superres ts features2d calib3d stitching videostab python2 python3 -- Disabled: world -- Disabled by dependency: - -- Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java viz -- -- GUI: -- QT 5.x: YES (ver 5.3.2) -- QT OpenGL support: NO -- OpenGL support: NO -- VTK support: NO -- -- Media I/O: -- ZLib: /usr/lib/arm-linux-gnueabihf/libz.so (ver 1.2.8) -- JPEG: /usr/lib/arm-linux-gnueabihf/libjpeg.so (ver ) -- WEBP: build (ver 0.3.1) -- PNG: /usr/lib/arm-linux-gnueabihf/libpng.so (ver 1.2.50) -- TIFF: /usr/lib/arm-linux-gnueabihf/libtiff.so (ver 42 - 4.0.3) -- JPEG 2000: /usr/lib/arm-linux-gnueabihf/libjasper.so (ver 1.900.1) -- OpenEXR: /usr/lib/arm-linux-gnueabihf/libImath.so /usr/lib/arm-linux-gnueabihf/libIlmImf.so /usr/lib/arm-linux-gnueabihf/libIex.so /usr/lib/arm-linux-gnueabihf/libHalf.so /usr/lib/arm-linux-gnueabihf/libIlmThread.so (ver 1.6.1)
uriuri

2017/11/24 06:41

-- GDAL: NO -- GDCM: NO -- -- Video I/O: -- DC1394 1.x: NO -- DC1394 2.x: YES (ver 2.2.3) -- FFMPEG: YES -- avcodec: YES (ver 56.1.0) -- avformat: YES (ver 56.1.0) -- avutil: YES (ver 54.3.0) -- swscale: YES (ver 3.0.0) -- avresample: YES (ver 2.1.0) -- GStreamer: NO -- OpenNI: NO -- OpenNI PrimeSensor Modules: NO -- OpenNI2: NO -- PvAPI: NO -- GigEVisionSDK: NO -- Aravis SDK: NO -- UniCap: NO -- UniCap ucil: NO -- V4L/V4L2: NO/YES -- XIMEA: NO -- Xine: NO -- gPhoto2: NO -- -- Parallel framework: pthreads -- -- Other third-party libraries: -- Use IPP: NO -- Use VA: NO -- Use Intel VA-API/OpenCL: NO -- Use Lapack: NO -- Use Eigen: NO -- Use Cuda: NO -- Use OpenCL: YES -- Use OpenVX: NO -- Use custom HAL: YES (carotene (ver 0.0.1)) -- -- OpenCL: <Dynamic loading of OpenCL library> -- Include path: /home/pi/opencv/3rdparty/include/opencl/1.2 -- Use AMDFFT: NO -- Use AMDBLAS: NO -- -- Python 2: -- Interpreter: /usr/bin/python2.7 (ver 2.7.9) -- Libraries: /usr/lib/arm-linux-gnueabihf/libpython2.7.so (ver 2.7.9) -- numpy: /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.8.2) -- packages path: lib/python2.7/dist-packages -- -- Python 3: -- Interpreter: /usr/bin/python3.4 (ver 3.4.2) -- Libraries: /usr/lib/arm-linux-gnueabihf/libpython3.4m.so (ver 3.4.2) -- numpy: /usr/local/lib/python3.4/dist-packages/numpy/core/include (ver 1.13.3) -- packages path: lib/python3.4/dist-packages -- -- Python (for build): /usr/bin/python2.7 -- -- Java: -- ant: NO -- JNI: NO -- Java wrappers: NO -- Java tests: NO -- -- Matlab: Matlab not found or implicitly disabled -- -- Documentation: -- Doxygen: NO -- -- Tests and samples: -- Tests: YES -- Performance tests: YES -- C/C++ Examples: YES -- -- Install path: /usr/local -- -- cvconfig.h is in: /home/pi/opencv/build -- ----------------------------------------------------------------- -- -- Configuring incomplete, errors occurred! See also "/home/pi/opencv/build/CMakeFiles/CMakeOutput.log". See also "/home/pi/opencv/build/CMakeFiles/CMakeError.log".
uriuri

2017/11/24 06:45

指摘されたとおり改善してみた結果後 cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules -D BUILD_EXAMPLES=ON .. を行い上記がでました make -j4 の結果は以前と変りませんでした なぜサイトどおり行っているのに不具合がこんなにでるのか混乱しています No packageやCould notで示しているものが足りないのでしょうか? 知識不足ですみません
can110

2017/11/24 09:07

正直ソースからのビルドはとても大変です。 No package '~などのエラーメッセージを読み、理解し、ひとつずつ潰していくしかありません。 ただ、cmakeのビルドオプションについて「freetype」は不要など言及されていますので、ビルドオプションを変更(不要なものは無効に)することでビルド進展する可能性はあります。
uriuri

2017/11/24 13:28

opencvは以前入っていて問題なく動き、contrib付きのopencvにしようとアンインストールしてしまい今にいたります 試しに普通のopencvをインストールしようとしてもできないのが謎です 以前は普通に入ったのですが… とりあえず、足りないものを入れてみようと思います
uriuri

2017/11/24 16:33

なんとかmake -j4で起動するようになり途中でこのようなエラーが発生しました /home/pi/work/opencv-3.2.0/build_with_contrib/modules/calib3d/test_precomp.hpp:21:1: fatal error: can’t write PCH file: デバイスに空き領域がありません } ^ compilation terminated. In file included from /home/pi/work/opencv_contrib-3.2.0/modules/text/include/opencv2/text.hpp:43:0, from /home/pi/work/opencv-3.2.0/build_with_contrib/modules/text/test_precomp.hpp:6: /home/pi/work/opencv_contrib-3.2.0/modules/text/include/opencv2/text/ocr.hpp:469:1: fatal error: can’t write PCH file: デバイスに空き領域がありません } ^ compilation terminated. In file included from /home/pi/work/opencv-3.2.0/build_with_contrib/modules/calib3d/perf_precomp.hpp:15:0: /home/pi/work/opencv-3.2.0/modules/imgproc/include/opencv2/imgproc.hpp:4643:1: fatal error: can’t write PCH file: デバイスに空き領域がありません } // cv ^ compilation terminated. /home/pi/work/opencv-3.2.0/build_with_contrib/modules/calib3d/precomp.hpp:144:70: fatal error: can’t write PCH file: デバイスに空き領域がありません int checkChessboardBinary(const cv::Mat & img, const cv::Size & size); ^ compilation terminated. modules/text/CMakeFiles/pch_Generate_opencv_test_text.dir/build.make:62: recipe for target 'modules/text/test_precomp.hpp.gch/opencv_test_text_RELEASE.gch' failed make[2]: *** [modules/text/test_precomp.hpp.gch/opencv_test_text_RELEASE.gch] Error 1 CMakeFiles/Makefile2:10114: recipe for target 'modules/text/CMakeFiles/pch_Generate_opencv_test_text.dir/all' failed make[1]: *** [modules/text/CMakeFiles/pch_Generate_opencv_test_text.dir/all] Error 2 make[1]: *** 未完了のジョブを待っています.... modules/calib3d/CMakeFiles/pch_Generate_opencv_calib3d.dir/build.make:62: recipe for target 'modules/calib3d/precomp.hpp.gch/opencv_calib3d_RELEASE.gch' failed make[2]: *** [modules/calib3d/precomp.hpp.gch/opencv_calib3d_RELEASE.gch] Error 1 CMakeFiles/Makefile2:10425: recipe for target 'modules/calib3d/CMakeFiles/pch_Generate_opencv_calib3d.dir/all' failed make[1]: *** [modules/calib3d/CMakeFiles/pch_Generate_opencv_calib3d.dir/all] Error 2 modules/calib3d/CMakeFiles/pch_Generate_opencv_perf_calib3d.dir/build.make:62: recipe for target 'modules/calib3d/perf_precomp.hpp.gch/opencv_perf_calib3d_RELEASE.gch' failed make[2]: *** [modules/calib3d/perf_precomp.hpp.gch/opencv_perf_calib3d_RELEASE.gch] Error 1 CMakeFiles/Makefile2:10611: recipe for target 'modules/calib3d/CMakeFiles/pch_Generate_opencv_perf_calib3d.dir/all' failed make[1]: *** [modules/calib3d/CMakeFiles/pch_Generate_opencv_perf_calib3d.dir/all] Error 2 Preprocessed source stored into /tmp/ccDhX8FQ.out file, please attach this to your bugreport. modules/calib3d/CMakeFiles/pch_Generate_opencv_test_calib3d.dir/build.make:62: recipe for target 'modules/calib3d/test_precomp.hpp.gch/opencv_test_calib3d_RELEASE.gch' failed make[2]: *** [modules/calib3d/test_precomp.hpp.gch/opencv_test_calib3d_RELEASE.gch] Error 1 CMakeFiles/Makefile2:10531: recipe for target 'modules/calib3d/CMakeFiles/pch_Generate_opencv_test_calib3d.dir/all' failed make[1]: *** [modules/calib3d/CMakeFiles/pch_Generate_opencv_test_calib3d.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 デバイスの空き容量としては28.4MiBあるのですがどのくらい必要なのでしょうか? もし容量を増やす場合はSDカードを変えて初期からしなくてはいけないのでしょうか?
can110

2017/11/25 00:54

たしかSDカード自体に空きがあればrpi-configにて後で拡張できた記憶があります。詳細は検索ください。 また、以下では、とりあえず不要なライブラリを削除してみることも勧められています。 [HELP]error build openCV https://www.raspberrypi.org/forums/viewtopic.php?f=33&t=124646
uriuri

2017/11/25 14:48

お忙しい中いろいろと教えていただきありがとうございます 不要なパッケージを消したことで次に進めました
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.44%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問