https://blog.csdn.net/anhec/article/details/86777302
I. Preparation before installation
Visual Studio 2017 qt5cmakevtk source (https://vtk.org/download/)
Two. VTK compilation
My compile directory is as follows
Run CMake as follows
Click Configure, select Visual Studio 15 2017 (32bit) or Visual Studio 15 2017 Win64 (64bit), and click Finish.
When configure is complete, manually modify some of the parameters as follows:
- BUILD_SHARED_LIBS, unchecked if static lib generation is needed; BUILD_EXAMPLES, which generate test cases, check the suggested box for easy post-compile testing; CMAKE_DEBUG_POSTFIX, which means that in debug mode the filename is followed by the specified character; VTK_Group_Qt, VTK supports Qt; CMAKE_INSTALL_PREFIX, set the VTK installation directory (D:\libraries\I_VTK\VTK\bin\x86 or D:\libraries\I_VTK\VTK\bin\x64);
Click Configure again to Configure the Qt path
Select the Qt path: (32bit) D:\libraries\Qt\Qt5.12.0\5.12.0\msvc2017\lib\cmake\Qt5
(64 – bit) D: \ libraries \ Qt \ Qt5.12.0\5.12.0 \ msvc2017_64 \ lib \ cmake \ Qt5
Click Configure again (change the red color if it still appears, then click Configure) and click Generate when you’re done.
III. VS2017 compilation
Open vtk.sln with vs2017, then right-click ALL_BUILD, click build, wait for some time, all compile successfully;
Right-click Install again and select Project Only –>; Only generate INSTALL, after completion you can see in the installation directory (D:\libraries\I_VTK\VTK\bin\x86), see the related lib, include, etc
In VS2017, change the configuration from Debug to Release, repeat ALL_BUILD and INSTALL above;
Test three.
Select Cube and run
Read More:
- VTK + QT + vs compilation and installation configuration
- Vs2015 64 bit vtk7.1 error handling
- Configuring OpenGL development environment in win10 + vs2015 (including the method of installing 32-bit and 64 bit libraries)
- Configuration, compilation and installation of vtk8.1 in qt5.9
- [VTK] vtk8.2.0 + vs2015 + win10 compilation and configuration
- Vtk8.0 compilation process record under vs2017 and qt5.12.1
- [Solved] qt5.9 + vs2015 32bit Error: “-1: error: LNK1158: Can not Run “rc.exe”
- (64 bit) OpenGL configuration + vs2017 + glew + glfw
- Vs2017 compiles pcl1.8.1 with vtk8.0 and uses qt5.9.5
- Under win864 bit, install python, PyQt4 and sip. (final failure, only record)
- Solution to the error “tcnative-1.dll: can’t load amd 64 bit. DLL on IA 32 bit platform”
- Installing xgboost in anaconda is based on win10 32 / 64 bit system
- Solutions to several VTK compilation errors (vtk5.8 + VS2010)
- Oracle12c client32 bit installation error: [ins-20802] Oracle net configuration assistant failed
- Vtk7. X is compiled and installed under vs2013 and vs2015
- Pcl1.9 + vs2017 + win10 installation instructions and MFC adaptation
- Openproj reported error errno = 193 in 64 bit operating system
- VMware this host does not support 64 bit solutions
- Vs2012 compiling PCL dependency library vtk7.0
- Record of solving the failure of installing ie11 (9c59) under 64 bit Windows 7 system