VS2010编译ITK中ImageRegistration2的问题

正在创建库 D:/ITK/bin/ImageRegistration2/Debug/ImageRegistration2.lib 和对象 D:/ITK/bin/ImageRegistration2/Debug/ImageRegistration2.exp
2>ImageRegistration2.obj : error LNK2019: 无法解析的外部符号 "protected: __thiscall itk::GradientDescentOptimizer::GradientDescentOptimizer(void)" (??0GradientDescentOptimizer@itk@@IAE@XZ),该符号在函数 "public: static class itk::SmartPointer<class itk::GradientDescentOptimizer> __cdecl itk::GradientDescentOptimizer::New(void)" (?New@GradientDescentOptimizer@itk@@SA?AV?$SmartPointer@VGradientDescentOptimizer@itk@@@2@XZ) 中被引用
2>ImageRegistration2.obj : error LNK2001: 无法解析的外部符号 "protected: virtual void __thiscall itk::CostFunction::PrintSelf(class std::basic_ostream<char,struct std::char_traits<char> > &,class itk::Indent)const " (?PrintSelf@CostFunction@itk@@MBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VIndent@2@@Z)
2>D:\ITK\bin\ImageRegistration2\Debug\ImageRegistration2.exe : fatal error LNK1120: 2 个无法解析的外部命令
2>
2>生成失败。

解决:

添加库ITKNumerics 在cmakelists.txt 的TARGET_LINK_LIBRARIES中添加

生成成功

运行出现新的问题如下

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值