ITK 3.20.1 VS2010 Configuration 配置

简介:

Download ITK 3.20.1

Download VS2010

Download CMake 3.2.0

I assume you've already installed VS2010 and CMake 3.2.0 correctly.

Compile the VTK:

Start CMake 3.2.0, fill the source and destination:

source: C:/ITK3.20.1/InsightToolkit-3.20.1

destination: C:/ITK3.20.1/VS2010

Click Configure and use Visual Studio 10 2010 to complie.

When first configure is done, select Grouped and Advanced.

BUILD_EXAMPLES          [ON]  
BUILD_TEST              [ON]  
CMAKE_INSTALL_PREFIX    [C:/ITK3.20.1/VS2010_install]  
CMAKE_USE_PTHREADS        [OFF]
CMAKE_USE_WIN32_THREADS [ON]  

click Configure again.

After configure is done (No errors show), click Generate.

Go back to your build folder, open ITK.sln, right click ALL_BUILD, choose Rebuild.

Wait a long time for make process, have a cup of coffee :)

After rebuild is done, right click INSTALL, choose Build.

Now, the configuration is done, enjoy it :)

Create a new empty project,

Add in the system Path:

C:\ITK3.20.1\VS2010_install\bin

Project->Project Property->Configuration Properties->VC++Directories ->Include Directories:

C:\ITK3.20.1\VS2010_install\include\InsightToolkit
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\Algorithms
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\BasicFilters
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\Common
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\gdcm\src
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\IO
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\Numerics
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\SpatialObject
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\Utilities
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\Utilities\vxl\vcl
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\Utilities\vxl\core
Project->Project Property->Configuration Properties->VC++Directories ->Library Directories:

C:\ITK3.20.1\VS2010_install\lib\InsightToolkit

Project->Project Property->Configuration Properties->Linker->Input:

ITKAlgorithms.lib
ITKBasicFilters.lib
ITKCommon.lib
ITKDICOMParser.lib
ITKEXPAT.lib
ITKFEM.lib
itkgdcm.lib
ITKIO.lib
itkjpeg8.lib
itkjpeg12.lib
itkjpeg16.lib
ITKMetaIO.lib
itkNetlibSlatec.lib
ITKniftiio.lib
ITKNrrdIO.lib
ITKNumerics.lib
itkopenjpeg.lib
itkpng.lib
ITKSpatialObject.lib
ITKStatistics.lib
itksys.lib
itktiff.lib
itkv3p_lsqr.lib
itkv3p_netlib.lib
itkvcl.lib
itkvnl.lib
itkvnl_algo.lib
itkvnl_inst.lib
itkzlib.lib
ITKznz.lib
snmpapi.lib
rpcrt4.lib
wsock32.lib 
Create a test.cpp file as below:

#include"itkImage.h"  
#include<iostream>  

int main(){  

    typedef itk::Image< unsigned short, 3>ImageType;  
    ImageType::Pointer image= ImageType::New();  

    int i;  

    std::cout<<"ITK hello world !"<<std::endl;  
    std::cin>>i;  
    return 0;  
}  

本文转自博客园Grandyang的博客,原文链接:配置ITK 3.20.1 VS2010 Configuration ,如需转载请自行联系原博主。

相关文章
|
7月前
|
Java 数据库连接 数据库
@Configuration大悟!
@Configuration大悟!
|
7月前
|
XML Java 数据格式
@Configuration的作用
@Configuration的作用
165 1
|
7月前
|
XML Java 数据格式
|
安全 Java
springboot 项目 控制台一直输出/null/swagger-resources/configuration/security 解决
springboot 项目 控制台一直输出/null/swagger-resources/configuration/security 解决
435 0
|
Java Maven Spring
4. 成功解决:Spring Boot Configuration Annotation Processor not configured
在 Spring Boot 项目中,添加一个配置文件时,会提示“Spring Boot Configuration Annotation Processor not configured”
2248 0
|
Java Spring
Spring Boot Configuration Annotation Processor not configured
Spring Boot Configuration Annotation Processor not configured
499 0
|
Java 数据库连接
org.hibernate.cfg.Configuration.addAnnotatedClass(Ljava/lang/Class;)Lorg/hibernate/cfg/Configuration
Error creating bean with name 'entityManagerFactory' defined in file [E:\eclipseworkspace\wms_ims\.metadata\.plugins\org.eclipse.wst.server.core\tmp9\wtpwebapps\shopping\WEB-INF\classes\applicationContext-configuration.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMetho
108 0
|
Java Spring 容器
@Configuration注解
@Configuration注解
168 0
|
Java Spring
SpringBoot中@ConfigurationProperties提示:Configuration Annotation Processor not found in classpath
SpringBoot中@ConfigurationProperties提示:Configuration Annotation Processor not found in classpath
414 0