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. How to make the exe file by Static build to include 3rd party dll
Forum Updated to NodeBB v4.3 + New Features

How to make the exe file by Static build to include 3rd party dll

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 320 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.
  • K Offline
    K Offline
    Kingofheart
    wrote on last edited by
    #1

    HI All:

    I use Qt Creator 4.15.0

    QT5.15.2, MSVC 2019

    At present, the static compilation has been completed. The generated executable file (.EXE) does not require QT-related DLL, but I use a third-party ABC.DLL, which is linked through an ABC.LIB.

    The EXE file I compiled must be placed together with the ABC.DLL file before it can be executed.

    Is there any way to make this EXE independent without needing the ABC.DLL file?

    Christian EhrlicherC 1 Reply Last reply
    0
    • K Kingofheart

      HI All:

      I use Qt Creator 4.15.0

      QT5.15.2, MSVC 2019

      At present, the static compilation has been completed. The generated executable file (.EXE) does not require QT-related DLL, but I use a third-party ABC.DLL, which is linked through an ABC.LIB.

      The EXE file I compiled must be placed together with the ABC.DLL file before it can be executed.

      Is there any way to make this EXE independent without needing the ABC.DLL file?

      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Kingofheart said in How to make the exe file by Static build to include 3rd party dll:

      Is there any way to make this EXE independent without needing the ABC.DLL file?

      The same as for a Qt static build - you need a static build of your dependent libs.

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

      K 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        @Kingofheart said in How to make the exe file by Static build to include 3rd party dll:

        Is there any way to make this EXE independent without needing the ABC.DLL file?

        The same as for a Qt static build - you need a static build of your dependent libs.

        K Offline
        K Offline
        Kingofheart
        wrote on last edited by
        #3

        @Christian-Ehrlicher

        thanks for your reply

        This LIB and DLL cannot be modified further. Is there no other way for QT to merge the DLL files?

        Christian EhrlicherC 1 Reply Last reply
        0
        • K Kingofheart

          @Christian-Ehrlicher

          thanks for your reply

          This LIB and DLL cannot be modified further. Is there no other way for QT to merge the DLL files?

          Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Kingofheart said in How to make the exe file by Static build to include 3rd party dll:

          . Is there no other way for QT to merge the DLL files?

          I don't see what Qt has to do with it. You can not simply convert a shared into a static lib except recompiling.

          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
          • K Kingofheart has marked this topic as solved on

          • Login

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