本文旨在记录在Windows下编译安装VTK的流程。
零、环境
| 操作系统 | Windows 10 |
| 编译器 | Visual Studio 2019 Community |
| CMake | 3.24.2 |
一、下载代码
git clone https://github.com/Kitware/VTK.git
cd ./VTK/
git checkout -b v9.0.0 v9.0.0
二、编译安装
| Where is the source code | D:/YouQuan/CaeFrameworks/VTK/VTK |
| Where to build the binaries | D:/YouQuan/CaeFrameworks/VTK/BUILD |
| CMAKE_INSTALL_PREFIX | D:/YouQuan/CaeFrameworks/VTK/INSTALL |
使用CMake按照上述配置完成项目的构建,然后在VS中右键"ALL_BUILD"完成编译,然后右键"INSTALL"完成安装。
参考资料
VTK
https://vtk.org/
GitHub VTK
https://github.com/Kitware/VTK



















