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

Haowei Hsu hwhsu1231 at gmail.com
Sun Aug 13 18:47:15 CEST 2023


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/20230814/2b5896c1/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/20230814/2b5896c1/attachment-0001.png>
-------------- next part --------------

D:\Repo\GitHub\testing\qt-docs\qt5>rmdir /s/q build

D:\Repo\GitHub\testing\qt-docs\qt5>git status
HEAD detached at v6.5.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)
  (commit or discard the untracked or modified content in submodules)
        modified:   qt3d (untracked content)
        modified:   qt5compat (untracked content)
        modified:   qtactiveqt (untracked content)
        modified:   qtbase (untracked content)
        modified:   qtcharts (untracked content)
        modified:   qtcoap (untracked content)
        modified:   qtconnectivity (untracked content)
        modified:   qtdatavis3d (untracked content)
        modified:   qtdeclarative (untracked content)
        modified:   qtdoc (untracked content)
        modified:   qthttpserver (untracked content)
        modified:   qtlanguageserver (untracked content)
        modified:   qtmultimedia (untracked content)
        modified:   qtpositioning (untracked content)
        modified:   qtquick3d (untracked content)
        modified:   qtquicktimeline (untracked content)
        modified:   qtserialport (untracked content)
        modified:   qtshadertools (untracked content)
        modified:   qtsvg (untracked content)
        modified:   qttools (untracked content)
        modified:   qtwebchannel (untracked content)
        modified:   qtwebengine (untracked content)
        modified:   qtwebsockets (untracked content)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        qtgraphs/

no changes added to commit (use "git add" and/or "git commit -a")

D:\Repo\GitHub\testing\qt-docs\qt5>git clean -xdf

D:\Repo\GitHub\testing\qt-docs\qt5>git submodule update --recursive

D:\Repo\GitHub\testing\qt-docs\qt5>vcvarsall.bat x64
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.11.23
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

D:\Repo\GitHub\testing\qt-docs\qt5>mkdir build && chdir build

D:\Repo\GitHub\testing\qt-docs\qt5\build>..\configure.bat
+ cd qtbase
+ D:\Repo\GitHub\testing\qt-docs\qt5\qtbase\configure.bat -top-level
-- Windows 10 SDK version: 10.0.22000.0
'C:/Program Files/CMake/bin/cmake.exe' '-G' 'Ninja' 'D:/Repo/GitHub/testing/qt-docs/qt5'
-- The CXX compiler identification is MSVC 19.29.30147.0
-- The C compiler identification is MSVC 19.29.30147.0
-- The ASM compiler identification is MSVC
-- Found assembler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking dependencies of submodule 'qtbase'
-- Checking dependencies of submodule 'qtimageformats'
-- Checking dependencies of submodule 'qtlanguageserver'
-- Checking dependencies of submodule 'qtshadertools'
-- Checking dependencies of submodule 'qtsvg'
-- Checking dependencies of submodule 'qtdeclarative'
-- Checking dependencies of submodule 'qtquicktimeline'
-- Checking dependencies of submodule 'qtquick3d'
-- Checking dependencies of submodule 'qtmultimedia'
-- Checking dependencies of submodule 'qt3d'
-- Checking dependencies of submodule 'qt5compat'
-- Checking dependencies of submodule 'qtactiveqt'
-- Checking dependencies of submodule 'qtcharts'
-- Checking dependencies of submodule 'qtcoap'
-- Checking dependencies of submodule 'qtconnectivity'
-- Checking dependencies of submodule 'qtdatavis3d'
-- Checking dependencies of submodule 'qtwebsockets'
-- Checking dependencies of submodule 'qthttpserver'
-- Checking dependencies of submodule 'qttools'
-- Checking dependencies of submodule 'qtserialport'
-- Checking dependencies of submodule 'qtpositioning'
-- Checking dependencies of submodule 'qtwebchannel'
-- Checking dependencies of submodule 'qtwebengine'
-- Checking dependencies of submodule 'qtdoc'
-- Checking dependencies of submodule 'qtgraphs'
-- Checking dependencies of submodule 'qtgrpc'
-- Checking dependencies of submodule 'qtlocation'
-- Checking dependencies of submodule 'qtlottie'
-- Checking dependencies of submodule 'qtmqtt'
-- Checking dependencies of submodule 'qtnetworkauth'
-- Checking dependencies of submodule 'qtopcua'
-- Checking dependencies of submodule 'qtqa'
-- Checking dependencies of submodule 'qtquick3dphysics'
-- Checking dependencies of submodule 'qtquickeffectmaker'
-- Checking dependencies of submodule 'qtremoteobjects'
-- Checking dependencies of submodule 'qtscxml'
-- Checking dependencies of submodule 'qtsensors'
-- Checking dependencies of submodule 'qtserialbus'
-- Checking dependencies of submodule 'qtspeech'
-- Checking dependencies of submodule 'qttranslations'
-- Checking dependencies of submodule 'qtvirtualkeyboard'
-- Checking dependencies of submodule 'qtwayland'
-- Checking dependencies of submodule 'qtwebview'
-- Configuring submodule 'qtbase'
            -DCMAKE_C_FLAGS=/DWIN32 /D_WINDOWS
            -DCMAKE_C_FLAGS_DEBUG=/Zi /Ob0 /Od /RTC1
            -DCMAKE_C_FLAGS_RELEASE=/O2 /Ob2 /DNDEBUG
            -DCMAKE_C_FLAGS_RELWITHDEBINFO=/Zi /O2 /Ob1 /DNDEBUG
            -DCMAKE_CXX_FLAGS=/DWIN32 /D_WINDOWS /EHsc
            -DCMAKE_CXX_FLAGS_DEBUG=/Zi /Ob0 /Od /RTC1
            -DCMAKE_CXX_FLAGS_RELEASE=/O2 /Ob2 /DNDEBUG
            -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=/Zi /O2 /Ob1 /DNDEBUG
            -DCMAKE_OBJCOPY=C:/Strawberry/c/bin/objcopy.exe
            -DCMAKE_EXE_LINKER_FLAGS=/machine:x64
            -DCMAKE_C_STANDARD=11
            -DCMAKE_C_STANDARD_REQUIRED=ON
            -DCMAKE_CXX_STANDARD=17
            -DCMAKE_CXX_STANDARD_REQUIRED=ON
            -DCMAKE_MODULE_PATH:STRING=D:/Repo/GitHub/testing/qt-docs/qt5/qtbase/cmake/platforms
-- Configuring submodule 'qtimageformats'
-- Configuring submodule 'qtlanguageserver'
-- Configuring submodule 'qtshadertools'
-- Configuring submodule 'qtsvg'
-- Configuring submodule 'qtdeclarative'
-- Configuring submodule 'qtquicktimeline'
-- Configuring submodule 'qtquick3d'
-- Configuring submodule 'qtmultimedia'
-- Configuring submodule 'qt3d'
CMake Warning (dev) at build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qt3d/src/quick3d/imports/render/CMakeLists.txt:10 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qt3d/src/quick3d/imports/scene3d/CMakeLists.txt:10 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qt3d/src/quick3d/imports/extras/CMakeLists.txt:10 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qt3d/src/quick3d/imports/scene2d/CMakeLists.txt:10 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qt3d/src/quick3d/imports/input/CMakeLists.txt:10 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qt3d/src/quick3d/imports/logic/CMakeLists.txt:10 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qt3d/src/quick3d/imports/animation/CMakeLists.txt:10 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring submodule 'qt5compat'
CMake Warning (dev) at build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qt5compat/src/imports/graphicaleffects5/CMakeLists.txt:36 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring submodule 'qtactiveqt'
-- Configuring submodule 'qtcharts'
-- Configuring submodule 'qtcoap'
-- Configuring submodule 'qtconnectivity'
-- Configuring submodule 'qtdatavis3d'
-- Configuring submodule 'qtwebsockets'
CMake Warning (dev) at build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qtwebsockets/src/imports/qmlwebsockets/CMakeLists.txt:4 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring submodule 'qthttpserver'
-- Configuring submodule 'qttools'
-- Could NOT find Clang (missing: Clang_DIR)
-- Could NOT find Clang (missing: Clang_DIR)
-- Configuring submodule 'qtserialport'
-- Configuring submodule 'qtpositioning'
-- Configuring submodule 'qtwebchannel'
CMake Warning (dev) at build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:404 (message):
  INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used.
  Please port your module to use declarative type registration.
Call Stack (most recent call first):
  qtwebchannel/src/imports/webchannel/CMakeLists.txt:10 (qt_internal_add_qml_module)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring submodule 'qtwebengine'
[QtWebEngine] -- Windows 10 SDK version: 10.0.22000.0
-- Configuring submodule 'qtdoc'
-- Configuring submodule 'qtgraphs'
CMake Warning at build/qtbase/lib/cmake/Qt6/Qt6ConfigVersion.cmake:53 (message):
  Version 6.7.0 of package Qt6 was requested but an incompatible version was
  found: 6.5.2.  You can pass -DQT_NO_PACKAGE_VERSION_CHECK=TRUE to disable
  the version check and force the incompatible version to be used.  There is
  no guarantee the build will succeed.  Use at your own risk.  You can
  silence this warning by passing
  -DQT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING=TRUE
Call Stack (most recent call first):
  qtgraphs/CMakeLists.txt:14 (find_package)


CMake Warning at build/qtbase/lib/cmake/Qt6/Qt6ConfigVersion.cmake:53 (message):
  Version 6.7.0 of package Qt6 was requested but an incompatible version was
  found: 6.5.2.  You can pass -DQT_NO_PACKAGE_VERSION_CHECK=TRUE to disable
  the version check and force the incompatible version to be used.  There is
  no guarantee the build will succeed.  Use at your own risk.  You can
  silence this warning by passing
  -DQT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING=TRUE
Call Stack (most recent call first):
  qtgraphs/CMakeLists.txt:14 (find_package)


CMake Warning at build/qtbase/lib/cmake/Qt6/Qt6ConfigVersion.cmake:53 (message):
  Version 6.7.0 of package Qt6 was requested but an incompatible version was
  found: 6.5.2.  You can pass -DQT_NO_PACKAGE_VERSION_CHECK=TRUE to disable
  the version check and force the incompatible version to be used.  There is
  no guarantee the build will succeed.  Use at your own risk.  You can
  silence this warning by passing
  -DQT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING=TRUE
Call Stack (most recent call first):
  qtgraphs/CMakeLists.txt:14 (find_package)


CMake Error at qtgraphs/CMakeLists.txt:14 (find_package):
  Could not find a configuration file for package "Qt6" that is compatible
  with requested version "6.7.0".

  The following configuration files were considered but not accepted:

    D:/Repo/GitHub/testing/qt-docs/qt5/build/qtbase/lib/cmake/Qt6/Qt6Config.cmake, version: 6.5.2



-- Configuring incomplete, errors occurred!
CMake Error at D:/Repo/GitHub/testing/qt-docs/qt5/qtbase/cmake/QtProcessConfigureArgs.cmake:998 (message):
  CMake exited with code 1.



D:\Repo\GitHub\testing\qt-docs\qt5\build>


More information about the Development mailing list