[Insight-users] WG: WG: CMake error

Lodron, Gerald Gerald.Lodron at joanneum.at
Wed Aug 18 05:43:00 EDT 2010


 
OK,

I also added 

è	vtkgdcm.lib
è	gdcmzlib.lib
è	gdcmopenjpeg.lib
è	gdcmjpeg16.lib
è	gdcmjpeg12.lib
è	gdcmjpeg8.lib
è	gdcmIOD.lib
è	gdcmgetopt.lib
è	gdcmexpat.lib
è	gdcmDSED.lib
è	gdcmDICT.lib
è	gdcmCommon.lib
è	gdcmcharls.lib

To the linker of  itkTestDriver and now it works, someone should change the cmake for that

Best regards

-----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 11:32
An: 'insight-users at itk.org'
Betreff: [Insight-users] WG: CMake error

 
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 
1>D:\develop\win64-msv90-build\ITK\bin\Release\itkTestDriver.lib and 
1>object D:\develop\win64-msv90-build\ITK\bin\Release\itkTestDriver.exp
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external 
1>symbol "__declspec(dllimport) public: class gdcm::DictEntry const & 
1>__cdecl gdcm::Dicts::GetDictEntry(class gdcm::Tag const &,char const 
1>*)const " 
1>(__imp_?GetDictEntry at Dicts@gdcm@@QEBAAEBVDictEntry at 2@AEBVTag at 2@PEBD at Z) 
1>referenced in function "public: static bool __cdecl 
1>itk::GDCMImageIO::GetLabelFromTag(class std::basic_string<char,struct 
1>std::char_traits<char>,class std::allocator<char> > const &,class 
1>std::basic_string<char,struct std::char_traits<char>,class 
1>std::allocator<char> > &)" 
1>(?GetLabelFromTag at GDCMImageIO@itk@@SA_NAEBV?$basic_string at DU?$char_tra
1>its at D@std@@V?$allocator at D@2@@std@@AEAV34@@Z)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external 
1>symbol "__declspec(dllimport) public: class gdcm::Dicts const & 
1>__cdecl gdcm::Global::GetDicts(void)const " 
1>(__imp_?GetDicts at Global@gdcm@@QEBAAEBVDicts at 2@XZ) referenced in 
1>function "public: static bool __cdecl 
1>itk::GDCMImageIO::GetLabelFromTag(class std::basic_string<char,struct 
1>std::char_traits<char>,class std::allocator<char> > const &,class 
1>std::basic_string<char,struct std::char_traits<char>,class 
1>std::allocator<char> > &)" 
1>(?GetLabelFromTag at GDCMImageIO@itk@@SA_NAEBV?$basic_string at DU?$char_tra
1>its at D@std@@V?$allocator at D@2@@std@@AEAV34@@Z)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external 
1>symbol "__declspec(dllimport) public: static class gdcm::Global & 
1>__cdecl gdcm::Global::GetInstance(void)" 
1>(__imp_?GetInstance at Global@gdcm@@SAAEAV12 at XZ) referenced in function 
1>"public: static bool __cdecl itk::GDCMImageIO::GetLabelFromTag(class 
1>std::basic_string<char,struct std::char_traits<char>,class 
1>std::allocator<char> > const &,class std::basic_string<char,struct 
1>std::char_traits<char>,class std::allocator<char> > &)" 
1>(?GetLabelFromTag at GDCMImageIO@itk@@SA_NAEBV?$basic_string at DU?$char_tra
1>its at D@std@@V?$allocator at D@2@@std@@AEAV34@@Z)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external 
1>symbol "__declspec(dllimport) public: bool __cdecl 
1>gdcm::Tag::ReadFromPipeSeparatedString(char const *)" 
1>(__imp_?ReadFromPipeSeparatedString at Tag@gdcm@@QEAA_NPEBD at Z) referenced 
1>in function "public: static bool __cdecl 
1>itk::GDCMImageIO::GetLabelFromTag(class std::basic_string<char,struct 
1>std::char_traits<char>,class std::allocator<char> > const &,class 
1>std::basic_string<char,struct std::char_traits<char>,class 
1>std::allocator<char> > &)" 
1>(?GetLabelFromTag at GDCMImageIO@itk@@SA_NAEBV?$basic_string at DU?$char_tra
1>its at D@std@@V?$allocator at D@2@@std@@AEAV34@@Z)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external 
1>symbol "__declspec(dllimport) public: static bool __cdecl 
1>gdcm::Unpacker12Bits::Unpack(char *,char const *,unsigned __int64)" 
1>(__imp_?Unpack at Unpacker12Bits@gdcm@@SA_NPEADPEBD_K at Z) referenced in 
1>function "public: virtual void __cdecl itk::GDCMImageIO::Read(void *)" 
1>(?Read at GDCMImageIO@itk@@UEAAXPEAX at Z)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external 
1>symbol "__declspec(dllimport) public: bool __cdecl 
1>gdcm::VR::IsVRFile(void)const " (__imp_?IsVRFile at VR@gdcm@@QEBA_NXZ) 
1>referenced in function "public: virtual void __cdecl 
1>itk::GDCMImageIO::Write(void const *)" 
1>(?Write at GDCMImageIO@itk@@UEAAXPEBX at Z)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external 
1>symbol "__declspec(dllimport) public: class gdcm::Dict const & __cdecl 
1>gdcm::Dicts::GetPublicDict(void)const " 
1>(__imp_?GetPublicDict at Dicts@gdcm@@QEBAAEBVDict at 2@XZ) referenced in 
1>function "public: virtual void __cdecl itk::GDCMImageIO::Write(void 
1>const *)" (?Write at GDCMImageIO@itk@@UEAAXPEBX at Z)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external 
1>symbol "__declspec(dllimport) public: static void __cdecl 
1>gdcm::FileMetaInformation::SetSourceApplicationEntityTitle(char const 
1>*)" 
1>(__imp_?SetSourceApplicationEntityTitle at FileMetaInformation@gdcm@@SAXP
1>EBD at Z) referenced in function "public: virtual void __cdecl 
1>itk::GDCMImageIO::Write(void const *)" 
1>(?Write at GDCMImageIO@itk@@UEAAXPEBX at Z)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external 
1>symbol "__declspec(dllimport) public: static void __cdecl 
1>gdcm::FileMetaInformation::AppendImplementationClassUID(char const *)" 
1>(__imp_?AppendImplementationClassUID at FileMetaInformation@gdcm@@SAXPEBD
1>@Z) referenced in function "public: virtual void __cdecl 
1>itk::GDCMImageIO::Write(void const *)" 
1>(?Write at GDCMImageIO@itk@@UEAAXPEBX at Z)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external 
1>symbol "__declspec(dllimport) public: __cdecl 
1>gdcm::Global::Global(void)" (__imp_??0Global at gdcm@@QEAA at XZ) referenced 
1>in function "void __cdecl gdcm::`dynamic initializer for 
1>'GlobalInstance''(void)" (??__EGlobalInstance at gdcm@@YAXXZ)
1>ITKIO.lib(itkGDCMImageIO.obj) : error LNK2019: unresolved external 
1>symbol "__declspec(dllimport) public: __cdecl 
1>gdcm::Global::~Global(void)" (__imp_??1Global at gdcm@@QEAA at XZ) 
1>referenced in function "void __cdecl gdcm::`dynamic atexit destructor 
1>for 'GlobalInstance''(void)" (??__FGlobalInstance at gdcm@@YAXXZ) 
1>D:\develop\win64-msv90-build\ITK\bin\Release\itkTestDriver.exe : fatal 
1>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