Hello I'm not followed the steps listed in http://wiki.orfeo-toolbox.org/index.php/OTB_%26_Windows_OS, i simply used CMake to generate VS solution for OTB and build it. There were no problems with building solution until updating source code to the latest revision. Nevertheless i can confirm that using external ITK solves this issue and all my applications successfully linked. Many thanks for your help!
With regards, Dmitriev Aleksey 2014-09-04 12:36 GMT+09:00 Omran Al Hammadi <[email protected]>: > yes i followed the steps in that link and i got this error > > > On Wednesday, September 3, 2014 4:23:19 PM UTC+4, Mickaël Savinaud wrote: > >> Hi, >> Have you follow the indications at http://wiki.orfeo-toolbox.org/ >> index.php/OTB_%26_Windows_OS >> Mickaël >> Le 03/09/2014 10:22, Aleksey Dmitriev a écrit : >> >> I want to join to this question. I also got such errors in my >> applications, based on OTB. They arise from >> ITKCommon-4.6.lib(itkMetaDataObject.obj), >> for example linker output in MS Visual Studio Pro 2012 (Update 4) is the >> same as in above mail: >> >> I >> >> >> >> >> >> *TKCommon-4.6.lib(itkMetaDataObject.obj) : error LNK2019: unresolved >> external symbol "public: __cdecl vnl_vector<char>::~vnl_vector<char>(void)" >> (??1?$vnl_vector@D@@QEAA@XZ) referenced in function "public: __cdecl >> itk::Array<char>::~Array<char>(void)" (??1?$Array@D@itk@@QEAA@XZ) >> ITKCommon-4.6.lib(itkMetaDataObject.obj) : error LNK2019: unresolved >> external symbol "public: class vnl_vector<char> & __cdecl >> vnl_vector<char>::operator=(class vnl_vector<char> const &)" >> (??4?$vnl_vector@D@@QEAAAEAV0@AEBV0@@Z) referenced in function "public: >> class itk::Array<char> const & __cdecl itk::Array<char>::operator=(class >> itk::Array<char> const &)" (??4?$Array@D@itk@@QEAAAEBV01@AEBV01@@Z) >> ITKCommon-4.6.lib(itkMetaDataObject.obj) : error LNK2019: unresolved >> external symbol "public: bool __cdecl vnl_vector<char>::set_size(unsigned >> int)" (?set_size@?$vnl_vector@D@@QEAA_NI@Z) referenced in function "public: >> void __cdecl itk::Array<char>::SetSize(unsigned int)" >> (?SetSize@?$Array@D@itk@@QEAAXI@Z) application1.exe : fatal error LNK1120: >> 3 unresolved externals* >> >> I get the source code of OTB from the repository (rev. 16979, 4.2-rc1) >> >> With regards, >> Dmitriev Aleksey >> >> >> 2014-09-03 14:26 GMT+09:00 Omran Al Hammadi <[email protected]>: >> >>> Dear otb-users >>> >>> I am very new to OTB libraries and i successfully download and compile >>> OTB source code. >>> Then I tried to run the hello world example and I was able to generate >>> the sln file. >>> I opened the sln file to build it, but I couldn't. I got the following >>> errors: >>> >>> *Error 1 error LNK2019: unresolved external symbol "public: __cdecl >>> vnl_vector<char>::~vnl_vector<char>(void)" (??1?$vnl_vector@D@@QEAA@XZ) >>> referenced in function "public: __cdecl >>> itk::Array<char>::~Array<char>(void)" (??1?$Array@D@itk@@QEAA@XZ) * >>> >>> >>> *Error 2 error LNK2019: unresolved external symbol "public: class >>> vnl_vector<char> & __cdecl vnl_vector<char>::operator=(class >>> vnl_vector<char> const &)" (??4?$vnl_vector@D@@QEAAAEAV0@AEBV0@@Z) >>> referenced in function "public: class itk::Array<char> const & __cdecl >>> itk::Array<char>::operator=(class itk::Array<char> const &)" >>> (??4?$Array@D@itk@@QEAAAEBV01@AEBV01@@Z) * >>> >>> *Error 3 error LNK2019: unresolved external symbol "public: bool >>> __cdecl vnl_vector<char>::set_size(unsigned int)" >>> (?set_size@?$vnl_vector@D@@QEAA_NI@Z) referenced in function "public: class >>> itk::Array<char> const & __cdecl itk::Array<char>::operator=(class >>> itk::Array<char> const &)" (??4?$Array@D@itk@@QEAAAEBV01@AEBV01@@Z)* >>> >>> *Error 4 error LNK1120: 3 unresolved externals * >>> >>> >>> your help will be highly appreciated >>> >>> regards >>> Omran >>> -- >>> -- >>> Check the OTB FAQ at >>> http://www.orfeo-toolbox.org/FAQ.html >>> >>> You received this message because you are subscribed to the Google >>> Groups "otb-users" group. >>> To post to this group, send email to [email protected] >>> >>> To unsubscribe from this group, send email to >>> [email protected] >>> >>> For more options, visit this group at >>> http://groups.google.com/group/otb-users?hl=en >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "otb-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> -- >> Check the OTB FAQ at >> http://www.orfeo-toolbox.org/FAQ.html >> >> You received this message because you are subscribed to the Google >> Groups "otb-users" group. >> To post to this group, send email to [email protected] >> >> To unsubscribe from this group, send email to >> [email protected] >> >> For more options, visit this group at >> http://groups.google.com/group/otb-users?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "otb-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> >> For more options, visit https://groups.google.com/d/optout. >> >> >> -- > -- > Check the OTB FAQ at > http://www.orfeo-toolbox.org/FAQ.html > > You received this message because you are subscribed to the Google > Groups "otb-users" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/otb-users?hl=en > --- > You received this message because you are subscribed to the Google Groups > "otb-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
