<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[how to solve the error when the application is opened on another laptop]]></title><description><![CDATA[<p dir="auto">I have a problem with the MSVC2019 compiler after doing windeployqt, the application opens properly on my laptop after deploying, but when other laptops open it errors occur etc. as below, I have used 2 ways to deploy yes it does set VCINSTALLDIR and does not set VCINSTALLDIR, but both as usual it works for my laptop but does not work for other laptops, how to solve this</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/d8c1dd5c-7280-405c-8981-7d0a90690276.jpg" alt="WhatsApp Image 2024-06-20 at 20.10.18_6d59c15f.jpg" class=" img-fluid img-markdown" /> <img src="https://ddgobkiprc33d.cloudfront.net/69f9473e-8995-4d38-be15-15d03cbd9bba.jpg" alt="WhatsApp Image 2024-06-20 at 20.11.12_140c6360.jpg" class=" img-fluid img-markdown" /> <img src="https://ddgobkiprc33d.cloudfront.net/af945791-248f-43cf-959e-aa7d373ee0b5.jpg" alt="WhatsApp Image 2024-06-20 at 20.11.37_232c0eb7.jpg" class=" img-fluid img-markdown" /> <img src="https://ddgobkiprc33d.cloudfront.net/9afeda50-9256-46aa-b0e8-c471dc3702e3.jpg" alt="WhatsApp Image 2024-06-20 at 20.12.03_ad4a107f.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Method 1</p>
<pre><code>C:\Qt\5.15.2\msvc2019_64\bin&gt;windeployqt.exe --release "C:\Users\User\Documents\Project\MyExe.exe"
C:\Users\User\Documents\Project\MyExe.exe 64 bit, release executable
Adding Qt5Svg for qsvgicon.dll
Skipping plugin qtvirtualkeyboardplugin.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_hangul.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_openwnn.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_pinyin.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_tcime.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_thai.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Direct dependencies: Qt5Core Qt5Gui Qt5Widgets
All dependencies   : Qt5Core Qt5Gui Qt5Widgets
To be deployed     : Qt5Core Qt5Gui Qt5Svg Qt5Widgets
Warning: Cannot find Visual Studio installation directory, VCINSTALLDIR is not set.
Updating Qt5Core.dll.
Updating Qt5Gui.dll.
Updating Qt5Svg.dll.
Updating Qt5Widgets.dll.
Updating libGLESv2.dll.
Updating libEGL.dll.
D3Dcompiler_47.dll is up to date.
opengl32sw.dll is up to date.
Updating qsvgicon.dll.
Updating qgif.dll.
Updating qicns.dll.
Updating qico.dll.
Updating qjpeg.dll.
Updating qsvg.dll.
Updating qtga.dll.
Updating qtiff.dll.
Updating qwbmp.dll.
Updating qwebp.dll.
Updating qwindows.dll.
Updating qwindowsvistastyle.dll.
Creating qt_ar.qm...
Creating qt_bg.qm...
Creating qt_ca.qm...
Creating qt_cs.qm...
Creating qt_da.qm...
Creating qt_de.qm...
Creating qt_en.qm...
Creating qt_es.qm...
Creating qt_fi.qm...
Creating qt_fr.qm...
Creating qt_gd.qm...
Creating qt_he.qm...
Creating qt_hu.qm...
Creating qt_it.qm...
Creating qt_ja.qm...
Creating qt_ko.qm...
Creating qt_lv.qm...
Creating qt_pl.qm...
Creating qt_ru.qm...
Creating qt_sk.qm...
Creating qt_tr.qm...
Creating qt_uk.qm...
Creating qt_zh_TW.qm...
</code></pre>
<p dir="auto">Method 2</p>
<pre><code>C:\Qt\5.15.2\msvc2019_64\bin&gt;set VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC

C:\Qt\5.15.2\msvc2019_64\bin&gt;windeployqt.exe --release "C:\Users\User\Documents\Project\MyExe.exe"
C:\Users\User\Documents\Project\MyExe.exe 64 bit, release executable
Adding Qt5Svg for qsvgicon.dll
Skipping plugin qtvirtualkeyboardplugin.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_hangul.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_openwnn.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_pinyin.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_tcime.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Skipping plugin qtvirtualkeyboard_thai.dll due to disabled dependencies (Qt5Qml Qt5Quick).
Direct dependencies: Qt5Core Qt5Gui Qt5Widgets
All dependencies   : Qt5Core Qt5Gui Qt5Widgets
To be deployed     : Qt5Core Qt5Gui Qt5Svg Qt5Widgets
Qt5Core.dll is up to date.
Qt5Gui.dll is up to date.
Qt5Svg.dll is up to date.
Qt5Widgets.dll is up to date.
libGLESv2.dll is up to date.
libEGL.dll is up to date.
D3Dcompiler_47.dll is up to date.
opengl32sw.dll is up to date.
Updating vc_redist.x64.exe.
qsvgicon.dll is up to date.
qgif.dll is up to date.
qicns.dll is up to date.
qico.dll is up to date.
qjpeg.dll is up to date.
qsvg.dll is up to date.
qtga.dll is up to date.
qtiff.dll is up to date.
qwbmp.dll is up to date.
qwebp.dll is up to date.
qwindows.dll is up to date.
qwindowsvistastyle.dll is up to date.
Creating qt_ar.qm...
Creating qt_bg.qm...
Creating qt_ca.qm...
Creating qt_cs.qm...
Creating qt_da.qm...
Creating qt_de.qm...
Creating qt_en.qm...
Creating qt_es.qm...
Creating qt_fi.qm...
Creating qt_fr.qm...
Creating qt_gd.qm...
Creating qt_he.qm...
Creating qt_hu.qm...
Creating qt_it.qm...
Creating qt_ja.qm...
Creating qt_ko.qm...
Creating qt_lv.qm...
Creating qt_pl.qm...
Creating qt_ru.qm...
Creating qt_sk.qm...
Creating qt_tr.qm...
Creating qt_uk.qm...
Creating qt_zh_TW.qm...
</code></pre>
]]></description><link>https://forum.qt.io/topic/157346/how-to-solve-the-error-when-the-application-is-opened-on-another-laptop</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 20:49:39 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/157346.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Jun 2024 13:24:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to how to solve the error when the application is opened on another laptop on Fri, 21 Jun 2024 19:06:31 GMT]]></title><description><![CDATA[<p dir="auto">@J-Hilk except that the error message talks about the debug version of the runtime which is not redistributable. More information <a href="https://learn.microsoft.com/en-us/cpp/windows/preparing-a-test-machine-to-run-a-debug-executable?view=msvc-170" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/blackzero">@<bdi>Blackzero</bdi></a> if using qmake:</p>
<pre><code>CONFIG += force_debug_info
</code></pre>
<p dir="auto">If using cmake:</p>
<pre><code>CMAKE_BUILD_TYPE=RelWithDebInfo
</code></pre>
]]></description><link>https://forum.qt.io/post/803221</link><guid isPermaLink="true">https://forum.qt.io/post/803221</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 21 Jun 2024 19:06:31 GMT</pubDate></item><item><title><![CDATA[Reply to how to solve the error when the application is opened on another laptop on Fri, 21 Jun 2024 12:55:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/blackzero">@<bdi>Blackzero</bdi></a> the correct way to ship those particular dependencies that seem to be missing, is actually by having the user install those runtimes themselves:<br />
<a href="https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170" target="_blank" rel="noopener noreferrer nofollow ugc">https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170</a></p>
<p dir="auto">or by shipping the installer yourself (you're explicitly allowed to do that) and executing it during your app install process.</p>
]]></description><link>https://forum.qt.io/post/803186</link><guid isPermaLink="true">https://forum.qt.io/post/803186</guid><dc:creator><![CDATA[J.Hilk]]></dc:creator><pubDate>Fri, 21 Jun 2024 12:55:41 GMT</pubDate></item><item><title><![CDATA[Reply to how to solve the error when the application is opened on another laptop on Fri, 21 Jun 2024 12:26:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/blackzero">@<bdi>Blackzero</bdi></a> said in <a href="/post/803183">how to solve the error when the application is opened on another laptop</a>:</p>
<blockquote>
<p dir="auto">without having to redo the code</p>
</blockquote>
<p dir="auto">You don't have to change code when you change the build system.</p>
]]></description><link>https://forum.qt.io/post/803184</link><guid isPermaLink="true">https://forum.qt.io/post/803184</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Fri, 21 Jun 2024 12:26:27 GMT</pubDate></item><item><title><![CDATA[Reply to how to solve the error when the application is opened on another laptop on Fri, 21 Jun 2024 12:25:41 GMT]]></title><description><![CDATA[<p dir="auto">@J-Hilk<br />
I have too much code that makes it impossible to move to cmake, is it possible to change qmake to cmake easily without having to redo the code</p>
]]></description><link>https://forum.qt.io/post/803183</link><guid isPermaLink="true">https://forum.qt.io/post/803183</guid><dc:creator><![CDATA[Blackzero]]></dc:creator><pubDate>Fri, 21 Jun 2024 12:25:41 GMT</pubDate></item><item><title><![CDATA[Reply to how to solve the error when the application is opened on another laptop on Fri, 21 Jun 2024 12:24:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mesrine">@<bdi>Mesrine</bdi></a> I use qmake, how is the code if in qmake</p>
]]></description><link>https://forum.qt.io/post/803182</link><guid isPermaLink="true">https://forum.qt.io/post/803182</guid><dc:creator><![CDATA[Blackzero]]></dc:creator><pubDate>Fri, 21 Jun 2024 12:24:22 GMT</pubDate></item><item><title><![CDATA[Reply to how to solve the error when the application is opened on another laptop on Fri, 21 Jun 2024 07:53:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mesrine">@<bdi>Mesrine</bdi></a> seriously !? oO</p>
<p dir="auto">Maybe its time to switch to cmake after all</p>
]]></description><link>https://forum.qt.io/post/803158</link><guid isPermaLink="true">https://forum.qt.io/post/803158</guid><dc:creator><![CDATA[J.Hilk]]></dc:creator><pubDate>Fri, 21 Jun 2024 07:53:54 GMT</pubDate></item><item><title><![CDATA[Reply to how to solve the error when the application is opened on another laptop on Fri, 21 Jun 2024 06:27:54 GMT]]></title><description><![CDATA[<p dir="auto">If you are using CMake adding<br />
<code>include(InstallRequiredSystemLibraries)</code><br />
will install <code>VCRuntime*</code> dependencies in the install step.</p>
]]></description><link>https://forum.qt.io/post/803149</link><guid isPermaLink="true">https://forum.qt.io/post/803149</guid><dc:creator><![CDATA[Mesrine]]></dc:creator><pubDate>Fri, 21 Jun 2024 06:27:54 GMT</pubDate></item><item><title><![CDATA[Reply to how to solve the error when the application is opened on another laptop on Fri, 21 Jun 2024 05:13:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> What does that mean? How to do that?</p>
]]></description><link>https://forum.qt.io/post/803140</link><guid isPermaLink="true">https://forum.qt.io/post/803140</guid><dc:creator><![CDATA[Blackzero]]></dc:creator><pubDate>Fri, 21 Jun 2024 05:13:41 GMT</pubDate></item><item><title><![CDATA[Reply to how to solve the error when the application is opened on another laptop on Thu, 20 Jun 2024 18:04:52 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">One detail that comes from the top of my head, the debug version of the MSVC runtime are not redistributable.<br />
One alternative is to do a release with debug information build.</p>
]]></description><link>https://forum.qt.io/post/803123</link><guid isPermaLink="true">https://forum.qt.io/post/803123</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 20 Jun 2024 18:04:52 GMT</pubDate></item><item><title><![CDATA[Reply to how to solve the error when the application is opened on another laptop on Thu, 20 Jun 2024 15:12:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/blackzero">@<bdi>Blackzero</bdi></a> said in <a href="/post/803110">how to solve the error when the application is opened on another laptop</a>:</p>
<blockquote>
<p dir="auto">So I have to build the release in qt creator</p>
</blockquote>
<p dir="auto">Yes.<br />
Debug build expects <code>*_D</code> or <code>*d</code> debug libraries and release the release libs (e.g. without debug symbols).</p>
]]></description><link>https://forum.qt.io/post/803112</link><guid isPermaLink="true">https://forum.qt.io/post/803112</guid><dc:creator><![CDATA[Pl45m4]]></dc:creator><pubDate>Thu, 20 Jun 2024 15:12:16 GMT</pubDate></item><item><title><![CDATA[Reply to how to solve the error when the application is opened on another laptop on Thu, 20 Jun 2024 14:10:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> So I have to build the release in qt creator and then redo the deploy with --release?</p>
]]></description><link>https://forum.qt.io/post/803110</link><guid isPermaLink="true">https://forum.qt.io/post/803110</guid><dc:creator><![CDATA[Blackzero]]></dc:creator><pubDate>Thu, 20 Jun 2024 14:10:16 GMT</pubDate></item><item><title><![CDATA[Reply to how to solve the error when the application is opened on another laptop on Thu, 20 Jun 2024 13:42:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/blackzero">@<bdi>Blackzero</bdi></a> You're trying to run a debug build which requires debug versions of libraries it depends on (like the VCRUNTIME). You should deploy release builds of your app not debug. If you really want to deploy debug builds then also provide debug versions of these libraries.</p>
]]></description><link>https://forum.qt.io/post/803107</link><guid isPermaLink="true">https://forum.qt.io/post/803107</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Thu, 20 Jun 2024 13:42:37 GMT</pubDate></item></channel></rss>