<?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[QT build from source in windows 10 (shellscalingapi.h not found)]]></title><description><![CDATA[<p dir="auto">I am getting the following error when i try to compile QT in static mode:</p>
<pre><code>C:/Programs/Qt/Static/Src/qtbase/src/plugins/platforms/windows/qwindowscontext.cpp:93:10: fatal error: shellscalingapi.h: No such file or directory
 #include &lt;shellscalingapi.h&gt;
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
[1538/8790] Building CXX object qtbase/src/plugins/platfor...Files/QWindowsIntegrationPlugin.dir/qwindowscursor.cpp.obj
ninja: build stopped: subcommand failed.
</code></pre>
<p dir="auto">I use this command in CMD and in QT source code folder directory:</p>
<pre><code>configure.bat -release -static -prefix C:\Programs\Qt\Static\build-static -xcb
</code></pre>
<p dir="auto">and after configuration completed, i use this command :</p>
<pre><code>cmake --build . --parallel
</code></pre>
<p dir="auto">and i get that error before build complete. my OS is Windows 10. QT version is 6.3.1.<br />
I also build QT in static mode on ubuntu20 and macOS without any problem, with same source files.</p>
<p dir="auto">i try instructions in this link:<br />
<a href="https://doc.qt.io/qt-6/windows-building.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/windows-building.html</a><br />
i installed cmake, perl, python and ninja and all of them are visible in CMD but this error seen. all of these steps done with MinGW11.2 compiler. then i try to install MSVC compiler and try again but nothing changed. i guess the configure.bat file cannot detect MSVC and works with MinGW.<br />
how can i solve this problem? (with any of these compilers)</p>
]]></description><link>https://forum.qt.io/topic/139227/qt-build-from-source-in-windows-10-shellscalingapi-h-not-found</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Nov 2026 03:15:45 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/139227.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 11 Sep 2022 08:23:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QT build from source in windows 10 (shellscalingapi.h not found) on Mon, 19 Sep 2022 05:40:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vakh">@<bdi>vakh</bdi></a> said in <a href="/post/729159">QT build from source in windows 10 (shellscalingapi.h not found)</a>:</p>
<blockquote>
<p dir="auto">how can I solve this problem?</p>
</blockquote>
<p dir="auto">Well, you would also have to compile all these libraries as static libraries and rebuild your app...</p>
]]></description><link>https://forum.qt.io/post/729236</link><guid isPermaLink="true">https://forum.qt.io/post/729236</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Mon, 19 Sep 2022 05:40:51 GMT</pubDate></item><item><title><![CDATA[Reply to QT build from source in windows 10 (shellscalingapi.h not found) on Sun, 18 Sep 2022 11:22:49 GMT]]></title><description><![CDATA[<p dir="auto">thanks a lot! QT static compile successfully done :)<br />
now after adding this new qmake.exe to project development kit, I face a new problem. As I said before, doing this steps in ubuntu and macOS solved the need for shared libraries and application works without any problems in other computers (without QT installation). but here after doing all of these steps, application in windows need other libraries like "libgcc_s_seh-1.dll". how can I solve this problem?</p>
]]></description><link>https://forum.qt.io/post/729159</link><guid isPermaLink="true">https://forum.qt.io/post/729159</guid><dc:creator><![CDATA[vakh]]></dc:creator><pubDate>Sun, 18 Sep 2022 11:22:49 GMT</pubDate></item><item><title><![CDATA[Reply to QT build from source in windows 10 (shellscalingapi.h not found) on Thu, 15 Sep 2022 11:55:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vakh">@<bdi>vakh</bdi></a> said in <a href="/post/728734">QT build from source in windows 10 (shellscalingapi.h not found)</a>:</p>
<blockquote>
<p dir="auto">is it for little RAM?</p>
</blockquote>
<p dir="auto">Yes. You can limit the number of parallel compiler processes using make instead of ninja. For example to only use 4 processes do: make -j 4.</p>
]]></description><link>https://forum.qt.io/post/728840</link><guid isPermaLink="true">https://forum.qt.io/post/728840</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Thu, 15 Sep 2022 11:55:01 GMT</pubDate></item><item><title><![CDATA[Reply to QT build from source in windows 10 (shellscalingapi.h not found) on Wed, 14 Sep 2022 15:08:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> thanks a lot. after I see your answer, I tested it. the problem solved. but another problem appeared.<br />
<img src="https://ddgobkiprc33d.cloudfront.net/1386b9e1-af48-4c91-b8a2-415f8c63b3f4.png" alt="909984bd-ab16-4de3-b32d-c106f1071aed-image.png" class=" img-fluid img-markdown" /><br />
is it for little RAM? my system is intel core i5 6500T with 8 GB RAM and 58 GB free space on drive C. (I test this procedure two times and it failed because of low space on memory. then i solve it but now it failed with this error).</p>
]]></description><link>https://forum.qt.io/post/728734</link><guid isPermaLink="true">https://forum.qt.io/post/728734</guid><dc:creator><![CDATA[vakh]]></dc:creator><pubDate>Wed, 14 Sep 2022 15:08:02 GMT</pubDate></item><item><title><![CDATA[Reply to QT build from source in windows 10 (shellscalingapi.h not found) on Tue, 13 Sep 2022 09:14:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vakh">@<bdi>vakh</bdi></a> You are apparently usingf wrong compiler!<br />
Start from scratch: delete build folder, create new one and continue with the build. It should now pick up the correct compiler.</p>
]]></description><link>https://forum.qt.io/post/728515</link><guid isPermaLink="true">https://forum.qt.io/post/728515</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Tue, 13 Sep 2022 09:14:19 GMT</pubDate></item><item><title><![CDATA[Reply to QT build from source in windows 10 (shellscalingapi.h not found) on Tue, 13 Sep 2022 09:11:26 GMT]]></title><description><![CDATA[<p dir="auto">I solve it. but nothing changed:<br />
<img src="https://ddgobkiprc33d.cloudfront.net/74e3d685-320e-45ad-9e91-231c5faea9a1.png" alt="b444b4a2-d931-4fb6-8768-765ff46fe84b-image.png" class=" img-fluid img-markdown" /><br />
i think the problem is related to Ninja.</p>
]]></description><link>https://forum.qt.io/post/728511</link><guid isPermaLink="true">https://forum.qt.io/post/728511</guid><dc:creator><![CDATA[vakh]]></dc:creator><pubDate>Tue, 13 Sep 2022 09:11:26 GMT</pubDate></item><item><title><![CDATA[Reply to QT build from source in windows 10 (shellscalingapi.h not found) on Tue, 13 Sep 2022 07:16:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vakh">@<bdi>vakh</bdi></a> You have two GCCs installed. Check the build log to see which one is used during the build.</p>
]]></description><link>https://forum.qt.io/post/728479</link><guid isPermaLink="true">https://forum.qt.io/post/728479</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Tue, 13 Sep 2022 07:16:19 GMT</pubDate></item><item><title><![CDATA[Reply to QT build from source in windows 10 (shellscalingapi.h not found) on Tue, 13 Sep 2022 04:35:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kkoehne">@<bdi>kkoehne</bdi></a><br />
It is the output of CMD:</p>
<pre><code>Microsoft Windows [Version 10.0.19043.1110]
(c) Microsoft Corporation. All rights reserved.

Z:\&gt;where gcc
C:\Programs\Qt\Tools\mingw1120_64\bin\gcc.exe
C:\Programs\Strawberry\c\bin\gcc.exe
</code></pre>
<p dir="auto">it seems true.</p>
]]></description><link>https://forum.qt.io/post/728459</link><guid isPermaLink="true">https://forum.qt.io/post/728459</guid><dc:creator><![CDATA[vakh]]></dc:creator><pubDate>Tue, 13 Sep 2022 04:35:14 GMT</pubDate></item><item><title><![CDATA[Reply to QT build from source in windows 10 (shellscalingapi.h not found) on Mon, 12 Sep 2022 15:28:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vakh">@<bdi>vakh</bdi></a> said in <a href="/post/728367">QT build from source in windows 10 (shellscalingapi.h not found)</a>:</p>
<blockquote>
<p dir="auto">but compiler can not find it. how can i add this directory to compiler include path?</p>
</blockquote>
<p dir="auto">If you use the gcc from C:\Programs\Qt\Tools\mingw1120_64\bin, the directory is part of the compiler default include path. Which gcc are you using (which path shows up if you run "where gcc")?</p>
]]></description><link>https://forum.qt.io/post/728411</link><guid isPermaLink="true">https://forum.qt.io/post/728411</guid><dc:creator><![CDATA[kkoehne]]></dc:creator><pubDate>Mon, 12 Sep 2022 15:28:29 GMT</pubDate></item><item><title><![CDATA[Reply to QT build from source in windows 10 (shellscalingapi.h not found) on Tue, 13 Sep 2022 04:32:24 GMT]]></title><description><![CDATA[<p dir="auto">thanks for your reply. I googled for this and most of answers says to comment out related codes. this library used for high-DPI scaling and its not necessary but i don't want to loss this feature. i found it only in this directory:</p>
<p dir="auto">C:\Programs\Qt\Tools\mingw1120_64\x86_64-w64-mingw32\include</p>
<p dir="auto">but compiler can not find it. how can i add this directory to compiler include path? trying to add this directory to "path" in system environment variables doesn't effect because its related to windows not to ninja.</p>
]]></description><link>https://forum.qt.io/post/728367</link><guid isPermaLink="true">https://forum.qt.io/post/728367</guid><dc:creator><![CDATA[vakh]]></dc:creator><pubDate>Tue, 13 Sep 2022 04:32:24 GMT</pubDate></item><item><title><![CDATA[Reply to QT build from source in windows 10 (shellscalingapi.h not found) on Sun, 11 Sep 2022 08:34:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vakh">@<bdi>vakh</bdi></a><br />
I don't know why this is missing for Qt 6/static build/your MinGW, but I would Google <code>shellscalingapi.h not found</code> and act on one of the hits for that.</p>
]]></description><link>https://forum.qt.io/post/728186</link><guid isPermaLink="true">https://forum.qt.io/post/728186</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Sun, 11 Sep 2022 08:34:31 GMT</pubDate></item></channel></rss>