Building QT 5.10.1 from sources with VS2017

I am not sure it is a correct way, but I was able to do this:

git clone --recursive --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 PerlPython 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
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


Leave a Reply

Your email address will not be published. Required fields are marked *