windows 由于缺少libclang,在配置Qt 6.2.4时无法配置QDoc

ddrv8njm  于 2023-06-30  发布在  Windows
关注(0)|答案(1)|浏览(214)

我试图在Windows 10上从源代码构建Qt 6.2.4。我在配置时遇到以下警告。

WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
Either set CMAKE_PREFIX_PATH or LLVM_INSTALL_DIR to the location of your llvm installation.
On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
On macOS, you can use Homebrew's llvm package.
You will also need to set the FEATURE_clang CMake variable to ON to re-evaluate this check.
WARNING: Clang-based lupdate parser will not be available. LLVM and Clang C++ libraries have not been found.
You will need to set the FEATURE_clangcpp CMake variable to ON to re-evaluate this check.

我已经将LLVM_INSTALL_DIR设置为Qt下载站点(https://download.qt.io/development_releases/prebuilt/libclang/)上预构建的libclang的顶级目录。特别是,我下载了Windows 16.0.2。我删除了构建目录并重新配置。尽管我这样做了,但它仍然给了我警告。有人知道发生了什么事,可以给予我建议吗?

chhqkbe1

chhqkbe11#

看起来我并没有真正设置LLVM_INSTALL_DIR。我尝试在调用configure.bat时使用-D,而不是在调用cmake时使用-D。使用-DLLVM_INSTALL_DIR=/path/to/llvm调用cmake似乎实际上设置了LLVM_INSTALL_DIR。

相关问题