编译orfeo-toolbox 3.2.1 时,会出现以下问题:
swbUtils.cxx.obj : error LNK2019: riferimento al simbolo esterno
"__declspec(dll import) public: static class ossimImageHandlerSarFactory * __cdecl
ossimImageHandlerSarFactory::instance(void)
" (__imp_?instance@ossimImageHandlerSarFactory@@SAPAV1@XZ) non risolto nella funzione "public: virtual void __thiscall
otb::ImageFileReader<class otb::Image<class std::complex<float>,2>>::GenerateOutputInformation(void)" (?GenerateOutputInformation@?$ImageFileReader@V?$Image@V?$complex@M@std@@$01@otb@@@otb@@UAEXXZ)
swblib.dll : fatal error LNK1120: 1 esterni non risolti
LINK failed. with 1120
otb::ImageFileReader<class otb::Image<class std::complex<float>,2>>::GenerateOutputInformation(void)" (?GenerateOutputInformation@?$ImageFileReader@V?$Image@V?$complex@M@std@@$01@otb@@@otb@@UAEXXZ)
swblib.dll : fatal error LNK1120: 1 esterni non risolti
LINK failed. with 1120
I sended an email to
Antonio Valentino, he said that
I solved that particular problem updating the source code from OTB 3.2
stable to revision 477f94d7b3f4
(http://hg.orfeo-toolbox.org/OTB/rev/477f94d7b3f4) hg the OTB hr repo:
$ hg clone http://hg.orfeo-toolbox.org/OTB
$ cd OTB
$ hg pull
$ hg up -r 477f94d7b3f4
stable to revision 477f94d7b3f4
(http://hg.orfeo-toolbox.org/OTB/rev/477f94d7b3f4) hg the OTB hr repo:
$ hg clone http://hg.orfeo-toolbox.org/OTB
$ cd OTB
$ hg pull
$ hg up -r 477f94d7b3f4