<?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[Qtdeclarative error when compiling the source]]></title><description><![CDATA[<p dir="auto">I'm trying to compile Qt 6.6.0 using <code>Visual Studio 2022</code> Preview, Version 17.10.0 Preview 7.0 (also tried the non preview version)<br />
but it always fails in something related to <code>qtdeclarative</code>.</p>
<p dir="auto">I'm calling the <strong>configure.bat</strong> on <code>x64 Native Tools Command Prompt for VS 2022</code> as:</p>
<pre><code>configure.bat -debug-and-release -platform win32-msvc -opensource -confirm-license -force-debug-info -webengine-proprietary-codecs -feature-vulkan -no-schannel -openssl-linked -prefix "C:\Qt\6.6.0" -- -D OPENSSL_ROOT_DIR="C:\Program Files\OpenSSL"
</code></pre>
<p dir="auto">The build fails with:</p>
<pre><code>FAILED: qtdeclarative/src/quickcontrols/fusion/.rcc/qmlcache/qtquickcontrols2fusionstyleplugin_qmlcache_loader.cpp C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/fusion/.rcc/qmlcache/qtquickcontrols2fusionstyleplugin_qmlcache_loader.cpp
cmd.exe /C "cd /D C:\Qt\6.6.0\qtdeclarative\src\quickcontrols\fusion &amp;&amp; C:\Qt\6.6.0\.qt\bin\qt_setup_tool_path.bat C:/Qt/6.6.0/qtbase/bin/qmlcachegen.exe --resource-name qmlcache_qtquickcontrols2fusionstyleplugin --resource C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/fusion/.rcc/qmake_QtQuick_Controls_Fusion.qrc --resource C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/fusion/.rcc/qtquickcontrols2fusionstyleplugin_raw_qml_0.qrc --resource C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/fusion/.rcc/qtquickcontrols2fusionstyle.qrc -o C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/fusion/.rcc/qmlcache/qtquickcontrols2fusionstyleplugin_qmlcache_loader.cpp @C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/fusion/.rcc/qmlcache/qtquickcontrols2fusionstyleplugin_qml_loader_file_list.rsp"
[7138/19556] Generating .rcc/qmlcache/QuickTest_qmlcache_loader.cpp
FAILED: qtdeclarative/src/qmltest/.rcc/qmlcache/QuickTest_qmlcache_loader.cpp C:/Qt/6.6.0/qtdeclarative/src/qmltest/.rcc/qmlcache/QuickTest_qmlcache_loader.cpp
cmd.exe /C "cd /D C:\Qt\6.6.0\qtdeclarative\src\qmltest &amp;&amp; C:\Qt\6.6.0\.qt\bin\qt_setup_tool_path.bat C:/Qt/6.6.0/qtbase/bin/qmlcachegen.exe --resource-name qmlcache_QuickTest --resource C:/Qt/6.6.0/qtdeclarative/src/qmltest/.rcc/qmake_QtTest.qrc --resource C:/Qt/6.6.0/qtdeclarative/src/qmltest/.rcc/QuickTest_raw_qml_0.qrc -o C:/Qt/6.6.0/qtdeclarative/src/qmltest/.rcc/qmlcache/QuickTest_qmlcache_loader.cpp @C:/Qt/6.6.0/qtdeclarative/src/qmltest/.rcc/qmlcache/QuickTest_qml_loader_file_list.rsp"
[7141/19556] Generating .rcc/qmlcache/qtquickcontrols2basicstyleplugin_qmlcache_loader.cpp
FAILED: qtdeclarative/src/quickcontrols/basic/.rcc/qmlcache/qtquickcontrols2basicstyleplugin_qmlcache_loader.cpp C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/basic/.rcc/qmlcache/qtquickcontrols2basicstyleplugin_qmlcache_loader.cpp
cmd.exe /C "cd /D C:\Qt\6.6.0\qtdeclarative\src\quickcontrols\basic &amp;&amp; C:\Qt\6.6.0\.qt\bin\qt_setup_tool_path.bat C:/Qt/6.6.0/qtbase/bin/qmlcachegen.exe --resource-name qmlcache_qtquickcontrols2basicstyleplugin --resource C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/basic/.rcc/qmake_QtQuick_Controls_Basic.qrc --resource C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/basic/.rcc/qtquickcontrols2basicstyleplugin_raw_qml_0.qrc --resource C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/basic/.rcc/qtquickcontrols2basicstyleplugin.qrc -o C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/basic/.rcc/qmlcache/qtquickcontrols2basicstyleplugin_qmlcache_loader.cpp @C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/basic/.rcc/qmlcache/qtquickcontrols2basicstyleplugin_qml_loader_file_list.rsp"
[7142/19556] Generating .rcc/qmlcache/qtquickcontrols2fusionstyleimplplugin_qmlcache_loader.cpp
FAILED: qtdeclarative/src/quickcontrols/fusion/impl/.rcc/qmlcache/qtquickcontrols2fusionstyleimplplugin_qmlcache_loader.cpp C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/fusion/impl/.rcc/qmlcache/qtquickcontrols2fusionstyleimplplugin_qmlcache_loader.cpp
cmd.exe /C "cd /D C:\Qt\6.6.0\qtdeclarative\src\quickcontrols\fusion\impl &amp;&amp; C:\Qt\6.6.0\.qt\bin\qt_setup_tool_path.bat C:/Qt/6.6.0/qtbase/bin/qmlcachegen.exe --resource-name qmlcache_qtquickcontrols2fusionstyleimplplugin --resource C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/fusion/impl/.rcc/qmake_QtQuick_Controls_Fusion_impl.qrc --resource C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/fusion/impl/.rcc/qtquickcontrols2fusionstyleimplplugin_raw_qml_0.qrc -o C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/fusion/impl/.rcc/qmlcache/qtquickcontrols2fusionstyleimplplugin_qmlcache_loader.cpp @C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/fusion/impl/.rcc/qmlcache/qtquickcontrols2fusionstyleimplplugin_qml_loader_file_list.rsp"
[7143/19556] Generating .rcc/qmlcache/qtquickcontrols2imaginestyleplugin_qmlcache_loader.cpp
FAILED: qtdeclarative/src/quickcontrols/imagine/.rcc/qmlcache/qtquickcontrols2imaginestyleplugin_qmlcache_loader.cpp C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/imagine/.rcc/qmlcache/qtquickcontrols2imaginestyleplugin_qmlcache_loader.cpp
cmd.exe /C "cd /D C:\Qt\6.6.0\qtdeclarative\src\quickcontrols\imagine &amp;&amp; C:\Qt\6.6.0\.qt\bin\qt_setup_tool_path.bat C:/Qt/6.6.0/qtbase/bin/qmlcachegen.exe --resource-name qmlcache_qtquickcontrols2imaginestyleplugin --resource C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/imagine/.rcc/qmake_QtQuick_Controls_Imagine.qrc --resource C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/imagine/.rcc/qtquickcontrols2imaginestyleplugin_raw_qml_0.qrc --resource C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/imagine/.rcc/qmake_qtquickcontrols2imaginestyleplugin.qrc -o C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/imagine/.rcc/qmlcache/qtquickcontrols2imaginestyleplugin_qmlcache_loader.cpp @C:/Qt/6.6.0/qtdeclarative/src/quickcontrols/imagine/.rcc/qmlcache/qtquickcontrols2imaginestyleplugin_qml_loader_file_list.rsp"
[7166/19556] Building CXX object qtdeclarative\src\plugins...rviceFactoryPlugin.dir\Debug\qquickwindowinspector.cpp.obj
ninja: build stopped: subcommand failed.
</code></pre>
<p dir="auto">Full console log: <a href="https://pastebin.com/ttCM8AUw" target="_blank" rel="noopener noreferrer nofollow ugc">https://pastebin.com/ttCM8AUw</a></p>
<p dir="auto">I have found two similar topics, <a href="https://forum.qt.io/topic/154118/qt-build-failed-on-rcc-qmlcache-quicktooling_component_qml-cpp/5">this</a> and <a href="https://forum.qt.io/topic/155248/failing-to-build-qt-6-6-2-from-source-on-windows-10-with-mingw64-compiler/19?lang=pt-BR">this</a>.</p>
<p dir="auto">The second topic, suggest it could be an issue about ninja and long paths.<br />
I'm already using a short path, the source is at <code>C:/Qt/6.6.0/</code>, i enabled on regedit <a href="https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#enable-long-paths-in-windows-10-version-1607-and-later" target="_blank" rel="noopener noreferrer nofollow ugc">LongPathsEnabled</a><br />
then reboot and tried a new clean compilation, the error persist.</p>
<p dir="auto">In the second topic <a class="plugin-mentions-user plugin-mentions-a" href="/user/cristian-adam">@<bdi>cristian-adam</bdi></a> mention about also needing a "ninja manifest", see: <a href="https://github.com/ninja-build/ninja/pull/2225" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/ninja-build/ninja/pull/2225</a></p>
<p dir="auto">I didnt understand how to "enable" or use this manifest, on my computer i have <code>ninja.exe</code> on two locations:</p>
<pre><code>C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja
C:\Strawberry\c\bin
</code></pre>
<p dir="auto">I tried adding the <code>ninja.manifest</code> from Cristian commit, in both paths, and performed a new clean compilation, but i continue getting the same error.</p>
<hr />
<hr />
<hr />
<hr />
<hr />
<p dir="auto">I also get this same error when compiling the 6.7.0 source</p>
<p dir="auto">Full log: <a href="https://pastebin.com/jrh6GRVQ" target="_blank" rel="noopener noreferrer nofollow ugc">https://pastebin.com/jrh6GRVQ</a></p>
<p dir="auto">Error:</p>
<pre><code>[7295/20214] Generating .rcc/qmlcache/QuickTest_qmlcache_loader.cpp
FAILED: qtdeclarative/src/qmltest/.rcc/qmlcache/QuickTest_qmlcache_loader.cpp C:/Qt/6.7.0/qtdeclarative/src/qmltest/.rcc/qmlcache/QuickTest_qmlcache_loader.cpp
cmd.exe /C "cd /D C:\Qt\6.7.0\qtdeclarative\src\qmltest &amp;&amp; C:\Qt\6.7.0\.qt\bin\qt_setup_tool_path.bat C:/Qt/6.7.0/qtbase/bin/qmlcachegen.exe --resource-name qmlcache_QuickTest -o C:/Qt/6.7.0/qtdeclarative/src/qmltest/.rcc/qmlcache/QuickTest_qmlcache_loader.cpp @C:/Qt/6.7.0/qtdeclarative/src/qmltest/.rcc/qmlcache/QuickTest_qml_loader_file_list.rsp"
[7324/20214] Building CXX object qtdeclarative\src\quickwidgets\CMakeFiles\QuickWidgets.dir\Debug\cmake_pch.cxx.obj
ninja: build stopped: subcommand failed.
</code></pre>
]]></description><link>https://forum.qt.io/topic/156729/qtdeclarative-error-when-compiling-the-source</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Mar 2026 18:31:48 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/156729.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 May 2024 20:41:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qtdeclarative error when compiling the source on Sat, 18 May 2024 23:00:59 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://doc.qt.io/qt-6/qtwebengine-platform-notes.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/qtwebengine-platform-notes.html</a> doesn't mention Perl at all.</p>
<p dir="auto">In the past when perl was needed for building Qt, I picked up the perl from git, which I already had installed.</p>
]]></description><link>https://forum.qt.io/post/800356</link><guid isPermaLink="true">https://forum.qt.io/post/800356</guid><dc:creator><![CDATA[cristian-adam]]></dc:creator><pubDate>Sat, 18 May 2024 23:00:59 GMT</pubDate></item><item><title><![CDATA[Reply to Qtdeclarative error when compiling the source on Fri, 17 May 2024 15:05:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cristian-adam">@<bdi>cristian-adam</bdi></a> isn't Strawberry Perl needed for compiling QWebEngine?<br />
When i remove the flag <code>-openssl-linked</code>, it does compile correctly.</p>
]]></description><link>https://forum.qt.io/post/800286</link><guid isPermaLink="true">https://forum.qt.io/post/800286</guid><dc:creator><![CDATA[Cesar]]></dc:creator><pubDate>Fri, 17 May 2024 15:05:01 GMT</pubDate></item><item><title><![CDATA[Reply to Qtdeclarative error when compiling the source on Fri, 17 May 2024 09:03:44 GMT]]></title><description><![CDATA[<p dir="auto">I can see a few problems:</p>
<ol>
<li>You have Strawberry Perl installed. It's not needed, and most probably is causing issues.</li>
<li>Use official CMake and Ninja tools.<br />
I can see that you are using CMake from Strawberry Perl 🫣</li>
</ol>
<p dir="auto">I would suggest uninstalling Strawberry Perl, getting CMake and Ninja either from Qt SDK or via <code>winget install cmake</code>  and <code>winget install ninja</code>.</p>
<p dir="auto">This has nothing to do with long paths, as you are using a short path.</p>
]]></description><link>https://forum.qt.io/post/800263</link><guid isPermaLink="true">https://forum.qt.io/post/800263</guid><dc:creator><![CDATA[cristian-adam]]></dc:creator><pubDate>Fri, 17 May 2024 09:03:44 GMT</pubDate></item></channel></rss>