About this

  • Built binrary files
    • Based on VisualStudio 2015 sp3
    • Based on Qt 5.10.1
    • OpenGL2, OpenGL support
    • include vtkDICOM submodule

How do I get this

* clone
	* $ git clone git@github.com:medipixel/VTK-8.git
* clone submodules
    * this module have submodules
	* $ git submodule update --init --recursive

How to buid it

  • Required

  • Build

    • http://www.vtk.org/
    • How to build vtk on windows
    • download VTK source v8.0.1
      • source code path: VTK source code path
    • CMake install, (v3.11.0-rc4)
      • https://cmake.org/download/
      • CMake 'Add Entry' before 'Configure' (i.e: Visual Studio 2015 vc 14.0 x86, Qt 5.9)
        • VTK_RENDERING_BACKEND:STRING=OpenGL (if VTK.OpenGL project will use OpenGL, VTK.OpenGL2 project will use OpenGL2)
          • default is 'OpenGL2'
            • VTK.OpenGL project, Because VirtualBox support only OpenGL
            • VTK.OpenGL2, default value is OpenGL2
        • VTK_Group_Qt:BOOL=ON
          • Turn on Qt support
        • QT_QMAKE_EXECUTABLE:FILEPATH=C:/Qt/Qt5.10.1/msvc2015/bin/qmake.exe (if x64 project, use this: C:/Qt/Qt5.10.1/msvc2015_64/bin/qmake.exe)
          • Set Qmake.exe file path
        • VTK_QT_VERSION:STRING=5
          • CMake wrong print Qt version 4
        • Qt5_DIR:PATH=C:/Qt/Qt5.10.1/msvc2015/lib/cmake/Qt5 (if x64 project, use this: C:/Qt/Qt5.10.1/msvc2015_64/lib/cmake/Qt5)
          • CMake need file path of Qt5Config.cmake.
        • Module_vtkDICOM:BOOL=ON
      • CMake push the button 'Configure'
        • Visual Studio 14 2015 (x64: Visual Studio 14 2015 Win64)
      • CMake push the button 'Generate'
        • generated VTK sln(visual studio solution) file
    • build VTK.sln
      • With admin privilege, launch visual studio 2015
      • Open project vtk.sln
        • build INSTALL project
        • build with 'RelWithDebInfo', to generate pdb files.
    • Merge files
      • copy %PROGRAM FILES%/vtk/cmake
      • copy %PROGRAM FILES%/vtk/share
      • merge %PROGRAM FILES%/vtk/bin [win32Debug/win32Release/win64Debug/win64Release]
      • merge %PROGRAM FILES%/vtk/lib [win32Debug/win32Release/win64Debug/win64Release]
      • merge %PROGRAM FILES%/vtk/include [win32/win64]