<?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[Unable to Build Qt Documentation on Windows 11 – Missing LLVM&#x2F;Clang CMake Config Files]]></title><description><![CDATA[<p dir="auto">I am currently trying to build the Qt documentation on a Windows 11 (64-bit) system. I have already built the Qt 6 source code successfully, and I can run the source build inside Qt Creator using the MinGW toolchain. However, documentation generation does not support MinGW, so I installed Visual Studio Build Tools 2022 with the full C++ development workload.</p>
<p dir="auto">The remaining blocker is obtaining a correct LLVM/Clang installation that includes the CMake configuration files required by qdoc. I have attempted multiple official LLVM Windows installers across different versions, but each installation seems to be missing the necessary Clang CMake config file.</p>
<p dir="auto">Qt qdoc requires the following files:<br />
C:\Program Files\LLVM\lib\cmake\llvm\LLVMConfig.cmake<br />
C:\Program Files\LLVM\lib\cmake\clang\ClangConfig.cmake</p>
<p dir="auto">In my case, LLVMConfig.cmake exists, but ClangConfig.cmake is always missing. From what I understand, this usually means the installer did not include:</p>
<ul>
<li>Clang libraries</li>
<li>Clang tools</li>
<li>libclang development files (CMake configs)</li>
</ul>
<p dir="auto">This seems to happen with some official LLVM Windows installers, which ship LLVM core without the Clang development package.<br />
When running CMake for the Qt build with documentation enabled, I use the following command:<br />
cmake -G Ninja ^<br />
-DQT_BUILD_DOCS=ON ^<br />
-DQT_QDOC_ENABLE_CLANG=ON ^<br />
-DLLVM_DIR="C:/Program Files/LLVM/lib/cmake/llvm" ^<br />
-DClang_DIR="C:/Program Files/LLVM/lib/cmake/clang" ^<br />
D:\QtBuild\source\qt6</p>
<p dir="auto">All other prerequisites have been installed correctly. The only blocking issue is obtaining an LLVM/Clang Windows distribution that provides the required CMake configuration files for qdoc.</p>
<p dir="auto">Can anyone recommend a specific LLVM/Clang Windows build or installer that includes both LLVMConfig.cmake and ClangConfig.cmake, or point me to the correct distribution needed for building Qt documentation on Windows?</p>
<p dir="auto">Thank you.</p>
]]></description><link>https://forum.qt.io/topic/163906/unable-to-build-qt-documentation-on-windows-11-missing-llvm-clang-cmake-config-files</link><generator>RSS for Node</generator><lastBuildDate>Sat, 02 May 2026 12:00:49 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/163906.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Dec 2025 09:59:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unable to Build Qt Documentation on Windows 11 – Missing LLVM&#x2F;Clang CMake Config Files on Thu, 11 Dec 2025 10:27:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hruthik-t-m">@<bdi>Hruthik-T-M</bdi></a> I've reported this to LLVM that they should ship the CMake files needed to consume the libraries, and they closed it as <em>won't do</em>.</p>
<p dir="auto">You can use Qt's LLVM prebuilt libraries at <a href="https://download.qt.io/development_releases/prebuilt/libclang/qt/" target="_blank" rel="noopener noreferrer nofollow ugc">https://download.qt.io/development_releases/prebuilt/libclang/qt/</a></p>
<p dir="auto">You get also the MinGW build of LLVM.</p>
]]></description><link>https://forum.qt.io/post/834504</link><guid isPermaLink="true">https://forum.qt.io/post/834504</guid><dc:creator><![CDATA[cristian-adam]]></dc:creator><pubDate>Thu, 11 Dec 2025 10:27:15 GMT</pubDate></item></channel></rss>