<?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[Problems compiling and building the project]]></title><description><![CDATA[<p dir="auto">Problems compiling and building the project<br />
I cloned the project from here: <a href="https://github.com/Schildkroet/CANgaroo" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/Schildkroet/CANgaroo</a>. Compiled using QT Creator, assembled using the windeployqt utility. Since the project's GitHub page includes a Windows release, I can compare my build with the one on the project page. I found the following significant differences:</p>
<ol>
<li>My exe file is 70 times larger.</li>
<li>When building, I get warnings like<br />
"Warning: Cannot find any version of the dxcompiler.dll and dxil.dll."<br />
Warning: Cannot find Visual Studio installation directory, VCINSTALLDIR is not set. All of these files are present on the computer. The path to what is missing?</li>
<li>My number of DLLs is significantly smaller. I only have DLLs like QT6... and no DLLs like libbrotlicommon.dll, libdouble-conversion.dll, etc. 4. When I run my executable, I get the error "The procedure entry point _ZN10QchartView13setRubberBandERK6QFlagsINS_10RubberBandEE could not be found in the DLL."</li>
</ol>
<p dir="auto">Where to start to solve problems?</p>
]]></description><link>https://forum.qt.io/topic/164424/problems-compiling-and-building-the-project</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 17:43:41 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164424.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Mar 2026 15:14:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problems compiling and building the project on Wed, 01 Apr 2026 14:30:42 GMT]]></title><description><![CDATA[<p dir="auto"><code>windeployqt</code> only bundles Qt’s own libraries.</p>
<p dir="auto">For MSYS2: Have an AI write a Python script with the following logic:</p>
<ol>
<li>Recursively scan the target folder generated by <code>windeployqt</code>—including all subdirectories—to enumerate all executable files and DLLs. This ensures dependencies for plugins like <code>qsqlpsql</code> are also fully captured.</li>
<li>Run <code>ldd</code> on each file, extract all library paths starting with <code>c:/msys64</code> or <code>/c/msys64</code>, and copy those libraries to the deployment folder.</li>
<li>Repeat step 1 in a loop until <code>ldd</code> no longer returns any library paths beginning with <code>c:/msys64</code>.</li>
</ol>
<p dir="auto">For MSVC (VC): Match the corresponding compiler version, and include the compatible <code>vcredist_x64</code> redistributable when delivering the package to end users.</p>
]]></description><link>https://forum.qt.io/post/837484</link><guid isPermaLink="true">https://forum.qt.io/post/837484</guid><dc:creator><![CDATA[goldenhawking]]></dc:creator><pubDate>Wed, 01 Apr 2026 14:30:42 GMT</pubDate></item><item><title><![CDATA[Reply to Problems compiling and building the project on Tue, 31 Mar 2026 19:24:55 GMT]]></title><description><![CDATA[<p dir="auto">How did you resolve it ?</p>
]]></description><link>https://forum.qt.io/post/837464</link><guid isPermaLink="true">https://forum.qt.io/post/837464</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 31 Mar 2026 19:24:55 GMT</pubDate></item><item><title><![CDATA[Reply to Problems compiling and building the project on Tue, 31 Mar 2026 14:35:29 GMT]]></title><description><![CDATA[<p dir="auto">The issue is resolved, thank you.</p>
]]></description><link>https://forum.qt.io/post/837459</link><guid isPermaLink="true">https://forum.qt.io/post/837459</guid><dc:creator><![CDATA[kservice2]]></dc:creator><pubDate>Tue, 31 Mar 2026 14:35:29 GMT</pubDate></item><item><title><![CDATA[Reply to Problems compiling and building the project on Mon, 16 Mar 2026 20:33:36 GMT]]></title><description><![CDATA[<p dir="auto">Are these Qt specific errors or something else ?</p>
]]></description><link>https://forum.qt.io/post/837137</link><guid isPermaLink="true">https://forum.qt.io/post/837137</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 16 Mar 2026 20:33:36 GMT</pubDate></item><item><title><![CDATA[Reply to Problems compiling and building the project on Mon, 16 Mar 2026 15:32:28 GMT]]></title><description><![CDATA[<ol>
<li>The C++ components for Visual Studio are installed.</li>
<li>There is no specific reason. I am more familiar with VS2022 than with Qt Creator, so I wanted to give it a try. However, as I understand it, it uses the MSVC compiler. And when using that compiler, I encounter a multitude of errors (moreover, fixing one error seems to trigger others). Is it possible that the code is optimized for a specific compiler (given that MinGW issues only 5–6 warnings, whereas MSVC reports 7 warnings and 15 errors)?</li>
</ol>
]]></description><link>https://forum.qt.io/post/837132</link><guid isPermaLink="true">https://forum.qt.io/post/837132</guid><dc:creator><![CDATA[kservice]]></dc:creator><pubDate>Mon, 16 Mar 2026 15:32:28 GMT</pubDate></item><item><title><![CDATA[Reply to Problems compiling and building the project on Sun, 15 Mar 2026 19:37:27 GMT]]></title><description><![CDATA[<ol>
<li>From a quick look, they used Designer. Qt Creator already integrates it so need for other tools.</li>
<li>I don't know, I am not on your machine. Silly question but: did you install the C++ stuff for Visual Studio ? They are not part of the default installation if memory serves well.</li>
</ol>
<p dir="auto">Any particular reason to want to use Visual Studio's compiler over MinGW ?</p>
]]></description><link>https://forum.qt.io/post/837108</link><guid isPermaLink="true">https://forum.qt.io/post/837108</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 15 Mar 2026 19:37:27 GMT</pubDate></item><item><title><![CDATA[Reply to Problems compiling and building the project on Sun, 15 Mar 2026 12:13:07 GMT]]></title><description><![CDATA[<p dir="auto">I also forgot to ask one more thing:</p>
<ol>
<li>What tools should I use to modify the author's application (for example, to make changes to the menu, alter button labels, etc.)? As I understand it, Qt Design Studio won't be of any help here?</li>
<li>Why am I unable to start debugging in Visual Studio? The "RUN" button is inactive. After all, it appears to be written in C++.</li>
</ol>
]]></description><link>https://forum.qt.io/post/837103</link><guid isPermaLink="true">https://forum.qt.io/post/837103</guid><dc:creator><![CDATA[kservice]]></dc:creator><pubDate>Sun, 15 Mar 2026 12:13:07 GMT</pubDate></item><item><title><![CDATA[Reply to Problems compiling and building the project on Sun, 15 Mar 2026 11:50:38 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for the excellent tip regarding "Debug vs. Release builds, possibly some optimization flags." This allowed me to pinpoint the reason for the discrepancy in the EXE file size. The application now launches—though only after upgrading to Qt 6.10.2 (I was previously using Qt 6.7.3).</p>
<p dir="auto">One question remains for future reference: which version of Qt should one use in general if the author hasn't provided specific instructions?</p>
]]></description><link>https://forum.qt.io/post/837102</link><guid isPermaLink="true">https://forum.qt.io/post/837102</guid><dc:creator><![CDATA[kservice]]></dc:creator><pubDate>Sun, 15 Mar 2026 11:50:38 GMT</pubDate></item><item><title><![CDATA[Reply to Problems compiling and building the project on Sat, 14 Mar 2026 17:55:30 GMT]]></title><description><![CDATA[<ol>
<li>no you don't just read the content of the workflows. These are basically turned into shell scripts (more or less). You can copy the logic.</li>
<li>Debug VS release builds, possibly some optimisation flags.</li>
</ol>
]]></description><link>https://forum.qt.io/post/837093</link><guid isPermaLink="true">https://forum.qt.io/post/837093</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 14 Mar 2026 17:55:30 GMT</pubDate></item><item><title><![CDATA[Reply to Problems compiling and building the project on Sat, 14 Mar 2026 07:19:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> said in <a href="/post/837058">Problems compiling and building the project</a>:<br />
2. you can write a script that calls windeployqt and then copy the extra dependencies<br />
3. msys2 is a collection of tool. MinGW was used to build the release<br />
You have likely built in debug mode.</p>
<ol>
<li>Everything is more or less clear with the libraries. Could you elaborate a bit on how I can do this in debug mode?<br />
Will I need Docker?</li>
<li>If both the author and I used MinGW, why is there such a big difference in the .exe file size?</li>
</ol>
]]></description><link>https://forum.qt.io/post/837087</link><guid isPermaLink="true">https://forum.qt.io/post/837087</guid><dc:creator><![CDATA[kservice]]></dc:creator><pubDate>Sat, 14 Mar 2026 07:19:30 GMT</pubDate></item><item><title><![CDATA[Reply to Problems compiling and building the project on Thu, 12 Mar 2026 20:15:15 GMT]]></title><description><![CDATA[<ol>
<li>yes</li>
<li>you can write a script that calls windeployqt and then copy the extra dependencies</li>
<li>msys2 is a collection of tool. MinGW was used to build the release</li>
</ol>
<p dir="auto">You have likely built in debug mode.</p>
]]></description><link>https://forum.qt.io/post/837058</link><guid isPermaLink="true">https://forum.qt.io/post/837058</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 12 Mar 2026 20:15:15 GMT</pubDate></item><item><title><![CDATA[Reply to Problems compiling and building the project on Thu, 12 Mar 2026 17:45:25 GMT]]></title><description><![CDATA[<p dir="auto">Thank you, that's a very valuable tip! But my knowledge base is too weak to fully utilize this.<br />
• Since there are workflows, does that mean GitHub Actions were used?<br />
• I saw that MinGW runtime DLLs are imported. This explains the difference in the number of libraries.<br />
But how do I use this when manually using windeployqt?<br />
• And most importantly, I couldn't figure out what the author used for compilation: MSYS2 or MinGW. It was the compilation method that determined the huge difference in EXE size, right?</p>
]]></description><link>https://forum.qt.io/post/837048</link><guid isPermaLink="true">https://forum.qt.io/post/837048</guid><dc:creator><![CDATA[kservice]]></dc:creator><pubDate>Thu, 12 Mar 2026 17:45:25 GMT</pubDate></item><item><title><![CDATA[Reply to Problems compiling and building the project on Thu, 12 Mar 2026 16:51:11 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">You should check their <a href="https://github.com/Schildkroet/CANgaroo/blob/85c46cc2f00d7b0a343c8dcec576304890768341/.github/workflows/cmake.yml#L128" target="_blank" rel="noopener noreferrer nofollow ugc">Windows build workflows</a>. You'll see all the steps they take to create their release.</p>
]]></description><link>https://forum.qt.io/post/837046</link><guid isPermaLink="true">https://forum.qt.io/post/837046</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 12 Mar 2026 16:51:11 GMT</pubDate></item></channel></rss>