Hi, Right, you've hit now [QTBUG-108391] Prebuilt clang packages provided by Qt contains hardcoded library path - Qt Bug Tracker<https://bugreports.qt.io/browse/QTBUG-108391>
I have a workaround there. As it turns out we haven't managed to make a new Qt LLVM release with the change suggested in the bugreport. 🙁 This is again a MSVC thing, a MinGW build wouldn't have the DIA SDK and won't have the issue in the first place. Cheers, Cristian. ________________________________ From: Haowei Hsu <hwhsu1...@gmail.com> Sent: Friday, August 18, 2023 15:46 To: Cristian Adam <cristian.a...@qt.io> Cc: Qt development mailing list <development@qt-project.org> Subject: Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows? Hello, Cristian. After adding -DCMAKE_BUILD_TYPE=Release to configure.bat and change the value of CMAKE_PREFIX_PATH to "C:/Program Files/libclang", the warning message of not being able to find libclang disappears. However, when I try to build docs target, a new error message shows up: ninja: error: 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/DIA SDK/lib/amd64/diaguids.lib', needed by 'qtbase/bin/qdoc.exe', missing and no known rule to make it [image.png] I noticed that it is trying to find diaguids.lib in Professional edition of VS2019. However, the vcvarsall.bat I use to initialize the environment is Community edition. [image.png] [image.png] What happened? The following commands are what I run: 1. git status 2. mkdir build && chdir build 3. vcvarsall.bat x64 4. ..\configure.bat -developer-build -skip qtpositioning -- -DCMAKE_PREFIX_PATH="C:/Program Files/libclang" -DCMAKE_BUILD_TYPE=Release 5. cmake --build . --target docs 6. where vcvarsall.bat 7. where cl You can see the attachment with the full log: log-failed-to-locate-community-diaguids-lib.txt --- Haowei Hsu
-- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development