Error Avcodec.h No Such File Or Directory
Contents |
Sign in Pricing Blog Support Search GitHub This repository Watch 9 Star 70 Fork 16 dirkvdb/ffmpegthumbnailer Code Issues 9 Pull requests 0 Projects 0 Pulse Graphs fatal error: ffmpeg/avformat.h: no such file or directory opencv New issue ffmpeg include path issues #18 Closed GoogleCodeExporter opened this Issue Mar libavcodec/avcodec.h not found 15, 2015 · 21 comments Projects None yet Labels auto-migrated Priority-Medium Type-Defect Milestone No milestone
Libavcodec Avcodec H No Such File Or Directory Compilation Terminated
Assignees No one assigned 1 participant GoogleCodeExporter commented Mar 15, 2015 What steps will reproduce the problem? 1. Tried different pc's i386 and x64 2. What is the expected output? What
Install Ffmpeg
do you see instead? Won't compile In file included from moviedecoder.cpp:17: moviedecoder.h:33:28: error: ffmpeg/avcodec.h: No such file or directory moviedecoder.h:38:29: error: ffmpeg/avformat.h: No such file or directory moviedecoder.cpp:28:28: error: ffmpeg/swscale.h: No such file or directory Symlinking those files then gives another error. In file included from moviedecoder.h:38, from moviedecoder.cpp:17: /usr/include/ffmpeg/avformat.h:47:18: error: avio.h: No such file or directory Symlink that file as well and it compiles fine. What version of the product are you using? On what operating system? Fedora 10 Please provide any additional information below. moviedecoder.h #if HAVE_LIBAVCODEC_AVCODEC_H #include
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 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, helping each other. Join them; it only takes a minute: Sign up FFMpeg hello world failed up vote 3 down vote favorite 1 I'm new to https://github.com/dirkvdb/ffmpegthumbnailer/issues/18 the ffmpeg development. I've got my ffmpeg via ffmpeg.mplayerhq.hu/download.html using `git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg` My OS is Win7. I'm using Cygwin to help me work under a Unix-like environment. I'm using tutorial code from http://dranger.com/ffmpeg/ffmpeg.html. My current code is Tutorial01. So I've got my gcc, ffmpeg and code together. Working directory is /ffmpegDemo, code: /ffmpegDemo/tutorial01.c ffmpeg: /ffmpegDemo/ffmpeg And I use command gcc-I ffmpeg -o t01 tutorial01.c to compile my code. http://stackoverflow.com/questions/8442458/ffmpeg-hello-world-failed (cygwin doesn't support "copy", here're just some major message:) libavutil/avconfig.h: No such file or directory ... error: 'CODEC_TYPE_VIDEO' undeclared ... and others are just warnings. Indeed, there's no avconfig.h under ffmpeg/libavutil. I've looked for 'CODEC_TYPE_VIDEO', here's this reference: http://cekirdek.pardus.org.tr/~ismail/ffmpeg-docs/avcodec_8h.html says that 'CODEC_TYPE_VIDEO' is defined in libavcodec/avcodec.h. I've checked avcodec.h and didn't find any. I was very confused about this error and confused about all the "configure" and "make" things that I saw while searching for answer. Am I doing it wrong? Did I miss some steps? Hope that I could find an answer here. Thanks. c ffmpeg share|improve this question edited May 13 '14 at 3:38 SwankSwashbucklers 1,1721724 asked Dec 9 '11 at 7:41 xorange 141110 1 Did you install the libraries? You seem to have just cloned the source & are trying to build the tutorials w/o actually building & installing the library from the source –another.anon.coward Dec 9 '11 at 8:05 no I didn't install the libraries. I don't have much exp using opensource libs. I know there's something wrong, but I don't know how and why building and installing libs. What should I do? Thanks. –xorange Dec 9 '11 at 8:16 1 Oh ... in that case you need to buil
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 http://stackoverflow.com/questions/23062138/using-ffmpeg-headers-with-a-c-program Us Learn 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, helping each other. Join them; it only takes a minute: Sign up using ffmpeg headers with a c no such program up vote 1 down vote favorite i'm trying to learn ffmpeg from drangers guide (for school), i have a mac so the first thing i did was to use Macports and get ffmpeg and sdl... now when i'm tried to compile drangers code, the compiler didnt recognize the headers... so i used -I on gnu when compiling, and also gave the "whole/path/name..." to the headers, but no such file i always get an error on some header missing... below i will put the code with my corrections. i also tried including all the headers that i get an error about but there is always another header the compiler can't find i tried both gnu (on console) and on xcode. // tutorial01.c // Code based on a tutorial by Martin Bohme (boehme@inb.uni-luebeckREMOVETHIS.de) // Tested on Gentoo, CVS version 5/01/07 compiled with GCC 4.1.1 // A small sample program that shows how to use libavformat and libavcodec to // read video from a file. // // Use // // gcc -o tutorial01 tutorial01.c -lavformat -lavcodec -lz // // to build (assuming libavformat and libavcodec are correctly installed // your system). // // Run using // // tutorial01 myvideofile.mpg // // to write the first five frames from "myvideofile.mpg" to disk in PPM // format. #include "/opt/local/include/libavcodec/avcodec.h" #include "/opt/local/include/libavformat/avformat.h" #include