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. Creating a dynamic library which is linked to Qt5Widgets.dll statically.
Forum Updated to NodeBB v4.3 + New Features

Creating a dynamic library which is linked to Qt5Widgets.dll statically.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 259 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.
  • S Offline
    S Offline
    samdol
    wrote on last edited by
    #1

    Hi,

    I compiled Qt5.6 statically to create a standalone application. I could dynamically load ffmpeg for my app.
    I would like to use QtAV which is wrapper for ffmpeg. I could statically link QtAV and dynamically link ffmpeg. In other words,
    QtAV is merged to my statically built app while ffmpeg.dlls are required to run the app.
    But I also want to link QtAV dynamically. To do that, I have created dynamic QtAV library.
    Eventually, statically built app.exe + QtAV.dlls + ffmpeg.dlls is my goal.
    When I run my app, it not only requires QtAV.dlls and ffmpeg.dlls, but also Qt5Core.dll, Qt5Gui.dll, Qt5Widgets.dll....
    I think it is becuase QtAV requires those Qt5--.dlls. Is there any way to create QtAV.dlls which is statically linked to Qt5--.dlls
    so that my application does not require Qt5--.dlls?
    Thank you.

    Samdol.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @samdol said in Creating a dynamic library which is linked to Qt5Widgets.dll statically.:

      so that my application does not require Qt5--.dlls?

      No, and I'm pretty sure it will crash sooner or later when you use the arrangement above.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1

      • Login

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