Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    i can't load ffmpeg's dll?

    General and Desktop
    3
    5
    1696
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      foxgod last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • F
          foxgod last edited by

          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

          that's right?

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • M
              MuldeR last edited by

              foxgod,

              I highly recommend you read some tutorial about import libraries first:
              http://en.wikipedia.org/wiki/Dynamic-link_library#Import_libraries

              Furthermore, 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

              My OpenSource software at: http://muldersoft.com/

              Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

              Go visit the coop: http://youtu.be/Jay...

              1 Reply Last reply Reply Quote 0
              • First post
                Last post