[Insight-users] [ITK3] ITK3.20 + VTK5.6.1 + GDCM 2.2

Marta Peroni m.peroni at gmail.com
Tue Mar 13 12:54:58 EDT 2012


Hi!
I'm in need of having the version of ITK/VTK/GDCM mentioned in the subject
communicating together for one project. I'm stuck with ITK and VTK versions
(i.e. canNOT modify them).
I'd love to have GDCM 2 though instead of GDCM 1.

I can successfully configure VTK5.6 + GDCM 2.2 and runs beautifully.
I am not able to add ITK though.

at first I had the vtkmetaio error, which I solved with this:

now, I set ITK_USE_SYSTEM_GDCM and make sure to link to correct folders. I
can configure, but cannot compile.....
first line of make:

../../bin/libITKIO.a(itkGDCMImageIO.o): In function
`itk::GDCMImageIO::CanReadFile(char const*)':
itkGDCMImageIO.cxx:(.text+0x136a): undefined reference to
`gdcm::Reader::SetFileName(char const*)'
../../bin/libITKIO.a(itkGDCMImageIO.o): In function
`itk::GDCMImageIO::Read(void*)':
itkGDCMImageIO.cxx:(.text+0x14a8): undefined reference to
`gdcm::Reader::SetFileName(char const*)'
itkGDCMImageIO.cxx:(.text+0x18a0): undefined reference to
`gdcm::Unpacker12Bits::Unpack(char*, char const*, unsigned long)'
../../bin/libITKIO.a(itkGDCMImageIO.o): In function
`itk::GDCMImageIO::InternalReadImageInformation(std::basic_ifstream<char,
std::char_traits<char> >&)':
itkGDCMImageIO.cxx:(.text+0x1e8d): undefined reference to
`gdcm::Reader::SetFileName(char const*)'
../../bin/libITKIO.a(itkGDCMImageIO.o): In function
`itk::GDCMImageIO::Write(void const*)':
itkGDCMImageIO.cxx:(.text+0x32e1): undefined reference to
`gdcm::FileMetaInformation::AppendImplementationClassUID(char const*)'
itkGDCMImageIO.cxx:(.text+0x3364): undefined reference to
`gdcm::FileMetaInformation::SetSourceApplicationEntityTitle(char const*)'
itkGDCMImageIO.cxx:(.text+0x3393): undefined reference to
`gdcm::Global::GetInstance()'
itkGDCMImageIO.cxx:(.text+0x33a3): undefined reference to
`gdcm::Global::GetDicts()'
itkGDCMImageIO.cxx:(.text+0x33b3): undefined reference to
`gdcm::Dicts::GetPublicDict() const'
itkGDCMImageIO.cxx:(.text+0x34f3): undefined reference to
`gdcm::Tag::ReadFromPipeSeparatedString(char const*)'
itkGDCMImageIO.cxx:(.text+0x372d): undefined reference to
`gdcm::VR::IsVRFile() const'
itkGDCMImageIO.cxx:(.text+0x5ae9): undefined reference to
`gdcm::Writer::SetFileName(char const*)'
../../bin/libITKIO.a(itkGDCMImageIO.o): In function
`itk::GDCMImageIO::GetLabelFromTag(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
itkGDCMImageIO.cxx:(.text+0x6a77): undefined reference to
`gdcm::Tag::ReadFromPipeSeparatedString(char const*)'
itkGDCMImageIO.cxx:(.text+0x6aa0): undefined reference to
`gdcm::Global::GetInstance()'
itkGDCMImageIO.cxx:(.text+0x6ab0): undefined reference to
`gdcm::Global::GetDicts() const'
itkGDCMImageIO.cxx:(.text+0x6acc): undefined reference to
`gdcm::Dicts::GetDictEntry(gdcm::Tag const&, char const*) const'


I saw many ppl having this issue, so I wonder if I just have to surrender...
by the way, I'm on Arch linux 64 bits, and I cannot install libraries
because I need multiple versions of GDCM and VTK (I mean same version but
different options turned on :)
thanks
Marta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120313/608b9f5d/attachment.htm>


More information about the Insight-users mailing list