Here is a walk-though record for qt5 5.2.0 64bit install on Windows 8.1 using VS2013
Prerequisites
- Perl 5.8 or later should be installed. I've installed Strawberry Perl 64bit • Make git command available from cmd.exe. I've re-installed Git for windows and make sure PATH set option on installer is checked.
- I've used CMD.EXE environment that is comes with VS2013 command prompt. • Environment variable was set using qt5vers.bat under qtplatz source tree.
Get a source
Detail description is http://qt-project.org/wiki/Building_Qt_5_from_Git Following command will get an initial part of qt5 source. Under MINGW32 prompt that comes with git.
$ cd /c/x64
$ git clone git://gitorious.org/qt/qt5.git qt5
Switch to CMD prompt which comes with VS2013
C:\Users\User\src64> qtplatz\qt5vars.bat
cd c:\x64\qt5
C:\x64\qt5> perl init-repository
Modify (patch) "qt5/qtbase/qmake/generators/win32/msvc_vcproj.cpp"
diff --git a/qmake/generators/win32/msvc_vcproj.cpp b/qmake/generators/win32/msvc_vcproj.cpp
index fbc2f6b..b21fb50 100644
--- a/qmake/generators/win32/msvc_vcproj.cpp
+++ b/qmake/generators/win32/msvc_vcproj.cpp
@@ -149,8 +149,10 @@ DotNET which_dotnet_version()
const QString productPath = installPaths.value(dotNetCombo[i].version);
if (productPath.isEmpty())
continue;
- if (path.startsWith(productPath, Qt::CaseInsensitive))
- return dotNetCombo[i].version;
+ if (path.startsWith(productPath, Qt::CaseInsensitive)) {
+ current_version = dotNetCombo[i].version;
+ return current_version; //dotNetCombo[i].version;
+ }
}
}
C:\x64\qt5> configure -developer-build -opensource -nomake examples -nomake tests