Fatal Error Ffmpeg/avformat.h No Such File Or Directory
Contents |
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About sys/videoio.h: no such file or directory Us Learn more about Stack Overflow the company Business Learn more about hiring developers fatal error: sys/videoio.h: no such file or directory or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question ffmpeg/avformat.h no such file or directory opencv and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted
Libavformat/avformat.h: No Such File Or Directory
up and rise to the top Cmake error when I try install Opencv 3.1 up vote 1 down vote favorite I want to compile and install OpenCV 3.1 on my Ubuntu 15.10. I followed this tutorial. After I ran the cmake command, the installation begin, but the process return error, and ALL FILES IN MY UBUNTU TURNED READ-ONLY! Here is the input log: http://pastebin.com/vJz0U7es I don't understand cmake avformat.h ubuntu very well. Can Somebody help me? 15.10 opencv cmake share|improve this question edited Mar 7 at 0:30 andrew.46 11.8k83266 asked Mar 4 at 20:31 Guilherme Mauro 62 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote It is a known issue with 16.04. A bug report has been filled already and should be fixed soon. For now, I fixed it doing this: sudo -i mkdir /usr/include/ffmpeg cd /usr/include/ffmpeg ln -sf /usr/include/x86_64-linux-gnu/libavcodec/*.h ./ ln -sf /usr/include/x86_64-linux-gnu/libavformat/*.h ./ ln -sf /usr/include/x86_64-linux-gnu/libswscale/*.h ./ Basically, you create links in /usr/include/ffmpeg to all .h files in the directories: /usr/include/x86_64-linux-gnu/libavcodec/ /usr/include/x86_64-linux-gnu/libavformat/ /usr/include/x86_64-linux-gnu/libswscale/ I managed to avoid the sys/videoio.h issue and the linux/videodev.h issue by using the following cmake command (note you must have opencv_contrib checkedout and adjust the relative path below to your case). You also must run this cmake command twice or the Python3 part for some reason does not gets picked up. I do not know why the cmake command below fixed the issues to me, I just found it out after a long investigation (maybe with the cmake command below the fix above is not even necessary, I do not know). cmake \ -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D
Sign in Pricing Blog Support Search
Ffmpeg Install Ubuntu
GitHub This repository Watch 197 Star 986 Fork 1,240 opencv/opencv_contrib
Ubuntu Install Opencv
Code Issues 109 Pull requests 46 Projects 0 Pulse Graphs New issue fatal error: ffmpeg/avformat.h: No such http://askubuntu.com/questions/742180/cmake-error-when-i-try-install-opencv-3-1 file or directory during installation in linux #661 Open ankitVarshney1988 opened this Issue May 5, 2016 · 3 comments Projects None yet Labels invalid Milestone No milestone Assignees No one assigned https://github.com/opencv/opencv_contrib/issues/661 2 participants ankitVarshney1988 commented May 5, 2016 Hi, I am getting following error while making build of opencv-contrib.git. CMakeFiles/cmTryCompileExec3380356095.dir/build.make:57: recipe for target 'CMakeFiles/cmTryCompileExec3380356095.dir/CheckIncludeFile.c.o' failed make[1]: Leaving directory '/home/ecomadmin/Documents/opencv/opencv/build/CMakeFiles/CMakeTmp' make[1]: *** [CMakeFiles/cmTryCompileExec3380356095.dir/CheckIncludeFile.c.o] Error 1 Makefile:118: recipe for target 'cmTryCompileExec3380356095/fast' failed make: *** [cmTryCompileExec3380356095/fast] Error 2 Determining if the include file ffmpeg/avformat.h exists failed with the following output: Change Dir: /home/ecomadmin/Documents/opencv/opencv/build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTryCompileExec1258602677/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec1258602677.dir/build.make CMakeFiles/cmTryCompileExec1258602677.dir/build make[1]: Entering directory '/home/ecomadmin/Documents/opencv/opencv/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/ecomadmin/Documents/opencv/opencv/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1258602677.dir/CheckIncludeFile.c.o /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 -Wno-long-long -pthread -fom
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta http://stackoverflow.com/questions/36949053/opencv3-1-compilation-error-ffmpeg-avformat-h-file-not-found Discuss the workings and policies of this site About Us Learn http://raspberrypi.stackexchange.com/questions/42283/cant-compile-opencv-3-1-on-raspberry-pi-missing-videoio-h-videodev-h more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, no such helping each other. Join them; it only takes a minute: Sign up OpenCV3.1 compilation error 'ffmpeg/avformat.h' file not found up vote 0 down vote favorite On MacOS 10.9.5 Mavericks. I used homebrew to install python, cmake, ffmpeg. Entering ffmpeg in terminal shows it is installed. I downloaded Opencv3 and opencv_contrib Then cmake with this: cmake -D CMAKE_BUILD_TYPE=RELEASE no such file \ -D WITH_CUDA=OFF -D CMAKE_INSTALL_PREFIX=/Users/stefan/Downloads/opencv-3.1.0dl/build \ -D PYTHON2_LIBRARIES=/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/bin \ -D PYTHON2_PACKAGES_PATH=~/.virtualenvs/cv/lib/python2.7/site-packages \ -D PYTHON2_NUMPY_INCLUDE_DIRS=~/.virtualenvs/cv/lib/python2.7/site-packages/numpy/core/include \ -D PYTHON2_INCLUDE_DIR=/usr/local/Frameworks/Python.framework/Headers \ -D INSTALL_PYTHON_EXAMPLES=ON -D WITH_TBB=ON -D INSTALL_C_EXAMPLES=ON \ -D FFMPEG_INCLUDE_DIR=/usr/local/Cellar/ffmpeg/3.0.2/include \ -D FFMPEG_LIB_DIR=/usr/local/Cellar/ffmpeg/3.0.2/lib \ -D BUILD_EXAMPLES=ON \ -D OPENCV_EXTRA_MODULES_PATH=~/Downloads/opencv_contrib-3.0.0/modules .. terminal output included this: -- Video I/O: -- DC1394 1.x: NO -- DC1394 2.x: NO -- FFMPEG: YES -- codec: YES (ver 57.24.102) -- format: YES (ver 57.25.100) -- util: YES (ver 55.17.103) -- swscale: YES (ver 4.0.100) -- resample: YES (ver 3.0.0) -- gentoo-style: YES but CMakeError.log had this as its only error: 'ffmpeg/avformat.h' file not found The file does exist at /usr/local/Cellar/ffmpeg/3.0.2/include/libavformat/avformat.h I do not understand why I am getting this error if I properly specified the FFMPEG include directories in the cmake command.Also the variables FMPEG_INCLUDE_DIR and FFMPEG_LIB_DIR do not exist in the file, CMakeLists.txt. Does that make my use of those variables in the cake command useless? python osx ffmpeg cmake share|improve this question asked Apr 29 at 23:37 aquagremlin 1,4521315 add a comment| 1 Answer 1 activ
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Raspberry Pi Questions Tags Users Badges Unanswered Ask Question _ Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Can't compile OpenCV 3.1 on Raspberry PI: Missing videoio.h, videodev.h, up vote 0 down vote favorite 1 All, I've followed these instructions: installing OpenCV 3.0 on raspberry pi b+ and these: http://www.pyimagesearch.com/2015/10/26/how-to-install-opencv-3-on-raspbian-jessie/#comment-389260 and neither work, because I keep getting the following fatal errors. pi@raspberrypi:~/opencv-3.1.0/build $ cat /home/pi/opencv-3.1.0/build/CMakeFiles/CMakeError.log | grep fatal /home/pi/opencv-3.1.0/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:28: fatal error: linux/videodev.h: No such file or directory /home/pi/opencv-3.1.0/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:25: fatal error: sys/videoio.h: No such file or directory /home/pi/opencv-3.1.0/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:29: fatal error: ffmpeg/avformat.h: No such file or directory I've tried restarting from scratch with a new image of Jessie twice now, and I've scoured the internet and I keep turning up empty handed. Any guidance would be much appreciated. Thanks. opencv jessie share|improve this question asked Feb 7 at 17:55 EnemyBagJones 11 add a comment| 5 Answers 5 active oldest votes up vote 1 down vote You need the libv4l library. You can install it by running sudo apt-get install libv4l-dev. In addition, you may also need additional libraries to compile OpenCV properly. Running the command sudo apt-get build-dep opencv should get you everything you need. share|improve this answer answered Feb 8 at 1:59 Cunningham's Lawyer 4,364634 @EnemyBagJones libv4l-dev.