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, >ImageType;
ImageType::Pointer image= ImageType::New(); int i; std::cout<<"ITK hello world !"<<std::endl;
std::cin>>i;
return ;
}

ITK 3.20.1 VS2010 Configuration 配置的更多相关文章

  1. 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 an ...

  2. FLTK 1.1.10 VS2010 Configuration 配置

    Download FLTK 1.1.10 at here. Download VS2010 Download CMake 2.8.12 I assume you've already installe ...

  3. ITK 4.8.1 Qt 5.4 MinGW 4.9.1 Configuration 配置

    Download ITK 4.8.1 Download Qt 5.4 with MinGW 4.9.1 Download CMake 3.2.0 I assume you've already ins ...

  4. 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 ins ...

  5. Ubuntu_10.04下Hadoop-0.20.2集群配置手册

    Ubuntu_10.04下Hadoop-0.20.2集群配置手册 一.软硬件环境的准备 下面的文章来自hadoopor.com,我先交待一下我自己的环境: 两台机器,每台机器上面两个虚机(vmware ...

  6. VS2010中配置OpenGL

    下面将对VS2010中配置OpenGL进行简单介绍. 学习OpenGL前的准备工作第一步,选择一个编译环境现在Windows系统的主流编译环境有Visual Studio,Broland C++ Bu ...

  7. VS2010/2012配置优化记录笔记

    VS2010/2012配置优化记录笔记 在某些情况下VS2010/2012运行真的实在是太卡了,有什么办法可以提高速度吗?下面介绍几个优化策略,感兴趣的朋友可以参考下,希望可以帮助到你   有的时候V ...

  8. Spring之@Configuration配置解析

    1.简单的示例: @Configuration @EnableConfigurationProperties({DemoProperties.class}) public class DemoConf ...

  9. 【转】Win7下VS2010中配置Opencv2.4.4的方法(32位和64位都有效)(亲测成功)

    在vs2010下配置opencv是件痛苦的事情,一点点错误可能就会导致莫名其妙的报错,各种error让人郁闷不已,这里提供给大家一篇vs2010下配置opencv2.4.4的方法,我是64位的win7 ...

随机推荐

  1. codeforces B. Vasya and Public Transport 解题报告

    题目链接:http://codeforces.com/problemset/problem/355/B 题目意思:给出四种票种,c1: 某一部bus或者trolley的单程票(暗含只可以乘坐一次):c ...

  2. hdu 1022 Train Problem I 解题报告

    题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1022 又是一道栈的练习,这次也是没有用到STL中的栈来实现.用来保存操作过程的数组(process[] ...

  3. July 11th, Week 29th Monday, 2016

    I want to win a trophy, it's the most important. 我希望获得冠军奖杯,这是最重要的事情. Win a trophy, stand on the very ...

  4. vs c++中读取数据流并存储

    ifstream in("test.txt"); vector<string> vs; string s; while(!in.eof()) { in>>s ...

  5. JqueryEasyUI教程

    第一章EasyUI中弹出框dialog的使用为div标签加上class="easyui-dialog"即可使用一.引入文件介绍jquery.min.js:jquery核心文件,不再 ...

  6. sublime Emmet的用法及相关语法

    本节来讲一下Emmet插件的用法及相关语法. Emmet插件极大的提高了编程员的编程速度,下面我们来讲讲它的具体语法: 一.生成 HTML 文档初始结构 HTML 文档的初始结构,就是包括 docty ...

  7. C调Lua

    转自:http://foredoomed.org/blog/2013/12/07/integrate-c-with-lua/ 我们在用C写程序的时候,很多情况下需要用到List,Map等集合,但是C是 ...

  8. To be transfered

    bomb: file format elf64-x86-64 Disassembly of section .init: 0000000000400b38 <_init>: 400b38: ...

  9. 关于LR中的EXTRARES

    LoadRunner脚本之EXTRARES参数 EXTRARES:分隔符,表示标记下一个属性是资源属性的列表(list of resource attributes). [EXTRARES后的资源是由 ...

  10. Linux下压缩与解压命令tar

    Linux下常见压缩文件的扩展名 *.gz:gzip压缩的: *.bz2:bzip2压缩的: *.tar:tar程序打包但没有压缩的: *.tar.gz:打包后并经过gzip压缩的: *.tar.bz ...