I want to include the libavcodec in my Qt-project.
Should I do that with
#include <ffmpeg/libavcodec.h>
or with something more Qt, for example
QLibrary mylib("libavcodec");
And also a question to understand if I really got it: To use libavcodec, do I need to import the source-files or the .dll?
You should use libavcodec like any other library. That is, include it’s headers and link against it’s import library. If you are using
qmake, you will need to modify theINCLUDEPATHandLIBSvariables, see the documentation for some examples.The
QLibraryoption is only useful for DLLs that you want to load at run-time (e.g. plugins).