Difference between revisions of "Documentation/Labs/Qt484"
From Slicer Wiki
Line 9: | Line 9: | ||
** 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 [http://qt-project.org/downloads]. | ** 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 [http://qt-project.org/downloads]. | ||
− | ** | + | ** This is bug [https://bugreports.qt-project.org/browse/QTBUG-31882 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 [https://bitbucket.org/Vertexwahn/bluego/src/56dbe84212222ec6954d8d327a5e443106bcc447/deploy/BlueGo0.0.4/qt4.8.3vs2012patch/HashSet.h?at=default HashSet.h]. |
** Use VS command prompt (use "Developer Command Prompt" (??) or better "x64 Cross Tools" (??)) | ** Use VS command prompt (use "Developer Command Prompt" (??) or better "x64 Cross Tools" (??)) |
Revision as of 13:31, 20 June 2013
Home < Documentation < Labs < Qt484- To compile Qt with VS 2012 (VS 11) for 64bit (not quite tested yet..):
- Install perl (I used [1])
- Build/install in say
C:\Qt
.
- Build/install in say
- Augment windows environment PATH with
C:\Qt\bin
.
- Augment windows environment PATH with
- 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 (use "Developer Command Prompt" (??) or better "x64 Cross Tools" (??))
- Then paste the following (-mp for multiprocessor use during build).
set QTDIR=C:\Qt set QMAKESPEC=win32-msvc2012 cd %QTDIR% configure -release -mp -opensource -platform win32-msvc2012
Then
nmake