i can't load ffmpeg's dll?
my program can't run when i load ffmpeg's dll and write av_register_all(). but when i deleter av_register_all() ,my program can run? what's up? QT5.2.1 can't laod dll that is compiled by other compiler.
That's not a Qt problem. The first thing to check is that when you start your program the ffmpeg dll's can be found.
INCLUDEPATH += C:\mycode5.2.1\Litter-qi\ffmpeg\include
LIBS += C:\mycode5.2.1\Litter-qi\ffmpeg\lib\libvlc.dll
LIBS += C:\mycode5.2.1\Litter-qi\ffmpeg\lib\libvlccore.dll
You don't link to dlls but to lib files
And to run, you must have the path to the dlls in your PATH environment variable that you can update in the Run part of the Project panel.
I highly recommend you read some tutorial about import libraries first:
Furthermore, if you want to know which DLL files your program file (EXE) will need at runtime, you should use the Dependency Walker tool:
Finally, in order to know where you need to put those DLL's, so the program can actually find them (at runtime), have a look at the DLL search order:
See also this post