Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. i can't load ffmpeg's dll?
QtWS25 Last Chance

i can't load ffmpeg's dll?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 2.1k Views
  • 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 Offline
    F Offline
    foxgod
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • F Offline
        F Offline
        foxgod
        wrote on last edited by
        #3

        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
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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
          0
          • M Offline
            M Offline
            MuldeR
            wrote on last edited by
            #5

            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
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved