Qt 5.12.2 Version with Msvc 2017 Application Doesn't Work on Windows 7

I have a qt kit with Qt version 5.12.2 and compiler version visual studio 2019 ie 16.3 (msvc 2017 for qt). My problem is 32/64 bit regardless of the architecture of the computer. Because I am working on 32bit. Under these conditions, my qt application that I compile and link does not open because of i get api-ms-win-crt-runtime-l1-1-0.dll is missing error in professional while working in Windows 7 enterprise.

What setting do I need to work in windows 7? Can a qmake.exe be set as static according to the compiler without changing the qt version?

7

1 Answer

You need to either install Visual C++ Redistributable runtime, or provide its dll files alongside with your application.

These DLL files are in the following folders. You can just copy them to the folder with your main binary executable:

  1. Universal CRT (api-ms-win-crt-runtime-l1-1-0.dll is a part of it): C:/Program Files (x86)/Windows Kits/10/Redist/ucrt/DLLs/x86 and C:/Program Files (x86)/Windows Kits/10/Redist/ucrt/DLLs/x64.

  2. Visual C++ 2019 runtime (2017 runtime paths are slightly different but they are similar to 2019, and they also are binary compatible, so you can just use VC2019 runtime for apps built using VC2017): C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Redist/MSVC/14.29.30133/x86/Microsoft.VC142.CRT and C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Redist/MSVC/14.29.30133/x64/Microsoft.VC142.CRT.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest