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.
-
Hi,
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.dllthat's right?
-
No,
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.
-
foxgod,
I highly recommend you read some tutorial about import libraries first:
http://en.wikipedia.org/wiki/Dynamic-link_library#Import_librariesFurthermore, if you want to know which DLL files your program file (EXE) will need at runtime, you should use the Dependency Walker tool:
http://www.dependencywalker.com/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:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).aspx#standard_search_order_for_desktop_applications__
See also this post
http://qt-project.org/forums/viewthread/42011/#174251