raspberrypi 3 model b+でopencvをインストールしようとしたところ「インクルードファイルffmpeg / avformat.hが存在するかどうかの判断は、次の出力で失敗しました。」というエラーが出て解決方法がわかりません。
いくつかのサイトを回りましたがffmpeg / avformat.hに関するダイレクトな解決手段は明示されませんでした。
よろしくお願いします。
またavformat.hそのものは/usr/include/arm-linux-gnueabihf/libavformatに存在します。
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D INSTALL_PYTHON_EXAMPLE=ON -D OPENCV_EXTRA_MODULES_PATH=/home/username/opencv_contrib-3.1.0/modules -D BUILD_EXAMPLES=ON -D WITH_FFMPEG=ON -D WITH_V4L=OFF -D ENABLE_PRECOMPILED_HEADERS=OFF ..
CMakeError.log
1Determining if the include file ffmpeg/avformat.h exists failed with the following output: 2Change Dir: /home/pi/opencv-3.1.0/build-python3/CMakeFiles/CMakeTmp 3 4Run Build Command:"/usr/bin/make" "cmTC_6a37a/fast" 5/usr/bin/make -f CMakeFiles/cmTC_6a37a.dir/build.make CMakeFiles/cmTC_6a37a.dir/build 6make[1]: ディレクトリ '/home/pi/opencv-3.1.0/build-python3/CMakeFiles/CMakeTmp' に入ります 7Building C object CMakeFiles/cmTC_6a37a.dir/CheckIncludeFile.c.o 8/usr/bin/cc -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 -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG -o CMakeFiles/cmTC_6a37a.dir/CheckIncludeFile.c.o -c /home/pi/opencv-3.1.0/build-python3/CMakeFiles/CMakeTmp/CheckIncludeFile.c 9/home/pi/opencv-3.1.0/build-python3/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:29: fatal error: ffmpeg/avformat.h: そのようなファイルやディレクトリはありません 10 #include <ffmpeg/avformat.h>
あなたの回答
tips
プレビュー