Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT 5.10 MSVC2015 Windows 10 32bit app VCRUNTIME140.dll error.
QtWS25 Last Chance

QT 5.10 MSVC2015 Windows 10 32bit app VCRUNTIME140.dll error.

Scheduled Pinned Locked Moved Solved Installation and Deployment
14 Posts 5 Posters 8.7k 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
    StevieGardiner
    wrote on last edited by StevieGardiner
    #1

    Good morning guys,

    I have an app that ive created using QT 5.10, built a release version using MSVC2015 32bit in order to run it on a windows 10 32bit tablet, deployed it by copying the bin folder together with plugins and qml. It runs fine on a x64bit machine.

    As soon as i copy it over to the windows 10 32bit tablet, i get the following errors;
    QT5erialPort.dll is either not designed to run on windows or it contains an error.
    VCRUNTIME140.dll is either not designed to run on windows or it contains an error.
    MSVCP140.dll is either not designed to run on windows or it contains an error.

    Ive tried running it in administrator with no joy and also running compatability mode and no joy. Plus when i try to run windeployqyt.exe on the 64bit machine i get this app can run on this computer.

    Any help is much appreciated.

    jsulmJ 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      What kind of 32 bit tablet?
      Its still a 100% perfectly normal windows just 32 bit?

      1 Reply Last reply
      0
      • S StevieGardiner

        Good morning guys,

        I have an app that ive created using QT 5.10, built a release version using MSVC2015 32bit in order to run it on a windows 10 32bit tablet, deployed it by copying the bin folder together with plugins and qml. It runs fine on a x64bit machine.

        As soon as i copy it over to the windows 10 32bit tablet, i get the following errors;
        QT5erialPort.dll is either not designed to run on windows or it contains an error.
        VCRUNTIME140.dll is either not designed to run on windows or it contains an error.
        MSVCP140.dll is either not designed to run on windows or it contains an error.

        Ive tried running it in administrator with no joy and also running compatability mode and no joy. Plus when i try to run windeployqyt.exe on the 64bit machine i get this app can run on this computer.

        Any help is much appreciated.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @StevieGardiner said in QT 5.10 MSVC2015 Windows 10 32bit app VCRUNTIME140.dll error.:

        QT5erialPort.dll is either not designed to run on windows or it contains an error.

        Are you sure you copied 32bit libraries?
        It looks like you copied 64bit.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        2
        • S Offline
          S Offline
          StevieGardiner
          wrote on last edited by StevieGardiner
          #4

          @mrjj the tablet is an;
          Acer, Iconia W1-810
          Intel Atom Z7375G 1.33Ghz processor.
          Windows 10 32 bit operating system on a x64 based processor.

          @jsulm i took all the files from the MSVC2015 32bit fiile. <C:\Qt\5.10.0\msvc2015> and when building the app on qt checking the kits, its a x86 msvc compiler and debugger.

          jsulmJ 1 Reply Last reply
          0
          • S StevieGardiner

            @mrjj the tablet is an;
            Acer, Iconia W1-810
            Intel Atom Z7375G 1.33Ghz processor.
            Windows 10 32 bit operating system on a x64 based processor.

            @jsulm i took all the files from the MSVC2015 32bit fiile. <C:\Qt\5.10.0\msvc2015> and when building the app on qt checking the kits, its a x86 msvc compiler and debugger.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @StevieGardiner said in QT 5.10 MSVC2015 Windows 10 32bit app VCRUNTIME140.dll error.:

            C:\Qt\5.10.0\msvc2015

            and this is your Qt 32bit installation?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            S 1 Reply Last reply
            0
            • jsulmJ jsulm

              @StevieGardiner said in QT 5.10 MSVC2015 Windows 10 32bit app VCRUNTIME140.dll error.:

              C:\Qt\5.10.0\msvc2015

              and this is your Qt 32bit installation?

              S Offline
              S Offline
              StevieGardiner
              wrote on last edited by
              #6

              @jsulm yes it is

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

                Hi, try installing the MSVC2015 32-bit redistributable i.e. select vc_redist.x86.exe

                1 Reply Last reply
                1
                • S Offline
                  S Offline
                  StevieGardiner
                  wrote on last edited by
                  #8

                  To try and track down the problem, ive ran the maintenance tool and removed all compilers and debuggers apart from QT 5.10, QT 5.8 MSVC2015 32bit.

                  Then ive built the release program in QT5.8 MSVC2015, taken the *.exe together with the bin, plugin and qml files from the QT5.8 MSVC2015 file and ran it and it works fine on the x64 bit host computer. Added the vcruntime140.dll and MSVCP140.dll from system32 file and copied it over the the tablet.

                  I then got the following errors;
                  QT5Gui.dll is either not deigned to run on windows or contains an error.
                  QT5Qml.dll is either not deigned to run on windows or contains an error.
                  QT5SerialPort.dll is either not deigned to run on windows or contains an error.
                  QT5Core.dll is either not deigned to run on windows or contains an error.

                  @hskoglund i got this when trying to install - Error 0x80070666: Cannot install a product when a newer version is installed.

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

                    Hi, the vcruntime140.dll and MSVCP140.dll are very dangerous to copy manually into the target computer, you should only do that as a last resort. Instead, try to use that link to the MSVC2015 32-bit redistributable above.

                    For example, if you copied the vcruntime140.dll and MSVCP140.dll files from system32 file from a computer running a 64-bit version of Windows, the you will have copied the 64-bit version of the files, and you will get that error you wrote. (The 32-bit version of the files you instead can find in the SysWow64 file.)

                    Also if get that Error 0x80070666, you could try first to uninstall your existing MSVC2015 32-bit redistributable, then try that link again.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      StevieGardiner
                      wrote on last edited by StevieGardiner
                      #10

                      @hskoglund Ok thank you for clearing that up, ive uninstalled what was installed and installed the link.

                      should i be using the Visual C++ 2015 x86 Native build tools command prompt to build the deployment file?

                      hskoglundH 1 Reply Last reply
                      0
                      • S StevieGardiner

                        @hskoglund Ok thank you for clearing that up, ive uninstalled what was installed and installed the link.

                        should i be using the Visual C++ 2015 x86 Native build tools command prompt to build the deployment file?

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

                        @StevieGardiner said in QT 5.10 MSVC2015 Windows 10 32bit app VCRUNTIME140.dll error.:

                        should i be using the Visual C++ 2015 x86 Native build tools command prompt to build the deployment file?

                        It shouldn't matter what command prompt you're using, as long as you only include Qt-flavored files and don't include any files from Microsoft (e.g. from C:\Windows).

                        S 1 Reply Last reply
                        0
                        • hskoglundH hskoglund

                          @StevieGardiner said in QT 5.10 MSVC2015 Windows 10 32bit app VCRUNTIME140.dll error.:

                          should i be using the Visual C++ 2015 x86 Native build tools command prompt to build the deployment file?

                          It shouldn't matter what command prompt you're using, as long as you only include Qt-flavored files and don't include any files from Microsoft (e.g. from C:\Windows).

                          S Offline
                          S Offline
                          StevieGardiner
                          wrote on last edited by
                          #12

                          @hskoglund I solved the problem thank you, i believe that using the QT5.8 MSVC2015 32bit cmd and windeployqt did the trick.

                          Thank you all for your help.

                          1 Reply Last reply
                          1
                          • C Offline
                            C Offline
                            ChristinaS
                            wrote on last edited by kshegunov
                            #13

                            I'm facing the similar issue but I'm getting only VCRUNTIME140.dll is missing error tried re-installing the visual studio again but it didn't solve.

                            Third party link removed

                            How about I just replace the dll file ?

                            [Link removed ~kshegunov]

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

                              Hi, please don't download those Microsoft .dlls from 3rd-party sites, they might contain unwelcome extra surprises, instead try reinstalling using that vc_redist.x86.exe link

                              1 Reply Last reply
                              3

                              • Login

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