On 24/02/2010, at 4:25 PM, shankhs ch wrote:
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
You need to add the -I option and point to the path containing your
include files
You will also need to add the -L option to point to the path
containing your avlibraries.
eg
g++ -I/usr/local/include -L/usr/local/lib avcodec_sample.cpp -lavutil -
lavformat -lavcodec -lz -lavutil -lm
you'll need to do a find on your filesystem to determine what paths
you should use.
Mark
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user