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
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;
}  
时间: 2024-08-05 00:47:00

ITK 3.20.1 VS2010 Configuration 配置的相关文章

VTK 5.10.1 VS2010 Configuration 配置

Download VTK 5.10.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:/VTK5.10.1/VTK5.10.1 destination: C:/VTK5.10.1

VS2010中配置OpenGL

下面将对VS2010中配置OpenGL进行简单介绍. 学习OpenGL前的准备工作第一步,选择一个编译环境现在Windows系统的主流编译环境有Visual?Studio,Broland?C++?Builder,Dev-C++等,它们都是支持OpenGL的. 我选择Visual?Studio?2010和VC6++作为学习OpenGL的环境.第二步,安装GLUT工具包GLUT不是OpenGL所必须的,但它会给我们的学习带来一定的方便,推荐安装.Windows环境下的GLUT下载地址:(大小约为15

VTK 6.3.0 Qt 5.4 MinGW 4.9.1 Configuration 配置

Download VTK 6.3.0 Download Qt 5.4 with MinGW 4.9.1 Download CMake 3.2.0 I assume you've already installed Qt 5.4 with MinGW 4.9.1 and CMake 3.2.0 correctly. Pre-process the VTK: Open CMakeLists.txt in your extracted VTK-6.3.0 folder, find set(VTK_US

C++读取mat文件 &amp; VS2010 环境配置

1.vs2010的配置 新建一个工程,在属性管理器中选择Debug|Win64->Microsoft.Cpp.Win64.user->VC++目录.设置包含目录为:D:\MATLAB\R2010a\extern\include(我的matlab装在D盘):设置库目录为:D:\MATLAB\R2010a\extern\lib\win32\microsoft. http://blog.sina.com.cn/s/blog_7f18a96b0100tojj.html 2.http://blog.cs

Spring之@Configuration配置解析

1.简单的示例: 1 @Configuration 2 @EnableConfigurationProperties({DemoProperties.class}) 3 public class DemoConfiguration { 4 5 @Bean 6 public Book getBook(){ 7 return new Book(); 8 } 9 } Configuration 1 @Autowired Book book; 2 3 @Test 4 public void testBo

vs2010中配置OpenGL以及针对64位系统所遇问题的解决办法

一.下面将对VS2010中配置OpenGL进行简单介绍. 学习OpenGL前的准备工作 第一步,选择一个编译环境 现在Windows系统的主流编译环境有Visual Studio,Broland C++ Builder,Dev-C++等,它们都是支持OpenGL的. 我选择Visual Studio 2010和VC6++作为学习OpenGL的环境. 第二步,安装GLUT工具包 GLUT不是OpenGL所必须的,但它会给我们的学习带来一定的方便,推荐安装. Windows环境下的GLUT下载地址:

Spring源码解析 – @Configuration配置类及注解Bean的解析

在分析Spring 容器创建过程时,我们知道容器默认会加载一些后置处理器PostPRocessor,以AnnotationConfigApplicationContext为例,在构造函数中初始化reader时,加载默认后置处理器.其中 ConfigurationClassPostProcessor这个后置处理器专门处理带有@Configuration注解的类,ConfigurationClassPostProcessor后置处理实现了BeanDefinitionRegistryPostProce

spring5 源码深度解析----- 被面试官给虐懵了,竟然是因为我不懂@Configuration配置类及@Bean的原理

@Configuration注解提供了全新的bean创建方式.最初spring通过xml配置文件初始化bean并完成依赖注入工作.从spring3.0开始,在spring framework模块中提供了这个注解,搭配@Bean等注解,可以完全不依赖xml配置,在运行时完成bean的创建和初始化工作.例如: public interface IBean { } public class AppBean implements IBean{ } //@Configuration申明了AppConfig

vs2010下配置coco2d-x

Cocos2d-x win7 + vs2010 配置图文详解(亲测) 下载最新版的cocos2d-x.打开浏览器,输入cocos2d-x.org,然后选择Download,本教程写作时最新版本为cocos2d-1.01-x-0.9.1,具体下载位置如下图: 下载完之后,解压到当前文件夹.我把下载的程序放在F盘根目录,解压完毕之后,双击打开文件夹,看看里面有什么东西,红圈部分就是我们要安装使用的文件: 接下来,我们正式安装cocos2d-x到win7中去. 首先,双击上图中的cocos2d-win