<div dir="ltr">You need:<div>1) Visual Studio Express 2012</div><div>2) Qt5: <a href="http://download.qt-project.org/official_releases/qt/5.1/5.1.0/qt-windows-opensource-5.1.0-msvc2012_opengl-x86_64-offline.exe">http://download.qt-project.org/official_releases/qt/5.1/5.1.0/qt-windows-opensource-5.1.0-msvc2012_opengl-x86_64-offline.exe</a></div>
<div>( Note you need the OpenGL version for use with VTK.)</div><div>3) The VTK master from the Git Repositery:</div><div><a href="http://www.vtk.org/VTK/resources/software.html#dev">http://www.vtk.org/VTK/resources/software.html#dev</a><br>
</div><div><br></div><div>Before running CMake do this:</div><div>Set the following environment variables:</div><div><div>    QTDIR=C:\Qt\Qt5.1.0\5.1.0\msvc2012_64_opengl</div><div>    PATH=%QTDIR%\bin:%PATH%</div><div>Start ccmake with -DVTK_QT_VERSION:STRING="5"  -DCMAKE_PREFIX_PATH:STRING=C:/Program Files (x86)/Windows Kits/8.0/Lib/win8/um/x64</div>
<div>If you are using cmake-gui (the preferred way) then enter these variables before pressing the "Configure"  button.</div><div><br></div><div>After the initial configuration, ensure VTK_Group_Qt is selected. Press "Configure"again.</div>
<div><br></div><div><div>In the case of Windows, you will get lots of warnings like this:</div><div>CMake Warning (dev) in GUISupport/Qt/Testing/Cxx/CMakeLists.txt:</div><div>  Policy CMP0020 is not set: Automatically link Qt executables to qtmain</div>
<div>  target on Windows.  Run "cmake --help-policy CMP0020" for policy details.</div><div>  Use the cmake_policy command to set the policy and suppress this warning.</div><div>This warning is for project developers.  Use -Wno-dev to suppress it.</div>
</div><div><br></div><div>Finally press "Generate".</div><div><br></div><div>For more information see:</div><div><div>See: <a href="https://github.com/Kitware/VTK/commit/384636ec9f442db83c8b827d7eabc7ada9ef8d35">https://github.com/Kitware/VTK/commit/384636ec9f442db83c8b827d7eabc7ada9ef8d35</a></div>
<div>and: <a href="http://scriptogr.am/davidok8/post/building-and-using-qt-5-with-cmake">http://scriptogr.am/davidok8/post/building-and-using-qt-5-with-cmake</a></div><div><br></div></div><div>Note that on both the Mac and windows:</div>
<div><div>You should set these environment variables:</div><div><br></div><div>On Mac OS X Lion:</div><div>    export QTDIR=/Users/andrewmaclean/Qt5.1.0/5.1.0/clang_64/</div><div>    export PATH=$QTDIR/bin:$PATH</div><div>
<br></div><div>On Windows:</div><div>    QTDIR=C:\Qt\Qt5.1.0\5.1.0\msvc2012_64_opengl</div><div>    PATH=%QTDIR%\bin:%PATH%</div><div><br></div></div><div>If you do this then you do not need to set CMAKE_PREFIX_PATH to QTDIR.</div>
<div><br></div><div><br></div>-- <br>___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________
</div></div>