[Development] Failed to run configure.bat in qt/qt5 repository on Windows?
Haowei Hsu
hwhsu1231 at gmail.com
Tue Aug 15 08:51:16 CEST 2023
Hello, Alexey.
About your previous comments:
Calling 'git clean -xdf' as step 5b should remove those leftovers.
and
> 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.
I think I found the solution to how to remove those untracked submodules
properly. That is:
*git clean -xfdf*
This command is found at: https://stackoverflow.com/a/52044955/16265240
The following commands are what I test:
1. *git status*
2. *git checkout v6.3.2*
3. *git status*
4. *git clean -xfdf*
5. *git status*
[image: image.png]
You can see the attachment with the full log:
*log-git-clean-xfdf-after-checkout.txt*
---
Haowei Hsu
Alexey Edelev <alexey.edelev at qt.io> 於 2023年8月14日 週一 上午1:00寫道:
> 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
> [image:
> https://s3.eu-north-1.amazonaws.com/email-signature-tool-leroy/Qt-Group-logo-black-1.png]
> <https://www.qt.io/>
> [image:
> https://s3.eu-north-1.amazonaws.com/email-signature-tool-leroy/facebook-x2-right.png]
> <https://www.facebook.com/qt/> [image:
> https://s3.eu-north-1.amazonaws.com/email-signature-tool-leroy/twitter-x2.png]
> <https://twitter.com/qtproject> [image:
> https://s3.eu-north-1.amazonaws.com/email-signature-tool-leroy/linkedin-x2.png]
> <https://www.linkedin.com/company/qtgroup/> [image:
> 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> 於 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
>
>
>
>
>
> [image:
> https://s3.eu-north-1.amazonaws.com/email-signature-tool-leroy/Qt-Group-logo-black-1.png]
> <https://www.qt.io/>
> [image:
> https://s3.eu-north-1.amazonaws.com/email-signature-tool-leroy/facebook-x2-right.png]
> <https://www.facebook.com/qt/> [image:
> https://s3.eu-north-1.amazonaws.com/email-signature-tool-leroy/twitter-x2.png]
> <https://twitter.com/qtproject> [image:
> https://s3.eu-north-1.amazonaws.com/email-signature-tool-leroy/linkedin-x2.png]
> <https://www.linkedin.com/company/qtgroup/> [image:
> 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> on behalf of
> Haowei Hsu <hwhsu1231 at gmail.com>
> *Sent:* Sunday, August 13, 2023 2:08 PM
> *To:* Qt development mailing list <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
> <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: 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/20230815/b367103c/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 116156 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230815/b367103c/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 30966 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230815/b367103c/attachment-0003.png>
-------------- next part --------------
D:\Repo\GitHub\testing\qt-docs\qt5>git status
HEAD detached at v6.5.2
nothing to commit, working tree clean
D:\Repo\GitHub\testing\qt-docs\qt5>git checkout v6.3.2
warning: unable to rmdir 'qtgrpc': Directory not empty
warning: unable to rmdir 'qthttpserver': Directory not empty
warning: unable to rmdir 'qtquick3dphysics': Directory not empty
warning: unable to rmdir 'qtquickeffectmaker': Directory not empty
Updating files: 100% (941/941), done.
Previous HEAD position was 808f6325 Update submodules on '6.5.2 in qt/qt5'
HEAD is now at 316776cd Update submodules on '6.3.2 in qt/qt5'
M qt3d
M qt5compat
M qtactiveqt
M qtbase
M qtcharts
M qtcoap
M qtconnectivity
M qtdatavis3d
M qtdeclarative
M qtdoc
M qtimageformats
M qtlanguageserver
M qtlocation
M qtlottie
M qtmqtt
M qtmultimedia
M qtnetworkauth
M qtopcua
M qtpositioning
M qtqa
M qtquick3d
M qtquicktimeline
M qtremoteobjects
M qtrepotools
M qtscxml
M qtsensors
M qtserialbus
M qtserialport
M qtshadertools
M qtspeech
M qtsvg
M qttools
M qttranslations
M qtvirtualkeyboard
M qtwayland
M qtwebchannel
M qtwebengine
M qtwebsockets
M qtwebview
D:\Repo\GitHub\testing\qt-docs\qt5>git status
Refresh index: 100% (1289/1289), done.
HEAD detached at v6.3.2
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: qt3d (new commits)
modified: qt5compat (new commits)
modified: qtactiveqt (new commits)
modified: qtbase (new commits)
modified: qtcharts (new commits)
modified: qtcoap (new commits)
modified: qtconnectivity (new commits)
modified: qtdatavis3d (new commits)
modified: qtdeclarative (new commits)
modified: qtdoc (new commits)
modified: qtimageformats (new commits)
modified: qtlanguageserver (new commits)
modified: qtlocation (new commits)
modified: qtlottie (new commits)
modified: qtmqtt (new commits)
modified: qtmultimedia (new commits)
modified: qtnetworkauth (new commits)
modified: qtopcua (new commits)
modified: qtpositioning (new commits)
modified: qtqa (new commits)
modified: qtquick3d (new commits)
modified: qtquicktimeline (new commits)
modified: qtremoteobjects (new commits)
modified: qtrepotools (new commits)
modified: qtscxml (new commits)
modified: qtsensors (new commits)
modified: qtserialbus (new commits)
modified: qtserialport (new commits)
modified: qtshadertools (new commits)
modified: qtspeech (new commits)
modified: qtsvg (new commits)
modified: qttools (new commits)
modified: qttranslations (new commits)
modified: qtvirtualkeyboard (new commits)
modified: qtwayland (new commits)
modified: qtwebchannel (new commits)
modified: qtwebengine (new commits)
modified: qtwebsockets (new commits)
modified: qtwebview (new commits)
Untracked files:
(use "git add <file>..." to include in what will be committed)
qtgrpc/
qthttpserver/
qtquick3dphysics/
qtquickeffectmaker/
no changes added to commit (use "git add" and/or "git commit -a")
D:\Repo\GitHub\testing\qt-docs\qt5>git clean -xfdf
Removing qtgrpc/
Removing qthttpserver/
Removing qtquick3dphysics/
Removing qtquickeffectmaker/
D:\Repo\GitHub\testing\qt-docs\qt5>git status
Refresh index: 100% (1289/1289), done.
HEAD detached at v6.3.2
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: qt3d (new commits)
modified: qt5compat (new commits)
modified: qtactiveqt (new commits)
modified: qtbase (new commits)
modified: qtcharts (new commits)
modified: qtcoap (new commits)
modified: qtconnectivity (new commits)
modified: qtdatavis3d (new commits)
modified: qtdeclarative (new commits)
modified: qtdoc (new commits)
modified: qtimageformats (new commits)
modified: qtlanguageserver (new commits)
modified: qtlocation (new commits)
modified: qtlottie (new commits)
modified: qtmqtt (new commits)
modified: qtmultimedia (new commits)
modified: qtnetworkauth (new commits)
modified: qtopcua (new commits)
modified: qtpositioning (new commits)
modified: qtqa (new commits)
modified: qtquick3d (new commits)
modified: qtquicktimeline (new commits)
modified: qtremoteobjects (new commits)
modified: qtrepotools (new commits)
modified: qtscxml (new commits)
modified: qtsensors (new commits)
modified: qtserialbus (new commits)
modified: qtserialport (new commits)
modified: qtshadertools (new commits)
modified: qtspeech (new commits)
modified: qtsvg (new commits)
modified: qttools (new commits)
modified: qttranslations (new commits)
modified: qtvirtualkeyboard (new commits)
modified: qtwayland (new commits)
modified: qtwebchannel (new commits)
modified: qtwebengine (new commits)
modified: qtwebsockets (new commits)
modified: qtwebview (new commits)
no changes added to commit (use "git add" and/or "git commit -a")
D:\Repo\GitHub\testing\qt-docs\qt5>
More information about the Development
mailing list