I am not sure it is a correct way, but I was able to do this:
git clone --recursive https://code.qt.io/qt/qt5.git --branch v5.10.1
and all the submodules were checked out with commit hashes tag v5.10.1 points to:
You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. ... Submodule path 'qt3d': checked out '31f424bb81cd2583920d3d521e1e01f01c2d28e2' ...
For qt3d module it can be checked by the following command that outputs exactly ’31f424bb81cd2583920d3d521e1e01f01c2d28e2′:
cd qt3d/ git rev-list -n 1 v5.10.1
and “git log” in the main directory outputs this:
commit f2dbac41cf12de7fde39eaad4226b409cedbbe92 (HEAD -> 5.10.1, tag: v5.10.1, origin/5.10.1)
Then I Installed Perl, Python and Ruby as before with VS2015 and configured QT by running following bat file in “x64 Native Tools Command Prompt for VS 2017” (not in “Developer Command Prompt for VS 2017”)
set PATH=%PATH%;C:\Python35;C:\Perl64\bin;C:\Ruby25-x64\bin C: cd C:\repos\qt5 set _ROOT=C:\repos\qt5 SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH% REM Uncomment the below line when using a git checkout of the source repository SET PATH=%_ROOT%\qtrepotools\bin;%PATH% set _ROOT= rem configure -debug -nomake examples -opensource -platform win32-msvc configure -prefix %CD%\qtbase -debug -nomake examples -confirm-license -opensource
and built it with nmake that also requires Perl to be in paths:
set PATH=%PATH%;C:\Python35;C:\Perl64\bin;C:\Ruby25-x64\bin nmake
Links:
- Prebuilt QT 5.10.1 (MD5: 13c6e832fee4f692226bcd8d03bc000c)
- Building Qt 5.9.1 on Windows 7/10 with Visual Studio 2017