Difference between revisions of "Slicer3:Developers:Projects:QtSlicer/Tutorials/CompileWithQt"

From Slicer Wiki
Jump to: navigation, search
(Created page with '== Building Slicer with Qt == * Download and install Qt. As of fall 2009, get [http://qt.nokia.com/developer/qt-4.6-technology-preview the 4.6 technology preview version]. ** …')
 
(Replaced content with 'QtSlicer/Tutorials← = Building Slicer with Qt = '''Note: See [[Slicer4:Build_…')
 
(47 intermediate revisions by 6 users not shown)
Line 1: Line 1:
== Building Slicer with Qt ==
+
[[Slicer3:Developers:Projects:QtSlicer|QtSlicer]]/[[Slicer3:Developers:Projects:QtSlicer/Tutorials|Tutorials]]←
 
+
= Building Slicer with Qt =
* Download and install Qt.  As of fall 2009, get  [http://qt.nokia.com/developer/qt-4.6-technology-preview the 4.6 technology preview version].
+
'''Note: See [[Slicer4:Build_Instructions|the Slicer4 build instructions]] for the latest information on building 3D Slicer with a Qt user interface. This page is no longer used (to access previous information consult this page's history tab).'''
** Windows - need to get source code and build with "configure.exe -platform msvc2008" run vcvars32.bat first and then nmake/  
 
*** building with webkit support requires that src/3rdparty/webkit/WebCore/tmp/moc/{debug,release}_shared/mocinclude.tmp be removed. else you will get linker errors like QNetworkReplyHandler.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall WebCore::FormDataIODevice::metaObject(void)const (?metaObject@FormDataIODevice@WebCore@@UBEPBUQMetaObject@@XZ)
 
** Linux/Mac - install full QtCreator package (snowleopard not yet supported in 4.5.2)
 
<pre>
 
cd Slicer3-lib
 
mkdir Qt
 
mkdir Qt-build
 
cd Qt
 
wget http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.6.0-beta1.tar.gz
 
tar xvfz qt-everywhere-opensource-src-4.6.0-beta1.tar.gz
 
cd qt-everywhere-opensource-src-4.6.0-beta1
 
echo yes | ./configure -prefix ../../Qt-build -debug-and-release -opensource  -no-qt3support
 
make -j 16
 
make install
 
</pre>
 
* Build VTK with Qt enabled
 
<pre>
 
cd ../../VTK-build
 
../CMake-build/bin/ccmake .
 
Press 't' to enter advanced mode.
 
VTK_USE_GUISUPPORT to ON
 
Press 'c' to configure.
 
VTK_USE_QVTK to ON
 
DESIRED_QT_VERSION to 4
 
Press 'c' to configure.
 
QT_QMAKE_EXECUTABLE to {path to}/Slicer3-lib/Qt-build/bin/qmake
 
Press 'g' to generate
 
make -j16
 
</pre>
 
* Build Slicer with Qt enabled.
 
<pre>
 
cd ../../Slicer3-build
 
../Slicer3-lib/CMake-build/bin/ccmake .
 
Slicer3_USE_QT ON
 
Press 'c' to configure
 
QT_QMAKE_EXECUTABLE to {path to}/Slicer3-lib/Qt-build/bin/qmake
 
Press 'c' to configure and then press 'g' to generate.
 
make -j16
 
</pre>
 

Latest revision as of 17:41, 11 June 2010

Home < Slicer3:Developers:Projects:QtSlicer < Tutorials < CompileWithQt

QtSlicer/Tutorials

Building Slicer with Qt

Note: See the Slicer4 build instructions for the latest information on building 3D Slicer with a Qt user interface. This page is no longer used (to access previous information consult this page's history tab).