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?
71 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:
Universal CRT (
api-ms-win-crt-runtime-l1-1-0.dllis a part of it):C:/Program Files (x86)/Windows Kits/10/Redist/ucrt/DLLs/x86andC:/Program Files (x86)/Windows Kits/10/Redist/ucrt/DLLs/x64.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.CRTandC:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Redist/MSVC/14.29.30133/x64/Microsoft.VC142.CRT.