[FFmpeg-devel] error in compiling a ffmpeg program in cygwin

shankhs ch shankhsps
Tue Feb 23 18:22:19 CET 2010


Hi
I am trying to write a program following the
http://www.inb.uni-luebeck.de/~boehme/using_libavcodec.html  but got
errors which I know why its coming

$ g++ avcodec_sample.cpp -lavutil -lavformat -lavcodec -lz -lavutil -lm
avcodec_sample.cpp:20:21: error: avcodec.h: No such file or directory
avcodec_sample.cpp:21:22: error: avformat.h: No such file or directory
avcodec_sample.cpp:25: error: ?AVFormatContext? was not declared in this scope

avcodec_sample.cpp:25: error: ?pFormatCtx? was not declared in this scope
avcodec_sample.cpp:25: error: ?AVCodecContext? was not declared in this scope
avcodec_sample.cpp:25: error: ?pCodecCtx? was not declared in this scope
avcodec_sample.cpp:26: error: expected primary-expression before ?int?
avcodec_sample.cpp:26: error: ?AVFrame? was not declared in this scope
avcodec_sample.cpp:26: error: ?pFrame? was not declared in this scope
avcodec_sample.cpp:26: error: initializer expression list treated as compound ex
pression
avcodec_sample.cpp:27: error: expected ?,? or ?;? before ?{? token

I think i am not including the libraries in the correct way

#include <avcodec.h>
#include <avformat.h>

I need to specify the full path but I don't know where these specific
libraries are in cygwin.
Please help me to run the program.
Thanx
shankhs



More information about the ffmpeg-devel mailing list