首先 设置环境变量
解决方案资源管理器 选中项目名字 而不是ALL_BUILD 选项卡 项目-属性
右侧 附加依赖项->编辑
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
comdlg32.lib
advapi32.lib
D:\vtk-bin\lib\Debug\vtkRenderingVolumeOpenGL2-7.0.lib
D:\vtk-bin\lib\Debug\vtkRenderingOpenGL2-7.0.lib
D:\vtk-bin\lib\Debug\vtkRenderingVolume-7.0.lib
D:\vtk-bin\lib\Debug\vtkRenderingContextOpenGL2-7.0.lib
D:\vtk-bin\lib\Debug\vtkRenderingLOD-7.0.lib
D:\vtk-bin\lib\Debug\vtkRenderingImage-7.0.lib
D:\vtk-bin\lib\Debug\vtkRenderingLabel-7.0.lib
D:\vtk-bin\lib\Debug\vtkRenderingAnnotation-7.0.lib
D:\vtk-bin\lib\Debug\vtkRenderingContext2D-7.0.lib
D:\vtk-bin\lib\Debug\vtkRenderingFreeType-7.0.lib
D:\vtk-bin\lib\Debug\vtkRenderingCore-7.0.lib
D:\vtk-bin\lib\Debug\vtkCommonCore-7.0.lib
D:\vtk-bin\lib\Debug\vtkCommonTransforms-7.0.lib
D:\vtk-bin\lib\Debug\vtkCommonMath-7.0.lib
D:\vtk-bin\lib\Debug\vtkCommonSystem-7.0.lib
D:\vtk-bin\lib\Debug\vtkCommonExecutionModel-7.0.lib
D:\vtk-bin\lib\Debug\vtkCommonComputationalGeometry-7.0.lib
D:\vtk-bin\lib\Debug\vtkCommonColor-7.0.lib
D:\vtk-bin\lib\Debug\vtkCommonDataModel-7.0.lib
D:\vtk-bin\lib\Debug\vtkCommonMisc-7.0.lib
D:\vtk-bin\lib\Debug\vtkalglib-7.0.lib
D:\vtk-bin\lib\Debug\vtkChartsCore-7.0.lib
D:\vtk-bin\lib\Debug\vtkDICOMParser-7.0.lib
D:\vtk-bin\lib\Debug\vtkexpat-7.0.lib
D:\vtk-bin\lib\Debug\vtkFiltersCore-7.0.lib
D:\vtk-bin\lib\Debug\vtkFiltersExtraction-7.0.lib
D:\vtk-bin\lib\Debug\vtkFiltersGeneral-7.0.lib
D:\vtk-bin\lib\Debug\vtkFiltersGeometry-7.0.lib
D:\vtk-bin\lib\Debug\vtkFiltersHybrid-7.0.lib
D:\vtk-bin\lib\Debug\vtkFiltersImaging-7.0.lib
D:\vtk-bin\lib\Debug\vtkFiltersModeling-7.0.lib
D:\vtk-bin\lib\Debug\vtkFiltersParallel-7.0.lib
D:\vtk-bin\lib\Debug\vtkFiltersSources-7.0.lib
D:\vtk-bin\lib\Debug\vtkFiltersStatistics-7.0.lib
D:\vtk-bin\lib\Debug\vtkfreetype-7.0.lib
D:\vtk-bin\lib\Debug\vtkGeovisCore-7.0.lib
D:\vtk-bin\lib\Debug\vtkImagingColor-7.0.lib
D:\vtk-bin\lib\Debug\vtkImagingCore-7.0.lib
D:\vtk-bin\lib\Debug\vtkImagingFourier-7.0.lib
D:\vtk-bin\lib\Debug\vtkImagingGeneral-7.0.lib
D:\vtk-bin\lib\Debug\vtkImagingHybrid-7.0.lib
D:\vtk-bin\lib\Debug\vtkImagingMath-7.0.lib
D:\vtk-bin\lib\Debug\vtkImagingMorphological-7.0.lib
D:\vtk-bin\lib\Debug\vtkImagingSources-7.0.lib
D:\vtk-bin\lib\Debug\vtkImagingStatistics-7.0.lib
D:\vtk-bin\lib\Debug\vtkImagingStencil-7.0.lib
D:\vtk-bin\lib\Debug\vtkInfovisCore-7.0.lib
D:\vtk-bin\lib\Debug\vtkInfovisLayout-7.0.lib
D:\vtk-bin\lib\Debug\vtkInteractionStyle-7.0.lib
D:\vtk-bin\lib\Debug\vtkInteractionImage-7.0.lib
D:\vtk-bin\lib\Debug\vtkInteractionWidgets-7.0.lib
D:\vtk-bin\lib\Debug\vtkIOExport-7.0.lib
D:\vtk-bin\lib\Debug\vtkIOGeometry-7.0.lib
D:\vtk-bin\lib\Debug\vtkIOImage-7.0.lib
D:\vtk-bin\lib\Debug\vtkIOLegacy-7.0.lib
D:\vtk-bin\lib\Debug\vtkIOXML-7.0.lib
D:\vtk-bin\lib\Debug\vtkIOXMLParser-7.0.lib
D:\vtk-bin\lib\Debug\vtkjpeg-7.0.lib
D:\vtk-bin\lib\Debug\vtkmetaio-7.0.lib
D:\vtk-bin\lib\Debug\vtkParallelCore-7.0.lib
D:\vtk-bin\lib\Debug\vtkpng-7.0.lib
D:\vtk-bin\lib\Debug\vtkproj4-7.0.lib
D:\vtk-bin\lib\Debug\vtksys-7.0.lib
D:\vtk-bin\lib\Debug\vtkViewsContext2D-7.0.lib
D:\vtk-bin\lib\Debug\vtkViewsCore-7.0.lib
D:\vtk-bin\lib\Debug\vtkViewsInfovis-7.0.lib
D:\vtk-bin\lib\Debug\vtktiff-7.0.lib
D:\vtk-bin\lib\Debug\vtkzlib-7.0.lib
D:\vtk-bin\lib\Debug\vtkGUISupportMFC-7.0.lib
启动的时候要在 解决方案资源管理器中的项目名字 右键->调试->启动新实例
D:\VTK-7.0.0\GUISupport\MFC;D:\vtk-bin\GUISupport\MFC;D:\vtk-bin\ThirdParty\alglib;D:\VTK-7.0.0\ThirdParty\alglib;D:\vtk-bin\Charts\Core;D:\VTK-7.0.0\Charts\Core;D:\vtk-bin\Common\Color;D:\VTK-7.0.0\Common\Color;D:\vtk-bin\Common\DataModel;D:\VTK-7.0.0\Common\DataModel;D:\vtk-bin\Common\Math;D:\VTK-7.0.0\Common\Math;D:\vtk-bin\Common\Core;D:\VTK-7.0.0\Common\Core;D:\vtk-bin\Utilities\KWSys;D:\VTK-7.0.0\Utilities\KWSys;D:\vtk-bin\Common\Misc;D:\VTK-7.0.0\Common\Misc;D:\vtk-bin\Common\System;D:\VTK-7.0.0\Common\System;D:\vtk-bin\Common\Transforms;D:\VTK-7.0.0\Common\Transforms;D:\vtk-bin\Infovis\Core;D:\VTK-7.0.0\Infovis\Core;D:\vtk-bin\Filters\Extraction;D:\VTK-7.0.0\Filters\Extraction;D:\vtk-bin\Common\ExecutionModel;D:\VTK-7.0.0\Common\ExecutionModel;D:\vtk-bin\Filters\Core;D:\VTK-7.0.0\Filters\Core;D:\vtk-bin\Filters\General;D:\VTK-7.0.0\Filters\General;D:\vtk-bin\Common\ComputationalGeometry;D:\VTK-7.0.0\Common\ComputationalGeometry;D:\vtk-bin\Filters\Statistics;D:\VTK-7.0.0\Filters\Statistics;D:\vtk-bin\Imaging\Fourier;D:\VTK-7.0.0\Imaging\Fourier;D:\vtk-bin\Imaging\Core;D:\VTK-7.0.0\Imaging\Core;D:\vtk-bin\Rendering\Context2D;D:\VTK-7.0.0\Rendering\Context2D;D:\vtk-bin\Rendering\Core;D:\VTK-7.0.0\Rendering\Core;D:\vtk-bin\Filters\Geometry;D:\VTK-7.0.0\Filters\Geometry;D:\vtk-bin\Filters\Sources;D:\VTK-7.0.0\Filters\Sources;D:\vtk-bin\Rendering\FreeType;D:\VTK-7.0.0\Rendering\FreeType;D:\vtk-bin\ThirdParty\freetype;D:\VTK-7.0.0\ThirdParty\freetype;D:\vtk-bin\ThirdParty\zlib;D:\VTK-7.0.0\ThirdParty\zlib;D:\vtk-bin\Utilities\DICOMParser;D:\VTK-7.0.0\Utilities\DICOMParser;D:\vtk-bin\Domains\Chemistry;D:\VTK-7.0.0\Domains\Chemistry;D:\vtk-bin\IO\XML;D:\VTK-7.0.0\IO\XML;D:\vtk-bin\IO\Geometry;D:\VTK-7.0.0\IO\Geometry;D:\vtk-bin\IO\Core;D:\VTK-7.0.0\IO\Core;D:\vtk-bin\IO\XMLParser;D:\VTK-7.0.0\IO\XMLParser;D:\vtk-bin\ThirdParty\expat;D:\VTK-7.0.0\ThirdParty\expat;D:\vtk-bin\Domains\ChemistryOpenGL2;D:\VTK-7.0.0\Domains\ChemistryOpenGL2;D:\vtk-bin\Rendering\OpenGL2;D:\VTK-7.0.0\Rendering\OpenGL2;D:\vtk-bin\Imaging\Hybrid;D:\VTK-7.0.0\Imaging\Hybrid;D:\vtk-bin\IO\Image;D:\VTK-7.0.0\IO\Image;D:\vtk-bin\Utilities\MetaIO\vtkmetaio;D:\vtk-bin\Utilities\MetaIO;D:\VTK-7.0.0\Utilities\MetaIO;D:\vtk-bin\ThirdParty\jpeg;D:\VTK-7.0.0\ThirdParty\jpeg;D:\vtk-bin\ThirdParty\png;D:\VTK-7.0.0\ThirdParty\png;D:\vtk-bin\ThirdParty\tiff;D:\VTK-7.0.0\ThirdParty\tiff;D:\vtk-bin\Utilities\EncodeString;D:\VTK-7.0.0\Utilities\EncodeString;D:\vtk-bin\ThirdParty\glew;D:\VTK-7.0.0\ThirdParty\glew;D:\vtk-bin\ThirdParty\exodusII;D:\VTK-7.0.0\ThirdParty\exodusII;D:\VTK-7.0.0\ThirdParty\netcdf\vtknetcdf\include;D:\vtk-bin\ThirdParty\netcdf\vtknetcdf;D:\vtk-bin\ThirdParty\netcdf;D:\VTK-7.0.0\ThirdParty\netcdf;D:\vtk-bin\ThirdParty\hdf5\vtkhdf5;D:\VTK-7.0.0\ThirdParty\hdf5\vtkhdf5\hl\src;D:\VTK-7.0.0\ThirdParty\hdf5\vtkhdf5\src;D:\vtk-bin\ThirdParty\hdf5;D:\VTK-7.0.0\ThirdParty\hdf5;D:\vtk-bin\Filters\AMR;D:\VTK-7.0.0\Filters\AMR;D:\vtk-bin\Parallel\Core;D:\VTK-7.0.0\Parallel\Core;D:\vtk-bin\IO\Legacy;D:\VTK-7.0.0\IO\Legacy;D:\vtk-bin\Utilities\HashSource;D:\VTK-7.0.0\Utilities\HashSource;D:\vtk-bin\Filters\FlowPaths;D:\VTK-7.0.0\Filters\FlowPaths;D:\vtk-bin\Filters\Generic;D:\VTK-7.0.0\Filters\Generic;D:\vtk-bin\Filters\Hybrid;D:\VTK-7.0.0\Filters\Hybrid;D:\vtk-bin\Imaging\Sources;D:\VTK-7.0.0\Imaging\Sources;D:\vtk-bin\Filters\HyperTree;D:\VTK-7.0.0\Filters\HyperTree;D:\vtk-bin\Filters\Imaging;D:\VTK-7.0.0\Filters\Imaging;D:\vtk-bin\Imaging\General;D:\VTK-7.0.0\Imaging\General;D:\vtk-bin\Filters\Modeling;D:\VTK-7.0.0\Filters\Modeling;D:\vtk-bin\Filters\Parallel;D:\VTK-7.0.0\Filters\Parallel;D:\vtk-bin\Filters\ParallelImaging;D:\VTK-7.0.0\Filters\ParallelImaging;D:\vtk-bin\Filters\Programmable;D:\VTK-7.0.0\Filters\Programmable;D:\vtk-bin\Filters\Selection;D:\VTK-7.0.0\Filters\Selection;D:\vtk-bin\Filters\SMP;D:\VTK-7.0.0\Filters\SMP;D:\vtk-bin\Filters\Texture;D:\VTK-7.0.0\Filters\Texture;D:\vtk-bin\Filters\Verdict;D:\VTK-7.0.0\Filters\Verdict;D:\vtk-bin\ThirdParty\verdict;D:\VTK-7.0.0\ThirdParty\verdict;D:\vtk-bin\Geovis\Core;D:\VTK-7.0.0\Geovis\Core;D:\vtk-bin\Infovis\Layout;D:\VTK-7.0.0\Infovis\Layout;D:\vtk-bin\Interaction\Style;D:\VTK-7.0.0\Interaction\Style;D:\vtk-bin\Interaction\Widgets;D:\VTK-7.0.0\Interaction\Widgets;D:\vtk-bin\Rendering\Annotation;D:\VTK-7.0.0\Rendering\Annotation;D:\vtk-bin\Imaging\Color;D:\VTK-7.0.0\Imaging\Color;D:\vtk-bin\Rendering\Volume;D:\VTK-7.0.0\Rendering\Volume;D:\vtk-bin\Views\Core;D:\VTK-7.0.0\Views\Core;D:\VTK-7.0.0\ThirdParty\libproj4\vtklibproj4;D:\vtk-bin\ThirdParty\libproj4\vtklibproj4;D:\vtk-bin\ThirdParty\libproj4;D:\VTK-7.0.0\ThirdParty\libproj4;D:\vtk-bin\Imaging\Math;D:\VTK-7.0.0\Imaging\Math;D:\vtk-bin\Imaging\Morphological;D:\VTK-7.0.0\Imaging\Morphological;D:\vtk-bin\Imaging\Statistics;D:\VTK-7.0.0\Imaging\Statistics;D:\vtk-bin\Imaging\Stencil;D:\VTK-7.0.0\Imaging\Stencil;D:\vtk-bin\Interaction\Image;D:\VTK-7.0.0\Interaction\Image;D:\vtk-bin\IO\AMR;D:\VTK-7.0.0\IO\AMR;D:\vtk-bin\IO\EnSight;D:\VTK-7.0.0\IO\EnSight;D:\vtk-bin\IO\Exodus;D:\VTK-7.0.0\IO\Exodus;D:\vtk-bin\IO\Export;D:\VTK-7.0.0\IO\Export;D:\vtk-bin\Rendering\Label;D:\VTK-7.0.0\Rendering\Label;D:\vtk-bin\IO\Import;D:\VTK-7.0.0\IO\Import;D:\vtk-bin\IO\Infovis;D:\VTK-7.0.0\IO\Infovis;D:\vtk-bin\ThirdParty\libxml2\vtklibxml2;D:\vtk-bin\ThirdParty\libxml2;D:\VTK-7.0.0\ThirdParty\libxml2;D:\vtk-bin\IO\LSDyna;D:\VTK-7.0.0\IO\LSDyna;D:\vtk-bin\IO\MINC;D:\VTK-7.0.0\IO\MINC;D:\vtk-bin\IO\Movie;D:\VTK-7.0.0\IO\Movie;D:\vtk-bin\ThirdParty\oggtheora;D:\VTK-7.0.0\ThirdParty\oggtheora;D:\vtk-bin\IO\NetCDF;D:\VTK-7.0.0\IO\NetCDF;D:\vtk-bin\IO\Parallel;D:\VTK-7.0.0\IO\Parallel;D:\vtk-bin\ThirdParty\jsoncpp;D:\VTK-7.0.0\ThirdParty\jsoncpp;D:\vtk-bin\IO\ParallelXML;D:\VTK-7.0.0\IO\ParallelXML;D:\vtk-bin\IO\PLY;D:\VTK-7.0.0\IO\PLY;D:\vtk-bin\IO\SQL;D:\VTK-7.0.0\IO\SQL;D:\vtk-bin\ThirdParty\sqlite;D:\VTK-7.0.0\ThirdParty\sqlite;D:\vtk-bin\IO\Video;D:\VTK-7.0.0\IO\Video;D:\vtk-bin\Rendering\ContextOpenGL2;D:\VTK-7.0.0\Rendering\ContextOpenGL2;D:\vtk-bin\Rendering\Image;D:\VTK-7.0.0\Rendering\Image;D:\vtk-bin\Rendering\LOD;D:\VTK-7.0.0\Rendering\LOD;D:\vtk-bin\Rendering\VolumeOpenGL2;D:\VTK-7.0.0\Rendering\VolumeOpenGL2;D:\vtk-bin\Testing\Core;D:\VTK-7.0.0\Testing\Core;D:\vtk-bin\Testing\GenericBridge;D:\VTK-7.0.0\Testing\GenericBridge;D:\vtk-bin\Testing\IOSQL;D:\VTK-7.0.0\Testing\IOSQL;D:\vtk-bin\Testing\Rendering;D:\VTK-7.0.0\Testing\Rendering;D:\vtk-bin\Views\Context2D;D:\VTK-7.0.0\Views\Context2D;D:\vtk-bin\Views\Infovis;D:\VTK-7.0.0\Views\Infovis;D:\vtk-bin\ThirdParty\hdf5\vtkhdf5\hl\src;D:\vtk-bin\ThirdParty\hdf5\vtkhdf5\src;%(AdditionalIncludeDirectories)