重新搭了环境。
参考百度文库来的。http://wenku.baidu.com/view/eac01c31eefdc8d376ee32ec.html
按照这个基本没错吧。。
我安装在D:Program Files所有相关文件夹如下。
然后。。整理了一下手动配置的参数作为以后备用吧。。
--------------------------------------------------------------------------------------------
VTK环境变量
一。。修改Project setting->C/C++ ->Category->Preprocessor->Additional include directories:
D:/vtk/bin;D:/vtk/bin/Common;D:/vtk/bin/Utilities;D:/vtk/bin/VolumeRendering;D:/vtk/bin/Rendering;D:/vtk/bin/Charts;D:/vtk/bin/GUISupport/MFC;D:/vtk/bin/Utilities/vtkalglib;D:/vtk/sourcecode/Infovis;D:/vtk/sourcecode/Geovis;D:/vtk/sourcecode/Views;D:/vtk/sourcecode/Parallel;D:/vtk/sourcecode/VolumeRendering;D:/vtk/sourcecode/Hybrid;D:/vtk/sourcecode/Widgets;D:/vtk/sourcecode/Rendering;D:/vtk/sourcecode/Charts;D:/vtk/sourcecode/Rendering/Testing/Cxx;D:/vtk/sourcecode/IO;D:/vtk/sourcecode/Imaging;D:/vtk/sourcecode/Graphics;D:/vtk/sourcecode/GenericFiltering;D:/vtk/sourcecode/Filtering;D:/vtk/sourcecode/Common;D:/vtk/sourcecode/Utilities;D:/vtk/sourcecode/Common/Testing/Cxx;D:/vtk/bin/Utilities/vtklibproj4;D:/vtk/sourcecode/Utilities/vtklibproj4;D:/vtk/bin/Utilities/DICOMParser;D:/vtk/sourcecode/Utilities/DICOMParser;D:/vtk/bin/Utilities/vtkfreetype/include;D:/vtk/sourcecode/Utilities/vtkfreetype/include;D:/vtk/bin/Utilities/MaterialLibrary;D:/vtk/sourcecode/Utilities/MaterialLibrary;D:/vtk/bin/Utilities/verdict;D:/vtk/sourcecode/Utilities/verdict;D:/vtk/bin/Utilities/vtkhdf5;D:/vtk/sourcecode/Utilities/vtkhdf5;D:/vtk/bin/Utilities/vtkhdf5/src;D:/vtk/sourcecode/Utilities/vtkhdf5/src;D:/vtk/bin/Utilities/Cosmo;D:/vtk/sourcecode/Utilities/Cosmo;D:/vtk/bin/Utilities/VPIC;D:/vtk/sourcecode/Utilities/VPIC;D:/vtk/sourcecode/Utilities/utf8/source;D:/vtk/sourcecode/GUISupport/MFC;D:/vtk/sourcecode/Utilities/vtkalglib;D:/vtk/sourcecode/Utilities/ftgl/src;D:/vtk/bin/Utilities/ftgl;%(AdditionalIncludeDirectories) D:vtksourcecodeGenericFiltering, D:vtksourcecodeCommon, D:vtksourcecodeIO, D:vtksourcecodeFiltering, D:vtkin, D:vtksourcecodeRendering, D:vtksourcecodeGraphics, D:vtksourcecodeVolumeRendering, D:vtksourcecodeImaging, D:vtksourcecodeHybrid, D:vtksourcecodeGUISupport, D:vtksourcecodeincludevtk-5.0,?? D:vtksourcecodeParallel, D:vtklib, D:vtksourcecodeWidgets
------
修改Project setting->Link->Input->Object/library modules:
kernel32.lib;user32.lib;gdi32.lib;winspool.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;comdlg32.lib;advapi32.lib;........inDebugvtkRendering.lib;........inDebugvtkGraphics.lib;........inDebugvtkImaging.lib;........inDebugvtkFiltering.lib;........inDebugvtkCommon.lib;........inDebugvtksys.lib;ws2_32.lib opengl32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;vtkCommon.lib;vtkDICOMParser.lib;vtkexoIIc.lib;vtkexpat.lib;vtkFiltering.lib;vtkfreetype.lib;vtkftgl.lib;vtkGenericFiltering.lib;vtkGraphics.lib;vtkHybrid.lib;vtkImaging.lib;vtkIO.lib;vtkjpeg.lib;vtkNetCDF.lib;vtkpng.lib;vtkRendering.lib;vtksys.lib;vtktiff.lib;vtkVolumeRendering.lib;vtkWidgets.lib;vtkzlib.lib ------ Additional library path: D:vtkininDebug
-------------------------------------------------------------------------------------------------------------------------------
ITK环境变量
·打开工具->选项->项目和解决方案->VC++目录.包含文件:
D:itkInsightToolkit-4.3.2Modules D:itkInsightToolkit-4.3.2ModulesNumerics D:itkInsightToolkit-4.3.2ModulesNumericsFEM D:itkInsightToolkit-4.3.2ModulesNumericsNeuralNetworks D:itkInsightToolkit-4.3.2ModulesNumericsStatistics D:itkInsightToolkit-4.3.2ModulesSegmentation D:itkInsightToolkit-4.3.2ModulesBridge D:itkInsightToolkit-4.3.2ModulesCompatibility D:itkInsightToolkit-4.3.2ModulesFiltering D:itkInsightToolkit-4.3.2ModulesVideo D:itkInsightToolkit-4.3.2ModulesThirdParty D:itkInsightToolkit-4.3.2ModulesRemote D:itkInsightToolkit-4.3.2ModulesRegistration D:itkInsightToolkit-4.3.2ModulesNonunit D:itkInsightToolkit-4.3.2ModulesIO D:itkInsightToolkit-4.3.2ModulesCore D:itkInsightToolkit-4.3.2ModulesCompatibility D:itkInsightToolkit-4.3.2ModulesBridge D:itkInsightToolkit-4.3.2Utilities
库文件
ITKAlgorithms.lib;ITKStatistics.lib;ITKFEM.lib;itkNetlibSlatec.lib;ITKNumerics.lib;ITKBasicFilters.lib;ITKIO.lib;ITKNrrdIO.lib;itkgdcm.lib;itkjpeg12.lib;itkjpeg16.lib;itkopenjpeg.lib;snmpapi.lib;rpcrt4.lib;itkpng.lib;itktiff.lib;itkjpeg8.lib;ITKSpatialObject.lib;ITKCommon.lib;itkvnl_inst.lib;itkvnl_algo.lib;itkv3p_netlib.lib;itkvnl.lib;itkvcl.lib;ITKMetaIO.lib;itksys.lib;ws2_32.lib;comctl32.lib;wsock32.lib;ITKDICOMParser.lib;ITKEXPAT.lib;ITKniftiio.lib;ITKznz.lib;itkzlib.lib
库文件:在后面添加d:Program?FilesITKlibInsightToolkit
环境变量设置:我的电脑->属性->高级->环境变量->添加:d:Program?FilesITKitk_bin;
将d:Program FilesITKin或者d:Program FilesITKitk_bininDebug中的.dll文件拷贝到C:WINDOWSsystem32中。
注:在设置包含文件时,因需添加的文件很多,所以应根据你具体安装目录找到相应的文件添加,建议目录设置参照图所示设置,便于文件的查找。