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. Can't launch application. dll is missing
Forum Updated to NodeBB v4.3 + New Features

Can't launch application. dll is missing

Scheduled Pinned Locked Moved Unsolved General and Desktop
visual studiowindowsdll
18 Posts 5 Posters 12.7k Views 2 Watching
  • 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.
  • Z Offline
    Z Offline
    za83
    wrote on last edited by za83
    #1

    I can't launch programs which are built with Qt.

    The program can't start because api-ms-win-core-rtlsupport-l1-2-0.dll is missing from your computer. Try reinstalling the program to fix this problem.

    But there is no api-ms-win-core-rtlsupport-l1-2-0.dll on my drive. Just -l1-1-0.dll.
    Programs which are not using Qt don't have such problems.

    Visual studio 2017, Windows 7, Qt 5.9.2.

    K 1 Reply Last reply
    0
    • Z za83

      I can't launch programs which are built with Qt.

      The program can't start because api-ms-win-core-rtlsupport-l1-2-0.dll is missing from your computer. Try reinstalling the program to fix this problem.

      But there is no api-ms-win-core-rtlsupport-l1-2-0.dll on my drive. Just -l1-1-0.dll.
      Programs which are not using Qt don't have such problems.

      Visual studio 2017, Windows 7, Qt 5.9.2.

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @za83

      According to this post apparently not an issue of Qt libs, but MSVC

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      2
      • Z Offline
        Z Offline
        za83
        wrote on last edited by za83
        #3

        I get this error even in a simple console application on Qt. I don't get this error in projects which don't use Qt.

        1 Reply Last reply
        0
        • hskoglundH Offline
          hskoglundH Offline
          hskoglund
          wrote on last edited by
          #4

          Hi, just to add to @koahnig, it's correct that the same error also occurs for a simple Qt console application. Try update Visual studio 2017 to version 15.4.4 on the PC that has the error.

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            za83
            wrote on last edited by
            #5

            15.4.4 already.

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              za83
              wrote on last edited by
              #6

              Firstly, the problem was with vcruntime140d_app.dll. But then it somehow appeared on my drive. I updated everything what I could. Now I need api-ms-win-core-rtlsupport-l1-2-0.dll. I have just api-ms-win-core-rtlsupport-l1-1-0.dll

              1 Reply Last reply
              0
              • hskoglundH Offline
                hskoglundH Offline
                hskoglund
                wrote on last edited by
                #7

                Just checking: you only installed the plain vanilla "msv2017 64-bit" version of Qt 5.9.2 and not any version with a "UWP .." prefix?

                Z 1 Reply Last reply
                0
                • hskoglundH hskoglund

                  Just checking: you only installed the plain vanilla "msv2017 64-bit" version of Qt 5.9.2 and not any version with a "UWP .." prefix?

                  Z Offline
                  Z Offline
                  za83
                  wrote on last edited by
                  #8

                  winrt_x86_msvc2017

                  JonBJ 1 Reply Last reply
                  0
                  • Z za83

                    winrt_x86_msvc2017

                    JonBJ Online
                    JonBJ Online
                    JonB
                    wrote on last edited by
                    #9

                    @za83
                    Couple of suggestions:

                    • https://stackoverflow.com/a/45773325/489865 says that file has just been supplied with "updated my VS2017 from v15.2 to v15.3.1" (August?) Make sure your VS 2017 is updated?

                    • Are you sure you really don't have the file 9assuming you're updated)? Post at https://social.msdn.microsoft.com/Forums/en-US/e9a3e78c-7764-4145-bdc0-e354e3e599de/how-the-api-set-dlls-work?forum=windowssdk They require: "You can see them in explorer by allowing the display of "protected operating system files".".

                    • Although I don't think it solves your problem, https://forum.qt.io/topic/66765/api-ms-win-core-rtlsupport-l1-2-0-missing-on-a-windows-7-deployment post on this site might be worth reading through?

                    1 Reply Last reply
                    0
                    • Z Offline
                      Z Offline
                      za83
                      wrote on last edited by
                      #10

                      It looks like qt-msvc2015 works well. But not winrt_x86_msvc2017.
                      (Platform toolset in VS 2017-v141).

                      1 Reply Last reply
                      0
                      • hskoglundH Offline
                        hskoglundH Offline
                        hskoglund
                        wrote on last edited by
                        #11

                        Hi, winrt_x86_msvc2017 works fine if you upgrade your Windows 7 to Windows 10. (But "msvc2017 64-bit" works on both Windows 7 and Windows 10.)

                        Z 1 Reply Last reply
                        0
                        • hskoglundH hskoglund

                          Hi, winrt_x86_msvc2017 works fine if you upgrade your Windows 7 to Windows 10. (But "msvc2017 64-bit" works on both Windows 7 and Windows 10.)

                          Z Offline
                          Z Offline
                          za83
                          wrote on last edited by
                          #12

                          Now I built in Windows 10 32-bit. It requires msvcp140_app.dll. But there is no that dll on my drive.

                          1 Reply Last reply
                          0
                          • hskoglundH Offline
                            hskoglundH Offline
                            hskoglund
                            wrote on last edited by
                            #13

                            Hi, msvcp140_app.dll should be installed in C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00_14.0.25426.0_x86__8wekyb3d8bbwe, but perhaps you forgot to enable UWP development? Start the Visual Studio Installer and check, see picture below:
                            0_1512268256793_InstallUWPApps.png

                            Also: make sure you've enabled Developer mode in Settings.

                            Z 2 Replies Last reply
                            3
                            • hskoglundH hskoglund

                              Hi, msvcp140_app.dll should be installed in C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00_14.0.25426.0_x86__8wekyb3d8bbwe, but perhaps you forgot to enable UWP development? Start the Visual Studio Installer and check, see picture below:
                              0_1512268256793_InstallUWPApps.png

                              Also: make sure you've enabled Developer mode in Settings.

                              Z Offline
                              Z Offline
                              za83
                              wrote on last edited by za83
                              #14
                              This post is deleted!
                              1 Reply Last reply
                              0
                              • hskoglundH hskoglund

                                Hi, msvcp140_app.dll should be installed in C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00_14.0.25426.0_x86__8wekyb3d8bbwe, but perhaps you forgot to enable UWP development? Start the Visual Studio Installer and check, see picture below:
                                0_1512268256793_InstallUWPApps.png

                                Also: make sure you've enabled Developer mode in Settings.

                                Z Offline
                                Z Offline
                                za83
                                wrote on last edited by
                                #15

                                @hskoglund it helped. But in Windows 7 I still get error

                                The program can't start because api-ms-win-core-rtlsupport-l1-2-0.dll is missing from your computer. Try reinstalling the program to fix this problem.

                                Can I launch the program built with Qt 5.10 on Windows 7?

                                hskoglundH 1 Reply Last reply
                                0
                                • Z za83

                                  @hskoglund it helped. But in Windows 7 I still get error

                                  The program can't start because api-ms-win-core-rtlsupport-l1-2-0.dll is missing from your computer. Try reinstalling the program to fix this problem.

                                  Can I launch the program built with Qt 5.10 on Windows 7?

                                  hskoglundH Offline
                                  hskoglundH Offline
                                  hskoglund
                                  wrote on last edited by
                                  #16

                                  @za83 You can launch a program built with Qt 5.10 on Windows 7 if it's built using the "MSVC 2017 64-bit" compiler version.

                                  But you can not launch a program built with Qt 5.10 on Windows 7 if it's built using the "UWP x86 (MSVC2017)" compiler version.

                                  That's why you get that error on Windows 7, you built your Qt program using the "UWP x86 (MSVC2017)" version :-(

                                  Note: if you need a 32-bit version of Qt 5.10 that's not UWP-flavored, you need to download and install the older compiler MSVC2015 from Microsoft, then you can install "MSVC 2015 32-bit" Qt compiler version, which will allow you to run 32-bit Qt programs on WIndows 7.

                                  Z 1 Reply Last reply
                                  1
                                  • hskoglundH hskoglund

                                    @za83 You can launch a program built with Qt 5.10 on Windows 7 if it's built using the "MSVC 2017 64-bit" compiler version.

                                    But you can not launch a program built with Qt 5.10 on Windows 7 if it's built using the "UWP x86 (MSVC2017)" compiler version.

                                    That's why you get that error on Windows 7, you built your Qt program using the "UWP x86 (MSVC2017)" version :-(

                                    Note: if you need a 32-bit version of Qt 5.10 that's not UWP-flavored, you need to download and install the older compiler MSVC2015 from Microsoft, then you can install "MSVC 2015 32-bit" Qt compiler version, which will allow you to run 32-bit Qt programs on WIndows 7.

                                    Z Offline
                                    Z Offline
                                    za83
                                    wrote on last edited by
                                    #17

                                    @hskoglund with Qt 5.10 msvc2015 I get error

                                    The program can't start because api-ms-win-core-rtlsupport-l1-2-0.dll is missing from your computer. Try reinstalling the program to fix this problem.

                                    Qt 5.9 it's ok.

                                    1 Reply Last reply
                                    0
                                    • SGaistS Offline
                                      SGaistS Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #18

                                      Hi,

                                      One small correction: you can use Visual Studio 2017 with libraries built for VS2015, these two compilers are compatible (which is the first time two Microsoft Compilers are compatible).

                                      Interested in AI ? www.idiap.ch
                                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      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