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. Why compiled application need msvcr120.dll in customer's PC?
Forum Updated to NodeBB v4.3 + New Features

Why compiled application need msvcr120.dll in customer's PC?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 4 Posters 1.0k 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.
  • brucezcgB Offline
    brucezcgB Offline
    brucezcg
    wrote on last edited by
    #1

    I compile my project with QT5.9.1(mingw)

    Why it need msvcr120.dll in customer's PC, and how to resolve this to my app package?
    Thanks.

    jsulmJ JonBJ 2 Replies Last reply
    0
    • brucezcgB brucezcg

      I compile my project with QT5.9.1(mingw)

      Why it need msvcr120.dll in customer's PC, and how to resolve this to my app package?
      Thanks.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @brucezcg Take a look at http://doc.qt.io/qt-5/windows-deployment.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3
      • BuckwheatB Offline
        BuckwheatB Offline
        Buckwheat
        wrote on last edited by
        #3

        @brucezcg
        I have noticed in the dependency walker that, at least in Qt5.11.2 using mingw53 that the libgcc_s_dw2-1.dll requires msvcrt.dll. This is probably why you need the msvcrt120.dll.

        If you totally wish to do away with M$VC, try using the MSYS2 distribution.

        Dave Fileccia

        1 Reply Last reply
        0
        • brucezcgB brucezcg

          I compile my project with QT5.9.1(mingw)

          Why it need msvcr120.dll in customer's PC, and how to resolve this to my app package?
          Thanks.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

          @brucezcg
          From what I read it appears MinGW has always used msvcrt.dll.

          If you do not want that, something like https://sourceforge.net/p/mingw-w64/mailman/message/31883429/ says

          You can link it statically by using -static-libgcc.

          [EDIT Hmm, not sure whether that only avoids dependency on libgcc.dll or on msvcrt.dll too, you'll have to give it a go... Wait! Good news. Elsewhere:

          You might also want to link libgcc statically using -static-libgcc to prevent the libgcc DLL pulling in msvcrt.dll.

          ]

          1 Reply Last reply
          0
          • brucezcgB Offline
            brucezcgB Offline
            brucezcg
            wrote on last edited by
            #5

            Thanks for all of you.
            I found the problem is caused by I used dll make by MFC,
            Now I get rid of the dll, now it do not need MSVCRT120.dll now.

            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