[Development] Failed to run configure.bat in qt/qt5 repository on Windows?

Cristian Adam cristian.adam at qt.io
Fri Aug 18 16:16:13 CEST 2023


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 <hwhsu1231 at gmail.com>
Sent: Friday, August 18, 2023 15:46
To: Cristian Adam <cristian.adam at qt.io>
Cc: Qt development mailing list <development at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230818/6c948645/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 10770 bytes
Desc: image.png
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230818/6c948645/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 27499 bytes
Desc: image.png
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230818/6c948645/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 20187 bytes
Desc: image.png
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230818/6c948645/attachment-0005.png>


More information about the Development mailing list