Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
6.4.0
-
None
Description
Building Qt 6.4.0 source fetched from maintenance tool fails.
I'm using Windows 11 and the command prompt is not Qt's command prompt. I just typed "cmd" to the address bar of the file explorer.
Though, even when I used "Qt 6.4.0 (MinGw 11.2.0 64-bit" and "Qt 6.4.0 (MSVC 2019 64-bit)", the build weren't successful with the same error.
<Prerequisites>
CMake 3.18 or later
C:\Qt\6.4.0\Src\build_common>cmake --version cmake version 3.25.1CMake suite maintained and supported by Kitware (kitware.com/cmake).
Perl 5.8 or later
C:\Qt\6.4.0\Src\build_common>perl --versionThis is perl 5, version 36, subversion 0 (v5.36.0) built for MSWin32-x64-multi-threadCopyright 1987-2022, Larry WallBinary build 36.0r1 provided by ActiveState http://www.ActiveState.com Built Fri Sep 23 19:18:21 2022Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit.Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at https://www.perl.org/, the Perl Home Page.
Python 2.7 or later
C:\Qt\6.4.0\Src\build_common>python --version Python 3.7.0
C++ compiler supporting the C++17 standard
Supported compiler (Visual Studio 2019 or later, or MinGW-builds gcc 8.1 or later)
C:\Qt\6.4.0\Src\build_common>gcc --version gcc (x86_64-posix-seh-rev3, Built by MinGW-W64 project) 11.2.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
It's recommended to have ninja 1.8 or later installed.
C:\Qt\6.4.0\Src\build_common>ninja --version 1.11.0
Ruby version 1.9.3 or later
C:\Qt\6.4.0\Src\build_common>ruby --version ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x64-mingw-ucrt]
<Configure>
The executed command was "C:\Qt\6.4.0\Src\build_common>..\configure.bat -prefix %CD%\qtbase"
The command line output is as follows.
C:\Qt\6.4.0\Src\build_common>..\configure.bat -prefix %CD%\qtbase + cd qtbase + C:\Qt\6.4.0\Src\qtbase\configure.bat -top-level -prefix C:\Qt\6.4.0\Src\build_common\qtbase -- Windows 10 SDK version: 'C:/Program Files/CMake/bin/cmake.exe' '-DCMAKE_INSTALL_PREFIX=C:/Qt/6.4.0/Src/build_common/qtbase' '-G' 'Ninja' 'C:/Qt/6.4.0/Src' -- The CXX compiler identification is GNU 11.2.0 -- The C compiler identification is GNU 11.2.0 -- The ASM compiler identification is GNU -- Found assembler: C:/Qt/Tools/mingw1120_64/bin/gcc.exe -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Qt/Tools/mingw1120_64/bin/c++.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:/Qt/Tools/mingw1120_64/bin/gcc.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 'qtmultimedia' Checking dependencies of submodule 'qt3d' Checking dependencies of submodule 'qt5compat' Checking dependencies of submodule 'qtactiveqt' Checking dependencies of submodule 'qttools' Checking dependencies of submodule 'qtwayland' Checking dependencies of submodule 'qtapplicationmanager' Checking dependencies of submodule 'qtcharts' Checking dependencies of submodule 'qtcoap' Checking dependencies of submodule 'qtconnectivity' Checking dependencies of submodule 'qtdatavis3d' Checking dependencies of submodule 'qtdoc' Checking dependencies of submodule 'qtwebsockets' Checking dependencies of submodule 'qthttpserver' Checking dependencies of submodule 'qtremoteobjects' Checking dependencies of submodule 'qtinterfaceframework' Checking dependencies of submodule 'qtlottie' Checking dependencies of submodule 'qtmqtt' Checking dependencies of submodule 'qtnetworkauth' Checking dependencies of submodule 'qtopcua' Checking dependencies of submodule 'qtserialport' Checking dependencies of submodule 'qtpositioning' Checking dependencies of submodule 'qtquicktimeline' Checking dependencies of submodule 'qtqmlscriptcompiler' Checking dependencies of submodule 'qtquick3d' Checking dependencies of submodule 'qtquick3dphysics' 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 'qtvncserver' Checking dependencies of submodule 'qtwebchannel' Checking dependencies of submodule 'qtwebengine' Checking dependencies of submodule 'qtwebview' Configuring submodule 'qtbase' -- Could NOT find md4c (missing: md4c_DIR) CMake Error at qtbase/cmake/QtSyncQtHelpers.cmake:4 (message): Perl needs to be available to build Qt. Call Stack (most recent call first): qtbase/cmake/QtSyncQtHelpers.cmake:9 (qt_ensure_perl) qtbase/cmake/QtModuleHelpers.cmake:353 (qt_ensure_sync_qt) qtbase/cmake/Qt3rdPartyLibraryHelpers.cmake:350 (qt_internal_add_module) qtbase/src/3rdparty/zlib/CMakeLists.txt:41 (qt_internal_add_3rdparty_header_module) -- Configuring incomplete, errors occurred! See also "C:/Qt/6.4.0/Src/build_common/CMakeFiles/CMakeOutput.log". See also "C:/Qt/6.4.0/Src/build_common/CMakeFiles/CMakeError.log". CMake Error at C:/Qt/6.4.0/Src/qtbase/cmake/QtProcessConfigureArgs.cmake:965 (message): CMake exited with code 1.
Please see the attached files as well.
I think the errors are about it's not finding unix headers and APIs.
I'm not even sure why they are being used on Windows in the first place.