Difference between revisions of "Documentation/Labs/Qt484"

From Slicer Wiki
Jump to: navigation, search
Line 3: Line 3:
 
** Install perl (I used [http://www.activestate.com/activeperl/downloads])
 
** Install perl (I used [http://www.activestate.com/activeperl/downloads])
  
** Augment windows environment PATH with <code>C:\Qt</code> (name of build directory).
+
** Build/install in say <code>C:\Qt</code>.
 +
 
 +
** Augment windows environment PATH with <code>C:\Qt\bin</code>.
  
 
** 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].
Line 14: Line 16:
 
<pre>
 
<pre>
 
set QTDIR=C:\Qt
 
set QTDIR=C:\Qt
set QMAKESPEC=win32-msvc2010
+
set QMAKESPEC=win32-msvc2012
 
cd c:\Users\blah\Qt
 
cd c:\Users\blah\Qt
 
configure -release -mp -opensource -platform win32-msvc2012
 
configure -release -mp -opensource -platform win32-msvc2012

Revision as of 19:10, 19 June 2013

Home < Documentation < Labs < Qt484
  • To compile Qt with VS 2012 (VS 11) for 64bit (not quite tested..):
    • Install perl (I used [1])
    • Build/install in say C:\Qt.
    • Augment windows environment PATH with C:\Qt\bin.
    • 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].
    • Replace HashSet.h in src\3rdparty\webkit\Source\JavaScriptCore\wtf with HashSet.h.
    • Use VS command prompt (figure out whether to use "Developer Command Prompt" or "x64 Cross Tools" to specify architecture)
    • Then paste the following (-mp for multiprocessor use during build).
set QTDIR=C:\Qt
set QMAKESPEC=win32-msvc2012
cd c:\Users\blah\Qt
configure -release -mp -opensource -platform win32-msvc2012

Then

nmake