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 do I get some laptops to not need to install vc_redisk on msvc2019?
QtWS25 Last Chance

How do I get some laptops to not need to install vc_redisk on msvc2019?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 5 Posters 297 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.
  • B Offline
    B Offline
    Blackzero
    wrote on 22 Jul 2024, 04:22 last edited by Blackzero
    #1

    on some laptops there is an error in the application I made in qt creator

    - VCRUNTIME140.dll
    - VCRUNTIME140_1.dll
    - MSVCP140.dll
    

    to solve this error, you need to install vc_redisk, but how do you make the application not error without installing vc_redisk, is that possible? , I am using MSVC2019_64bit

    C J 2 Replies Last reply 22 Jul 2024, 05:07
    0
    • B Blackzero
      22 Jul 2024, 04:22

      on some laptops there is an error in the application I made in qt creator

      - VCRUNTIME140.dll
      - VCRUNTIME140_1.dll
      - MSVCP140.dll
      

      to solve this error, you need to install vc_redisk, but how do you make the application not error without installing vc_redisk, is that possible? , I am using MSVC2019_64bit

      C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 22 Jul 2024, 05:07 last edited by
      #2

      @Blackzero said in How do I get some laptops to not need to install vc_redisk on msvc2019?:

      s that possible

      No, the runtime is needed.

      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
      0
      • H Online
        H Online
        hskoglund
        wrote on 22 Jul 2024, 05:39 last edited by
        #3

        To avoid the dependency of the VC runtime dlls, another option is try to build a static version of Qt and use the config option -static-runtime. Then build your app with that version of Qt.
        Note: your app will still need msvcrt.dll but that file is included in all Windows versions.

        1 Reply Last reply
        0
        • B Blackzero
          22 Jul 2024, 04:22

          on some laptops there is an error in the application I made in qt creator

          - VCRUNTIME140.dll
          - VCRUNTIME140_1.dll
          - MSVCP140.dll
          

          to solve this error, you need to install vc_redisk, but how do you make the application not error without installing vc_redisk, is that possible? , I am using MSVC2019_64bit

          J Offline
          J Offline
          J.Hilk
          Moderators
          wrote on 22 Jul 2024, 06:28 last edited by
          #4

          @Blackzero by using something other than a MSVC compiler obviously.

          Otherwise your application will require that library set.

          Don't expect other dependencies to pop up and cause issues though :D

          You could make an installer and ship/auto install vc_redisk Microsoft allows that


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          0
          • H Online
            H Online
            hskoglund
            wrote on 22 Jul 2024, 06:43 last edited by
            #5

            You can builld a static version of Qt (without VS runtime dependency) using either the MSVC or MinGW compilers. Both have their cons and pros.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              cristian-adam
              wrote on 22 Jul 2024, 08:10 last edited by
              #6

              At https://learn.microsoft.com/en-us/cpp/windows/deployment-in-visual-cpp?view=msvc-170 we can see that there are 3 ways of having the Visual C++ Runtime available:

              1. Central deployment
              2. Local deployment
              3. Static linking

              The easiest way it's the local deployment, which means that you only have to have the above mentioned dlls next to your executable.

              If you are using CMake, then you just have to add one line to your CMakeLists.txt file:

              include(InstallRequiredSystemLibraries)
              
              1 Reply Last reply
              2

              4/6

              22 Jul 2024, 06:28

              • Login

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