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. After windeployqt, vcruntime140.dll cannot be found when running.
Forum Updated to NodeBB v4.3 + New Features

After windeployqt, vcruntime140.dll cannot be found when running.

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 941 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
    senmx
    wrote on last edited by
    #1

    app.pro:

    win32 {
        DEFINES += _WINSOCKAPI_
        ...
    }
    

    It is probably because of this that the dynamic library vcruntime140.dll is needed?

    1 Reply Last reply
    0
    • S senmx

      @ChrisW67 Tks. If I want to include this library, which dll should be included when publishing the program, try to put vcruntime140.dll in the program directory, but it doesn't work.

      C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #4

      @senmx You should be careful cherry-picking single Windows DLLs like that.

      Firstly, that runtime should be a standard part of any up-to-date Windows 10 (presumably 11). It may need to be installed on older Windows, and the simplest way to guarantee that is done correctly (all the related pieces) is the Microsoft redistributable installer. You can bundle the redist exe in your installer and run it silently during install, or ask the user to do it before installing your program.

      It is not recommended, but you can deploy the redist DLLs in your application folder. You have to get all of them and be sure they are the distributable versions. At least concrt140.dll, msvcp140.dll, vccorlib140.dll, and vcruntime140.dll.
      The reason this is not recommended is that it means your program does not benefit from bug/security fixes in the runtime libs pushed out through Windows Update.

      S 1 Reply Last reply
      0
      • C Offline
        C Offline
        ChrisW67
        wrote on last edited by
        #2

        Yes. So install the relevant Microsoft VC runtime redistributable (2015 I think).

        S 1 Reply Last reply
        1
        • C ChrisW67

          Yes. So install the relevant Microsoft VC runtime redistributable (2015 I think).

          S Offline
          S Offline
          senmx
          wrote on last edited by
          #3

          @ChrisW67 Tks. If I want to include this library, which dll should be included when publishing the program, try to put vcruntime140.dll in the program directory, but it doesn't work.

          C 1 Reply Last reply
          0
          • S senmx

            @ChrisW67 Tks. If I want to include this library, which dll should be included when publishing the program, try to put vcruntime140.dll in the program directory, but it doesn't work.

            C Offline
            C Offline
            ChrisW67
            wrote on last edited by
            #4

            @senmx You should be careful cherry-picking single Windows DLLs like that.

            Firstly, that runtime should be a standard part of any up-to-date Windows 10 (presumably 11). It may need to be installed on older Windows, and the simplest way to guarantee that is done correctly (all the related pieces) is the Microsoft redistributable installer. You can bundle the redist exe in your installer and run it silently during install, or ask the user to do it before installing your program.

            It is not recommended, but you can deploy the redist DLLs in your application folder. You have to get all of them and be sure they are the distributable versions. At least concrt140.dll, msvcp140.dll, vccorlib140.dll, and vcruntime140.dll.
            The reason this is not recommended is that it means your program does not benefit from bug/security fixes in the runtime libs pushed out through Windows Update.

            S 1 Reply Last reply
            0
            • C ChrisW67

              @senmx You should be careful cherry-picking single Windows DLLs like that.

              Firstly, that runtime should be a standard part of any up-to-date Windows 10 (presumably 11). It may need to be installed on older Windows, and the simplest way to guarantee that is done correctly (all the related pieces) is the Microsoft redistributable installer. You can bundle the redist exe in your installer and run it silently during install, or ask the user to do it before installing your program.

              It is not recommended, but you can deploy the redist DLLs in your application folder. You have to get all of them and be sure they are the distributable versions. At least concrt140.dll, msvcp140.dll, vccorlib140.dll, and vcruntime140.dll.
              The reason this is not recommended is that it means your program does not benefit from bug/security fixes in the runtime libs pushed out through Windows Update.

              S Offline
              S Offline
              senmx
              wrote on last edited by
              #5

              @ChrisW67 Thank you very much. I am now thinking of a way to remove this library, replace it with another one, or use mingw to compile it.

              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