Building ITK-SNAP 3.8.0-beta on Windows7 with Visual Studio 2013

58 views
Skip to first unread message

lcf3...@gmail.com

unread,
Oct 23, 2018, 10:21:07 AM10/23/18
to itksnap-developers
Hi,
I've encountered problems with building ITK-SNAP 3.8.0-beta  from source (Win7, x64, MSVC2013). 
I'm compiling VTK (6.3.0) and ITK (4.8.2) from sources without errors. I use Qt5.6. All according to instructions on http://www.itksnap.org/pmwiki/pmwiki.php%3Fn%3DDocumentation.BuildingITK-SNAP
I've also followed instructions from README.git and installed additional modules.

However,
1、 I'm getting errors while compiling, itksnaplogic project:
error C1083: 无法打开包括文件: “curl/curl.h”: No such file or directory D:\itk-snap\itksnap\Logic\WorkspaceAPI\RESTClient.cxx 15 1 itksnaplogic

I downloads curl from https://curl.haxx.se/download.html , and solve the problem

2、but   I'm getting errors while compiling, ITK-SNAP project:
错误 14 error LNK1120: 13 个无法解析的外部命令 D:\itk-snap\snap-bin\Debug\ITK-SNAP.exe 1 1 ITK-SNAP
错误 12 error LNK2019: 无法解析的外部符号 _curl_easy_cleanup,该符号在函数 "public: __thiscall RESTClient::~RESTClient(void)" (??1RESTClient@@QAE@XZ) 中被引用 D:\itk-snap\snap-bin\itksnaplogic.lib(RESTClient.obj) ITK-SNAP
错误 13 error LNK2019: 无法解析的外部符号 _curl_easy_getinfo,该符号在函数 "public: bool __cdecl RESTClient::Post(char const *,char const *,...)" (?Post@RESTClient@@QAA_NPBD0ZZ) 中被引用 D:\itk-snap\snap-bin\itksnaplogic.lib(RESTClient.obj) ITK-SNAP
错误 9 error LNK2019: 无法解析的外部符号 _curl_easy_init,该符号在函数 "public: __thiscall RESTClient::RESTClient(void)" (??0RESTClient@@QAE@XZ) 中被引用 D:\itk-snap\snap-bin\itksnaplogic.lib(RESTClient.obj) ITK-SNAP
错误 11 error LNK2019: 无法解析的外部符号 _curl_easy_perform,该符号在函数 "public: bool __thiscall RESTClient::Authenticate(char const *,char const *)" (?Authenticate@RESTClient@@QAE_NPBD0@Z) 中被引用 D:\itk-snap\snap-bin\itksnaplogic.lib(RESTClient.obj) ITK-SNAP
错误 10 error LNK2019: 无法解析的外部符号 _curl_easy_setopt,该符号在函数 "public: __thiscall RESTClient::RESTClient(void)" (??0RESTClient@@QAE@XZ) 中被引用 D:\itk-snap\snap-bin\itksnaplogic.lib(RESTClient.obj) ITK-SNAP
错误 8 error LNK2019: 无法解析的外部符号 _curl_easy_strerror,该符号在函数 "public: bool __thiscall RESTClient::Authenticate(char const *,char const *)" (?Authenticate@RESTClient@@QAE_NPBD0@Z) 中被引用 D:\itk-snap\snap-bin\itksnaplogic.lib(RESTClient.obj) ITK-SNAP
错误 1 error LNK2019: 无法解析的外部符号 _curl_formadd,该符号在函数 "public: bool __cdecl RESTClient::UploadFile(char const *,char const *,class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > >,...)" (?UploadFile@RESTClient@@QAA_NPBD0V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@ZZ) 中被引用 D:\itk-snap\snap-bin\itksnaplogic.lib(RESTClient.obj) ITK-SNAP
错误 2 error LNK2019: 无法解析的外部符号 _curl_formfree,该符号在函数 "public: bool __cdecl RESTClient::UploadFile(char const *,char const *,class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > >,...)" (?UploadFile@RESTClient@@QAA_NPBD0V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@ZZ) 中被引用 D:\itk-snap\snap-bin\itksnaplogic.lib(RESTClient.obj) ITK-SNAP
错误 7 error LNK2019: 无法解析的外部符号 _curl_share_cleanup,该符号在函数 "public: __thiscall RESTClient::~RESTClient(void)" (??1RESTClient@@QAE@XZ) 中被引用 D:\itk-snap\snap-bin\itksnaplogic.lib(RESTClient.obj) ITK-SNAP
错误 5 error LNK2019: 无法解析的外部符号 _curl_share_init,该符号在函数 "public: __thiscall RESTClient::RESTClient(void)" (??0RESTClient@@QAE@XZ) 中被引用 D:\itk-snap\snap-bin\itksnaplogic.lib(RESTClient.obj) ITK-SNAP
错误 6 error LNK2019: 无法解析的外部符号 _curl_share_setopt,该符号在函数 "public: __thiscall RESTClient::RESTClient(void)" (??0RESTClient@@QAE@XZ) 中被引用 D:\itk-snap\snap-bin\itksnaplogic.lib(RESTClient.obj) ITK-SNAP
错误 3 error LNK2019: 无法解析的外部符号 _curl_slist_append,该符号在函数 "public: bool __cdecl RESTClient::UploadFile(char const *,char const *,class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > >,...)" (?UploadFile@RESTClient@@QAA_NPBD0V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@ZZ) 中被引用 D:\itk-snap\snap-bin\itksnaplogic.lib(RESTClient.obj) ITK-SNAP
错误 4 error LNK2019: 无法解析的外部符号 _curl_slist_free_all,该符号在函数 "public: bool __cdecl RESTClient::UploadFile(char const *,char const *,class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > >,...)" (?UploadFile@RESTClient@@QAA_NPBD0V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@ZZ) 中被引用 D:\itk-snap\snap-bin\itksnaplogic.lib(RESTClient.obj) ITK-SNAP

If I can provide more info I'll, just let me know. If there's a ticket with this problem, well I couldn't find it. And if there's a solution to it, I'd be thankful if someone could share it. 

best wishes,
Lee Tao
Southeast University

Reply all
Reply to author
Forward
0 new messages