[Development] Failed to run configure.bat in qt/qt5 repository on Windows?
Cristian Adam
cristian.adam at qt.io
Thu Aug 17 18:36:21 CEST 2023
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230817/1dd90bce/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 20899 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230817/1dd90bce/attachment-0001.png>
More information about the Development
mailing list