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

Alexey Edelev alexey.edelev at qt.io
Sun Aug 13 19:00:33 CEST 2023


Hi Haowei Hsu,

>From the log it's clear that qtgraphs has the newer version than the qtbase and other repos. I'm not sure why cleaning qt5 repo didn't help.

Try remove the 'qtgraphs' directory manually to make sure it's not included into top-level qt configuring process. You also may try to add '-skip qtgraphs' argument to the '..\configure' command. If the issue occurs again with other repo, do the same.

Regards,
Alexey


Alexey Edelev

Software Engineer

Qt Group
Erich-Thilo-Str. 10 12489
Berlin, Germany

alexey.edelev at qt.io

www.qt.io<https://www.qt.io>

[https://s3.eu-north-1.amazonaws.com/email-signature-tool-leroy/Qt-Group-logo-black-1.png]<https://www.qt.io/>
[https://s3.eu-north-1.amazonaws.com/email-signature-tool-leroy/facebook-x2-right.png]<https://www.facebook.com/qt/>    [https://s3.eu-north-1.amazonaws.com/email-signature-tool-leroy/twitter-x2.png] <https://twitter.com/qtproject>         [https://s3.eu-north-1.amazonaws.com/email-signature-tool-leroy/linkedin-x2.png] <https://www.linkedin.com/company/qtgroup/>    [https://s3.eu-north-1.amazonaws.com/email-signature-tool-leroy/youtube-x2.png] <https://www.youtube.com/QtStudios>
________________________________
From: Haowei Hsu <hwhsu1231 at gmail.com>
Sent: Sunday, August 13, 2023 6:47 PM
To: Alexey Edelev <alexey.edelev 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, Alexey.
Thanks for your reply. However, even though I run 'git clean -xdf' before '..\configure.bat',
the error still showed up. The following commands are what I tried:

  1.  rmdir /s/q build
  2.  git status
  3.  git clean -xdf
  4.  git submodule update --recursive
  5.  mkdir build && chdir build
  6.  ..\configure.bat

What happened?
You can see the attachment with the full log: log-failed-even-after-git-clean-xdf.txt
---
Haowei Hsu

Alexey Edelev <alexey.edelev at qt.io<mailto:alexey.edelev at qt.io>> 於 2023年8月13日 週日 下午8:27寫道:
Hi Haowei Hsu,
you cloned the full Qt repo recursively at first step, so some modules that are only available in 'dev', such as qtgraphs were cloned too. After you checked out v 6.5.2 those repos remain on file system as free-floating sources without version control.
Calling 'git clean -xdf' as step 5b should remove those leftovers.

The error that you see means that some modules have incompatible version, so the root cause of this behavior I described above.

Regards,
Alexey





Alexey Edelev

Software Engineer



Qt Group
Erich-Thilo-Str. 10 12489
Berlin, Germany

alexey.edelev at qt.io

www.qt.io<https://www.qt.io>





[https://s3.eu-north-1.amazonaws.com/email-signature-tool-leroy/Qt-Group-logo-black-1.png]<https://www.qt.io/>
[https://s3.eu-north-1.amazonaws.com/email-signature-tool-leroy/facebook-x2-right.png]<https://www.facebook.com/qt/>    [https://s3.eu-north-1.amazonaws.com/email-signature-tool-leroy/twitter-x2.png] <https://twitter.com/qtproject>         [https://s3.eu-north-1.amazonaws.com/email-signature-tool-leroy/linkedin-x2.png] <https://www.linkedin.com/company/qtgroup/>    [https://s3.eu-north-1.amazonaws.com/email-signature-tool-leroy/youtube-x2.png] <https://www.youtube.com/QtStudios>
________________________________
From: Development <development-bounces at qt-project.org<mailto:development-bounces at qt-project.org>> on behalf of Haowei Hsu <hwhsu1231 at gmail.com<mailto:hwhsu1231 at gmail.com>>
Sent: Sunday, August 13, 2023 2:08 PM
To: Qt development mailing list <development at qt-project.org<mailto:development at qt-project.org>>
Subject: [Development] Failed to run configure.bat in qt/qt5 repository on Windows?

Hello, Qt Development Team.

Recently, I tried to configure the qt/qt5<https://github.com/qt/qt5> repository. The following commands
are what I use to configure the project according to its README.md:

  1.  git clone --recursive https://github.com/qt/qt5.git
  2.  chdir qt5
  3.  git status
  4.  git checkout v6.5.2
  5.  git submodule update --recursive
  6.  vcvarsall.bat x64
  7.  configure.bat

However, it turns out that there are some errors occurred.
What do I miss? How to fix these errors?

[image.png]

NOTE: Currently, I just want to build Qt's Documentation instead of the
whole Qt's artifacts.

You can see the attachment with the full log: log-failed-to-run-configure-on-windows.txt
---
Haowei Hsu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230813/b68e3353/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 116156 bytes
Desc: image.png
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230813/b68e3353/attachment-0001.png>


More information about the Development mailing list