On 17-Aug-23 17:08, Haowei Hsu wrote:
Hello, Alexandru.

I have already installed LLVM on my Windows computer using the LLVM-xxx-win64.exe <https://github.com/llvm/llvm-project/releases/tag/llvmorg-16.0.6> installer downloaded from LLVM's GitHub. From the installation results, it does indeed
contain *libclang.dll* and *libclang.lib*.

image.png

I have also set the *LLVM_INSTALL_DIR* environment variable to its top-level installation directory *"C:\Program Files\LLVM"*. However, from the warning message when running
configure.bat, it seems that libclang still cannot be found.


Hi,

Alexandru pointed out to https://download.qt.io/development_releases/prebuilt/libclang/qt/ which contains a static build of LLVM libraries,
but it also installs the CMake package files.

Qt is using CMake's find_package mechanism to find installed software. Setting LLVM_INSTALL_DIR doesn't do much because the official LLVM packages do not install  the CMake package files under "c:\Program Files\LLVM\lib\cmake".

This is why configure fails.

Supporting LLVM_INSTALL_DIR is giving the false impression that things will work with any LLVM installation, having specified the LLVM installation via CMAKE_PREFIX_PATH like one would do for Qt, would suggest that CMake installation packages are needed.

I've opened up LLVM/Clang Windows installer doesn't provide CMake package information · Issue #47222 · llvm/llvm-project (github.com) <https://github.com/llvm/llvm-project/issues/47222> but it was closed as WONTFIX.

I think we should put a DO NOT USE LLVM INSTALLER FROM Download LLVM releases <https://releases.llvm.org/> on WINDOWS !!!

Cheers,
Cristian.
-- 
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to