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



  • 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.


  • Qt Champions 2017

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


  • Moderators

    @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.



  • @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.


  • Moderators

    @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?



  • @jsulm yes it is



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



  • 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.



  • 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.



  • @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?



  • @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).



  • @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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.