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. Removing dependency for mingwm10.dll & libgcc_s_dw2.dll
Forum Updated to NodeBB v4.3 + New Features

Removing dependency for mingwm10.dll & libgcc_s_dw2.dll

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.4k Views 1 Watching
  • 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.
  • X Offline
    X Offline
    xiit
    wrote on last edited by
    #1

    Hello!

    I downloaded Qt SDK a while ago and I've got a little question: Is it possible to remove mingwm10.dll & libgcc_s_dw2.dll dependency by statically linking them and keeping the Qt DLL's dynamically linked?

    If so, how? Are there any disadvantages?

    Thanks in advance!

    1 Reply Last reply
    0
    • napajejenunedk0N Offline
      napajejenunedk0N Offline
      napajejenunedk0
      wrote on last edited by
      #2

      If you have build the Qt library using MinGW or you have downloaded an already built version that has been built with MinGW, then you will need these libraries. If you have built/donwloaded the MSVC version then you will need the MSVC redistributable. The files above are the MinGW redistributables and you need them. You will need to deploy these files along with your executable the same way you will need to deploy the msvcpX.dll and msvcrX.dll (X is the MSVC version) if building with MSVC.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        giesbert
        wrote on last edited by
        #3

        You can only link the mingw redist. stuff statically, if you also use Qt statically linked. Otherwise the Qt dll do not find the stuff out of that libs.

        Nokia Certified Qt Specialist.
        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

        1 Reply Last reply
        0
        • X Offline
          X Offline
          xiit
          wrote on last edited by
          #4

          [quote author="Gerolf" date="1351065253"]You can only link the mingw redist. stuff statically, if you also use Qt statically linked. Otherwise the Qt dll do not find the stuff out of that libs.[/quote]
          Alright, thank you for your answer! :)

          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