1、C/C++ ---> 附加包含的目录
F:/VTK61/VTK-6.1.0/SLN/Filters/Sources
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Filters/Sources
F:/VTK61/VTK-6.1.0/SLN/Common/ComputationalGeometry
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Common/ComputationalGeometry
F:/VTK61/VTK-6.1.0/SLN/Common/DataModel
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Common/DataModel F:/VTK61/VTK-6.1.0/SLN/Common/Math
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Common/Math F:/VTK61/VTK-6.1.0/SLN/Common/Core
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Common/Core F:/VTK61/VTK-6.1.0/SLN/Utilities/KWSys
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Utilities/KWSys F:/VTK61/VTK-6.1.0/SLN/Common/Misc
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Common/Misc F:/VTK61/VTK-6.1.0/SLN/Common/System
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Common/System
F:/VTK61/VTK-6.1.0/SLN/Common/Transforms
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Common/Transforms
F:/VTK61/VTK-6.1.0/SLN/Filters/General
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Filters/General F:/VTK61/VTK-6.1.0/SLN/Filters/Core
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Filters/Core
F:/VTK61/VTK-6.1.0/SLN/Common/ExecutionModel
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Common/ExecutionModel
F:/VTK61/VTK-6.1.0/SLN/Interaction/Style
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Interaction/Style
F:/VTK61/VTK-6.1.0/SLN/Filters/Extraction
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Filters/Extraction
F:/VTK61/VTK-6.1.0/SLN/Filters/Statistics
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Filters/Statistics
F:/VTK61/VTK-6.1.0/SLN/Imaging/Fourier
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Imaging/Fourier F:/VTK61/VTK-6.1.0/SLN/Imaging/Core
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Imaging/Core
F:/VTK61/VTK-6.1.0/SLN/ThirdParty/alglib
F:/VTK61/VTK-6.1.0/VTK-6.1.0/ThirdParty/alglib
F:/VTK61/VTK-6.1.0/SLN/Rendering/Core
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Rendering/Core
F:/VTK61/VTK-6.1.0/SLN/Filters/Geometry
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Filters/Geometry
F:/VTK61/VTK-6.1.0/SLN/Rendering/OpenGL
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Rendering/OpenGL
F:/VTK61/VTK-6.1.0/SLN/Imaging/Hybrid
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Imaging/Hybrid F:/VTK61/VTK-6.1.0/SLN/IO/Image
F:/VTK61/VTK-6.1.0/VTK-6.1.0/IO/Image
F:/VTK61/VTK-6.1.0/SLN/Utilities/DICOMParser
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Utilities/DICOMParser
F:/VTK61/VTK-6.1.0/SLN/IO/Core F:/VTK61/VTK-6.1.0/VTK-6.1.0/IO/Core
F:/VTK61/VTK-6.1.0/SLN/ThirdParty/zlib
F:/VTK61/VTK-6.1.0/VTK-6.1.0/ThirdParty/zlib
F:/VTK61/VTK-6.1.0/SLN/Utilities/MetaIO/vtkmetaio
F:/VTK61/VTK-6.1.0/SLN/Utilities/MetaIO
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Utilities/MetaIO
F:/VTK61/VTK-6.1.0/SLN/ThirdParty/jpeg
F:/VTK61/VTK-6.1.0/VTK-6.1.0/ThirdParty/jpeg
F:/VTK61/VTK-6.1.0/SLN/ThirdParty/png
F:/VTK61/VTK-6.1.0/VTK-6.1.0/ThirdParty/png
F:/VTK61/VTK-6.1.0/SLN/ThirdParty/tiff
F:/VTK61/VTK-6.1.0/VTK-6.1.0/ThirdParty/tiff
F:/VTK61/VTK-6.1.0/SLN/Utilities/ParseOGLExt
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Utilities/ParseOGLExt
F:/VTK61/VTK-6.1.0/SLN/Utilities/EncodeString
F:/VTK61/VTK-6.1.0/VTK-6.1.0/Utilities/EncodeString
2、C/C++ ---> 命令行
/GS /TP /analyze- /W4 /Zc:wchar_t /I"F:/VTK61/VTK-6.1.0/SLN/Filters/Sources"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Filters/Sources"
/I"F:/VTK61/VTK-6.1.0/SLN/Common/ComputationalGeometry"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Common/ComputationalGeometry"
/I"F:/VTK61/VTK-6.1.0/SLN/Common/DataModel"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Common/DataModel"
/I"F:/VTK61/VTK-6.1.0/SLN/Common/Math"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Common/Math"
/I"F:/VTK61/VTK-6.1.0/SLN/Common/Core"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Common/Core"
/I"F:/VTK61/VTK-6.1.0/SLN/Utilities/KWSys"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Utilities/KWSys"
/I"F:/VTK61/VTK-6.1.0/SLN/Common/Misc"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Common/Misc"
/I"F:/VTK61/VTK-6.1.0/SLN/Common/System"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Common/System"
/I"F:/VTK61/VTK-6.1.0/SLN/Common/Transforms"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Common/Transforms"
/I"F:/VTK61/VTK-6.1.0/SLN/Filters/General"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Filters/General"
/I"F:/VTK61/VTK-6.1.0/SLN/Filters/Core"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Filters/Core"
/I"F:/VTK61/VTK-6.1.0/SLN/Common/ExecutionModel"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Common/ExecutionModel"
/I"F:/VTK61/VTK-6.1.0/SLN/Interaction/Style"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Interaction/Style"
/I"F:/VTK61/VTK-6.1.0/SLN/Filters/Extraction"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Filters/Extraction"
/I"F:/VTK61/VTK-6.1.0/SLN/Filters/Statistics"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Filters/Statistics"
/I"F:/VTK61/VTK-6.1.0/SLN/Imaging/Fourier"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Imaging/Fourier"
/I"F:/VTK61/VTK-6.1.0/SLN/Imaging/Core"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Imaging/Core"
/I"F:/VTK61/VTK-6.1.0/SLN/ThirdParty/alglib"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/ThirdParty/alglib"
/I"F:/VTK61/VTK-6.1.0/SLN/Rendering/Core"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Rendering/Core"
/I"F:/VTK61/VTK-6.1.0/SLN/Filters/Geometry"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Filters/Geometry"
/I"F:/VTK61/VTK-6.1.0/SLN/Rendering/OpenGL"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Rendering/OpenGL"
/I"F:/VTK61/VTK-6.1.0/SLN/Imaging/Hybrid"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Imaging/Hybrid"
/I"F:/VTK61/VTK-6.1.0/SLN/IO/Image" /I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/IO/Image"
/I"F:/VTK61/VTK-6.1.0/SLN/Utilities/DICOMParser"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Utilities/DICOMParser"
/I"F:/VTK61/VTK-6.1.0/SLN/IO/Core" /I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/IO/Core"
/I"F:/VTK61/VTK-6.1.0/SLN/ThirdParty/zlib"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/ThirdParty/zlib"
/I"F:/VTK61/VTK-6.1.0/SLN/Utilities/MetaIO/vtkmetaio"
/I"F:/VTK61/VTK-6.1.0/SLN/Utilities/MetaIO"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Utilities/MetaIO"
/I"F:/VTK61/VTK-6.1.0/SLN/ThirdParty/jpeg"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/ThirdParty/jpeg"
/I"F:/VTK61/VTK-6.1.0/SLN/ThirdParty/png"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/ThirdParty/png"
/I"F:/VTK61/VTK-6.1.0/SLN/ThirdParty/tiff"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/ThirdParty/tiff"
/I"F:/VTK61/VTK-6.1.0/SLN/Utilities/ParseOGLExt"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Utilities/ParseOGLExt"
/I"F:/VTK61/VTK-6.1.0/SLN/Utilities/EncodeString"
/I"F:/VTK61/VTK-6.1.0/VTK-6.1.0/Utilities/EncodeString" /Zi /Gm- /Od /Ob0
/Fd"Cone.dir\Debug\vc110.pdb" /fp:precise /D "WIN32" /D "_WINDOWS" /D "_DEBUG"
/D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /D
"_CRT_SECURE_NO_WARNINGS" /D "_SCL_SECURE_NO_DEPRECATE" /D
"_SCL_SECURE_NO_WARNINGS" /D "VTK_IN_VTK" /D
"vtkRenderingCore_INCLUDE=\"F:/VTK61/VTK-6.1.0/SLN/CMakeFiles/vtkRenderingCore_AUTOINIT_vtkInteractionStyle_vtkRenderingOpenGL.h\""
/D "CMAKE_INTDIR=\"Debug\"" /D "_MBCS" /errorReport:prompt /WX- /Zc:forScope
/RTC1 /GR /Gd /Oy- /MDd /Fa"Debug/" /EHsc /nologo /Fo"Cone.dir\Debug\"
/Fp"Cone.dir\Debug\Cone.pch"
3、链接器--->输入--->附加依赖项
kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib comdlg32.lib advapi32.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkFiltersSources-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkCommonComputationalGeometry-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkCommonDataModel-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkCommonMath-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkCommonCore-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtksys-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkCommonMisc-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkCommonSystem-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkCommonTransforms-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkFiltersGeneral-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkFiltersCore-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkCommonExecutionModel-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkInteractionStyle-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkFiltersExtraction-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkFiltersStatistics-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkImagingFourier-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkImagingCore-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkalglib-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkRenderingCore-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkFiltersGeometry-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkRenderingOpenGL-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkImagingHybrid-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkIOImage-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkDICOMParser-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkIOCore-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkzlib-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkmetaio-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkjpeg-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkpng-6.1.lib
F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtktiff-6.1.lib ws2_32.lib Psapi.lib glu32.lib
opengl32.lib
或者
在链接器---》常规---》添加库目录 引入Lib文件夹
然后在 链接器--->输入--->附加依赖项 直接输入库文件名称
如下:
vtkFiltersSources-6.1.lib
vtkCommonComputationalGeometry-6.1.lib
vtkCommonDataModel-6.1.lib
vtkCommonMath-6.1.lib
vtkCommonCore-6.1.lib
vtksys-6.1.lib
vtkCommonMisc-6.1.lib
vtkCommonSystem-6.1.lib
vtkCommonTransforms-6.1.lib
vtkFiltersGeneral-6.1.lib
vtkFiltersCore-6.1.lib
vtkCommonExecutionModel-6.1.lib
vtkInteractionStyle-6.1.lib
vtkFiltersExtraction-6.1.lib
vtkFiltersStatistics-6.1.lib
vtkImagingFourier-6.1.lib
vtkImagingCore-6.1.lib
vtkalglib-6.1.lib
vtkRenderingCore-6.1.lib
vtkFiltersGeometry-6.1.lib
vtkRenderingOpenGL-6.1.lib
vtkImagingHybrid-6.1.lib
vtkIOImage-6.1.lib
vtkDICOMParser-6.1.lib
vtkIOCore-6.1.lib
vtkzlib-6.1.lib
vtkmetaio-6.1.lib
vtkjpeg-6.1.lib
vtkpng-6.1.lib
vtktiff-6.1.lib
ws2_32.lib
Psapi.lib
glu32.lib
opengl32.lib
4、链接器--->输入--->命令行
/OUT:"F:\VTK\DevCode\Step1-VS2012\Cxx\Debug\Cone.exe" /MANIFEST /NXCOMPAT
/PDB:"F:/VTK61/VTK-6.1.0/SLN/bin/Debug/Cone.pdb" /DYNAMICBASE "kernel32.lib"
"user32.lib" "gdi32.lib" "winspool.lib" "shell32.lib" "ole32.lib" "oleaut32.lib"
"uuid.lib" "comdlg32.lib" "advapi32.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkFiltersSources-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkCommonComputationalGeometry-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkCommonDataModel-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkCommonMath-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkCommonCore-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtksys-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkCommonMisc-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkCommonSystem-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkCommonTransforms-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkFiltersGeneral-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkFiltersCore-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkCommonExecutionModel-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkInteractionStyle-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkFiltersExtraction-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkFiltersStatistics-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkImagingFourier-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkImagingCore-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkalglib-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkRenderingCore-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkFiltersGeometry-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkRenderingOpenGL-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkImagingHybrid-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkIOImage-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkDICOMParser-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkIOCore-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkzlib-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkmetaio-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkjpeg-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtkpng-6.1.lib"
"F:\VTK61\VTK-6.1.0\SLN\lib\Debug\vtktiff-6.1.lib" "ws2_32.lib" "Psapi.lib"
"glu32.lib" "opengl32.lib" /IMPLIB:"F:/VTK61/VTK-6.1.0/SLN/lib/Debug/Cone.lib"
/DEBUG /MACHINE:X86 /SAFESEH /INCREMENTAL
/PGD:"F:\VTK\DevCode\Step1-VS2012\Cxx\Debug\Cone.pgd" /SUBSYSTEM:CONSOLE
/MANIFESTUAC:"level=‘asInvoker‘ uiAccess=‘false‘"
/ManifestFile:"Cone.dir\Debug\Cone.exe.intermediate.manifest"
/ERRORREPORT:PROMPT /NOLOGO /TLBID:1