I've compiled libav following the instructions in their README and INSTALL instructions.
Now I'm trying to follow this example from within Qt creator.
I've figured out how to include the libraries I need in the project file:
LIBS += \
/usr/local/lib/libavformat.a \
/usr/local/lib/libavutil.a
and also that I need to wrap the include directives in an extern:
extern "C" {
#include <libavformat/avformat.h>
#include <libavutil/dict.h>
}
The problem is that when I try and compile my Qt project, I just get heaps (about 700 or so) of messages about an "undefined reference to 'av_new_packet'" from functions throughout the library.
What else do I need to do to get this to work?
Update:
I noticed - just as my eyes were getting blurry from being up so late - that the errors were in header files located in the download folder? This is the folder I had run the configure and make commands which then produced the libav*.a libraries in /usr/local/lib that I'm linking to. Is this right? How do I fix if it isn't?