[Insight-users] WG: CMake error
Lodron, Gerald
Gerald.Lodron at joanneum.at
Wed Aug 18 05:32:18 EDT 2010
I now temporary changed it to
If(0)
Else(0)
Endif(0)
And Cmake works. I only get one error in build:
Build started: Project: itkTestDriver, Configuration: Release x64 ------
1>Linking...
1>LINK : fatal error LNK1181: cannot open input file 'gdcmMSFF.lib'
When i add the path to the gdcmMSFF.lib to the itkTestDriver project i get following errors:
Build started: Project: itkTestDriver, Configuration: Release x64 ------
1>Linking...
1> Creating library D:\develop\win64-msv90-build\ITK\bin\Release\itkTestDriver.lib and object D:\develop\win64-msv90-build\ITK\bin\Release\itkTestDriver.exp
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class gdcm::DictEntry const & __cdecl gdcm::Dicts::GetDictEntry(class gdcm::Tag const &,char const *)const " (__imp_?GetDictEntry at Dicts@gdcm@@QEBAAEBVDictEntry at 2@AEBVTag at 2@PEBD at Z) referenced in function "public: static bool __cdecl itk::GDCMImageIO::GetLabelFromTag(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> > &)" (?GetLabelFromTag at GDCMImageIO@itk@@SA_NAEBV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@AEAV34@@Z)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class gdcm::Dicts const & __cdecl gdcm::Global::GetDicts(void)const " (__imp_?GetDicts at Global@gdcm@@QEBAAEBVDicts at 2@XZ) referenced in function "public: static bool __cdecl itk::GDCMImageIO::GetLabelFromTag(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> > &)" (?GetLabelFromTag at GDCMImageIO@itk@@SA_NAEBV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@AEAV34@@Z)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class gdcm::Global & __cdecl gdcm::Global::GetInstance(void)" (__imp_?GetInstance at Global@gdcm@@SAAEAV12 at XZ) referenced in function "public: static bool __cdecl itk::GDCMImageIO::GetLabelFromTag(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> > &)" (?GetLabelFromTag at GDCMImageIO@itk@@SA_NAEBV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@AEAV34@@Z)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl gdcm::Tag::ReadFromPipeSeparatedString(char const *)" (__imp_?ReadFromPipeSeparatedString at Tag@gdcm@@QEAA_NPEBD at Z) referenced in function "public: static bool __cdecl itk::GDCMImageIO::GetLabelFromTag(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> > &)" (?GetLabelFromTag at GDCMImageIO@itk@@SA_NAEBV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@AEAV34@@Z)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static bool __cdecl gdcm::Unpacker12Bits::Unpack(char *,char const *,unsigned __int64)" (__imp_?Unpack at Unpacker12Bits@gdcm@@SA_NPEADPEBD_K at Z) referenced in function "public: virtual void __cdecl itk::GDCMImageIO::Read(void *)" (?Read at GDCMImageIO@itk@@UEAAXPEAX at Z)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl gdcm::VR::IsVRFile(void)const " (__imp_?IsVRFile at VR@gdcm@@QEBA_NXZ) referenced in function "public: virtual void __cdecl itk::GDCMImageIO::Write(void const *)" (?Write at GDCMImageIO@itk@@UEAAXPEBX at Z)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class gdcm::Dict const & __cdecl gdcm::Dicts::GetPublicDict(void)const " (__imp_?GetPublicDict at Dicts@gdcm@@QEBAAEBVDict at 2@XZ) referenced in function "public: virtual void __cdecl itk::GDCMImageIO::Write(void const *)" (?Write at GDCMImageIO@itk@@UEAAXPEBX at Z)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl gdcm::FileMetaInformation::SetSourceApplicationEntityTitle(char const *)" (__imp_?SetSourceApplicationEntityTitle at FileMetaInformation@gdcm@@SAXPEBD at Z) referenced in function "public: virtual void __cdecl itk::GDCMImageIO::Write(void const *)" (?Write at GDCMImageIO@itk@@UEAAXPEBX at Z)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl gdcm::FileMetaInformation::AppendImplementationClassUID(char const *)" (__imp_?AppendImplementationClassUID at FileMetaInformation@gdcm@@SAXPEBD at Z) referenced in function "public: virtual void __cdecl itk::GDCMImageIO::Write(void const *)" (?Write at GDCMImageIO@itk@@UEAAXPEBX at Z)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl gdcm::Global::Global(void)" (__imp_??0Global at gdcm@@QEAA at XZ) referenced in function "void __cdecl gdcm::`dynamic initializer for 'GlobalInstance''(void)" (??__EGlobalInstance at gdcm@@YAXXZ)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl gdcm::Global::~Global(void)" (__imp_??1Global at gdcm@@QEAA at XZ) referenced in function "void __cdecl gdcm::`dynamic atexit destructor for 'GlobalInstance''(void)" (??__FGlobalInstance at gdcm@@YAXXZ)
1>D:\develop\win64-msv90-build\ITK\bin\Release\itkTestDriver.exe : fatal error LNK1120: 11 unresolved externals
Any hints?
-----Ursprüngliche Nachricht-----
Von: insight-users-bounces at itk.org [mailto:insight-users-bounces at itk.org] Im Auftrag von Lodron, Gerald
Gesendet: Mittwoch, 18. August 2010 10:58
An: 'Mathieu Malaterre'
Cc: 'insight-users at itk.org'
Betreff: Re: [Insight-users] CMake error
OK, i changed it like in
http://itk.org/gitweb?p=ITK.git;a=commitdiff;h=93833edb2294c0190af9e6c0de26e9485399a7d3
More information about the Insight-users
mailing list