Documentation/Labs/Qt484
From Slicer Wiki
Home < Documentation < Labs < Qt484
- To compile Qt with VS 2012 (VS 11) for 64 bit (not quite tested yet..):
- Install perl (I used [1] and choose 64 bit version)
- Build/install in say
C:\QtHacked
.
- Build/install in say
- Cd into this directory and git clone git://gitorious.org/qt/qt (this gives a version, not sure which, in this case as per 6/19/2013, mkspecs/qconfig.pri provides version info: QT_VERSION = 4.8.5, a prelease?). Alternatively, better?, find zipped file of official release [2].
- This is bug Qt 4.8.5 doesn't compile with VC 11, marked P2:important: you must replace HashSet.h in src\3rdparty\webkit\Source\JavaScriptCore\wtf with HashSet.h.
- Use VS command prompt "x64 Cross Tools".
- Then paste the following (-mp for multiprocessor use during build). (Adjust perl path as necessary.)
set QTDIR=C:\QtHacked\Qt set PATH=%QTDIR%\bin;%PATH% set QMAKESPEC=win32-msvc2012 cd /D %QTDIR%\ set PATH=C:\Perl64\bin;%PATH% configure -release -mp -opensource -platform win32-msvc2012
Then go brew a pot of coffee. If something fails at this point, you probably didn't install "Update 2" for VS 2012.
nmake