[IGSTK-Users] error in building the examples
Paulo Jorge Sequeira Gonçalves
pbsgoncalves at gmail.com
Mon Sep 5 23:05:06 EDT 2011
it works now with fltk1.3.0,
thanks,
Paulo Jorge Sequeira Gonçalves
www.est.ipcb.pt/pessoais/pgoncalves
No dia 6 de Setembro de 2011 03:05, Paulo Jorge Sequeira Gonçalves
<pbsgoncalves at gmail.com> escreveu:
> Hi Patrick,
>
> thank you,
>
> I was using ITK4.0, now changed to ITK3.14, and it is ok.
>
> other issue:
> - what is the best version for FLTK?
> I am using the most recent version 1.3.0 and I am experiencing some errors like:
>
> [ 71%] Building CXX object
> Testing/CMakeFiles/igstkTests.dir/igstkCrossHairObjectRepresentationTest.o
> Linking CXX executable ../bin/igstkTests
> CMakeFiles/igstkTests.dir/igstkFLTKTextBufferLogOutputTest.o: In
> function `igstkFLTKTextBufferLogOutputTest(int, char**)':
> igstkFLTKTextBufferLogOutputTest.cxx:(.text+0x12c): undefined
> reference to `Fl_Text_Buffer::Fl_Text_Buffer(int, int)'
> CMakeFiles/igstkTests.dir/igstkFLTKTextLogOutputTest.o: In function
> `igstkFLTKTextLogOutputTest(int, char**)':
> igstkFLTKTextLogOutputTest.cxx:(.text+0x12c): undefined reference to
> `Fl_Text_Buffer::Fl_Text_Buffer(int, int)'
> ../bin/libIGSTK.a(igstkFLTKTextBufferLogOutput.o): In function
> `igstk::FLTKTextBufferLogOutput::~FLTKTextBufferLogOutput()':
> igstkFLTKTextBufferLogOutput.cxx:(.text+0x17e): undefined reference to
> `Fl_Text_Buffer::text() const'
> ../bin/libIGSTK.a(igstkFLTKTextBufferLogOutput.o): In function
> `igstk::FLTKTextBufferLogOutput::~FLTKTextBufferLogOutput()':
> igstkFLTKTextBufferLogOutput.cxx:(.text+0x26a): undefined reference to
> `Fl_Text_Buffer::text() const'
> ../bin/libIGSTK.a(igstkFLTKTextBufferLogOutput.o): In function
> `igstk::FLTKTextBufferLogOutput::~FLTKTextBufferLogOutput()':
> igstkFLTKTextBufferLogOutput.cxx:(.text+0x356): undefined reference to
> `Fl_Text_Buffer::text() const'
> ../bin/libIGSTK.a(igstkFLTKTextLogOutput.o): In function
> `igstk::FLTKTextLogOutput::~FLTKTextLogOutput()':
> igstkFLTKTextLogOutput.cxx:(.text+0x136): undefined reference to
> `Fl_Text_Buffer::text() const'
> ../bin/libIGSTK.a(igstkFLTKTextLogOutput.o): In function
> `igstk::FLTKTextLogOutput::~FLTKTextLogOutput()':
> igstkFLTKTextLogOutput.cxx:(.text+0x1fe): undefined reference to
> `Fl_Text_Buffer::text() const'
> ../bin/libIGSTK.a(igstkFLTKTextLogOutput.o):igstkFLTKTextLogOutput.cxx:(.text+0x2c6):
> more undefined references to `Fl_Text_Buffer::text() const' follow
> ../bin/libIGSTK.a(igstkFLTKWidget.o): In function
> `igstk::FLTKWidget::SetRenderWindowID()':
> igstkFLTKWidget.cxx:(.text+0x1f3b): undefined reference to
> `fl_xid_(Fl_Window const*)'
> ../bin/libIGSTK.a(igstkFLTKWidget.o): In function
> `igstk::FLTKWidget::handle(int)':
> igstkFLTKWidget.cxx:(.text+0x2c8c): undefined reference to
> `Fl_Gl_Window::handle(int)'
> collect2: ld returned 1 exit status
> make[2]: *** [bin/igstkTests] Error 1
> make[1]: *** [Testing/CMakeFiles/igstkTests.dir/all] Error 2
> make: *** [all] Error 2
> paulo at paulo-Precision-M4300:~/igstk/igstk-bin$
>
>
> Paulo Jorge Sequeira Gonçalves
> www.est.ipcb.pt/pessoais/pgoncalves
>
>
>
> No dia 5 de Setembro de 2011 20:06, Cheng, Patrick
> <PCheng at childrensnational.org> escreveu:
>> Hi Paulo,
>>
>> What version of ITK are you using? Try ITK 3.20, it should work.
>>
>> Patrick
>>
>>
>> -----Original Message-----
>> From: igstk-users-bounces at public.kitware.com on behalf of Paulo Jorge
>> Sequeira Gonçalves
>> Sent: Mon 9/5/2011 5:09 AM
>> To: igstk-users at public.kitware.com
>> Cc: Paulo Jorge Sequeira Gonçalves
>> Subject: [IGSTK-Users] error in building the examples
>>
>> Hi,
>>
>> I have tried to build the examples in IGSTK,
>> I am using the development version in:
>> http://public.kitware.com/IGSTKWIKI/index.php/Download_IGSTK
>>
>> and the following error occurred:
>>
>> [ 75%] Building CXX object
>> Examples/TransformReaders/CMakeFiles/TransformReaderExample.dir/TransformReaderExample.o
>> Linking CXX executable ../../bin/TransformReaderExample
>> ../../bin/libTransformReaders.a(igstkTransformXMLFileReaderBase.o):(.rodata._ZTVN5igstk26TransformXMLFileReaderBaseE[vtable
>> for igstk::TransformXMLFileReaderBase]+0x2c): undefined reference to
>> `itk::XMLReaderBase::PrintSelf(std::basic_ostream<char,
>> std::char_traits<char> >&, itk::Indent) const'
>> ../../bin/libTransformReaders.a(igstkRigidTransformXMLFileReader.o):(.rodata._ZTVN5igstk27RigidTransformXMLFileReaderE[vtable
>> for igstk::RigidTransformXMLFileReader]+0x2c): undefined reference to
>> `itk::XMLReaderBase::PrintSelf(std::basic_ostream<char,
>> std::char_traits<char> >&, itk::Indent) const'
>> ../../bin/libTransformReaders.a(igstkAffineTransformXMLFileReader.o):(.rodata._ZTVN5igstk28AffineTransformXMLFileReaderE[vtable
>> for igstk::AffineTransformXMLFileReader]+0x2c): undefined reference to
>> `itk::XMLReaderBase::PrintSelf(std::basic_ostream<char,
>> std::char_traits<char> >&, itk::Indent) const'
>> ../../bin/libTransformReaders.a(igstkPerspectiveTransformXMLFileReader.o):(.rodata._ZTVN5igstk33PerspectiveTransformXMLFileReaderE[vtable
>> for igstk::PerspectiveTransformXMLFileReader]+0x2c): undefined
>> reference to `itk::XMLReaderBase::PrintSelf(std::basic_ostream<char,
>> std::char_traits<char> >&, itk::Indent) const'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x0): undefined
>> reference to `itk::JPEGImageIOFactoryRegister__Private()'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x4): undefined
>> reference to `itk::GDCMImageIOFactoryRegister__Private()'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x8): undefined
>> reference to `itk::BMPImageIOFactoryRegister__Private()'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0xc): undefined
>> reference to `itk::LSMImageIOFactoryRegister__Private()'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x10): undefined
>> reference to `itk::PNGImageIOFactoryRegister__Private()'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x14): undefined
>> reference to `itk::TIFFImageIOFactoryRegister__Private()'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x18): undefined
>> reference to `itk::VTKImageIOFactoryRegister__Private()'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x1c): undefined
>> reference to `itk::StimulateImageIOFactoryRegister__Private()'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x20): undefined
>> reference to `itk::BioRadImageIOFactoryRegister__Private()'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x24): undefined
>> reference to `itk::MetaImageIOFactoryRegister__Private()'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x28): undefined
>> reference to `itk::NiftiImageIOFactoryRegister__Private()'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x2c): undefined
>> reference to `itk::NrrdImageIOFactoryRegister__Private()'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x30): undefined
>> reference to `itk::GiplImageIOFactoryRegister__Private()'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x34): undefined
>> reference to `itk::HDF5ImageIOFactoryRegister__Private()'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o):(.data+0x38): undefined
>> reference to `itk::MRCImageIOFactoryRegister__Private()'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o): In function
>> `itk::ImageFileReader<itk::Image<float, 3u>,
>> itk::DefaultConvertPixelTraits<float> >::GenerateData()':
>> igstkPETImageReader.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj3EEENS_25DefaultConvertPixelTraitsIfEEE12GenerateDataEv[itk::ImageFileReader<itk::Image<float,
>> 3u>, itk::DefaultConvertPixelTraits<float> >::GenerateData()]+0x5a8):
>> undefined reference to
>> `itk::ImageIOBase::GetComponentTypeAsString(itk::ImageIOBase::IOComponentType)'
>> igstkPETImageReader.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj3EEENS_25DefaultConvertPixelTraitsIfEEE12GenerateDataEv[itk::ImageFileReader<itk::Image<float,
>> 3u>, itk::DefaultConvertPixelTraits<float> >::GenerateData()]+0x5e5):
>> undefined reference to
>> `itk::ImageIOBase::GetComponentTypeAsString(itk::ImageIOBase::IOComponentType)'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o): In function
>> `itk::ImageIORegionAdaptor<3u>::Convert(itk::ImageRegion<3u> const&,
>> itk::ImageIORegion&, itk::Index<3u> const&)':
>> igstkPETImageReader.cxx:(.text._ZN3itk20ImageIORegionAdaptorILj3EE7ConvertERKNS_11ImageRegionILj3EEERNS_13ImageIORegionERKNS_5IndexILj3EEE[itk::ImageIORegionAdaptor<3u>::Convert(itk::ImageRegion<3u>
>> const&, itk::ImageIORegion&, itk::Index<3u> const&)]+0x94): undefined
>> reference to `itk::ImageIORegion::SetSize(unsigned long, unsigned
>> long)'
>> igstkPETImageReader.cxx:(.text._ZN3itk20ImageIORegionAdaptorILj3EE7ConvertERKNS_11ImageRegionILj3EEERNS_13ImageIORegionERKNS_5IndexILj3EEE[itk::ImageIORegionAdaptor<3u>::Convert(itk::ImageRegion<3u>
>> const&, itk::ImageIORegion&, itk::Index<3u> const&)]+0xd6): undefined
>> reference to `itk::ImageIORegion::SetIndex(unsigned long, long)'
>> igstkPETImageReader.cxx:(.text._ZN3itk20ImageIORegionAdaptorILj3EE7ConvertERKNS_11ImageRegionILj3EEERNS_13ImageIORegionERKNS_5IndexILj3EEE[itk::ImageIORegionAdaptor<3u>::Convert(itk::ImageRegion<3u>
>> const&, itk::ImageIORegion&, itk::Index<3u> const&)]+0x109): undefined
>> reference to `itk::ImageIORegion::SetSize(unsigned long, unsigned
>> long)'
>> igstkPETImageReader.cxx:(.text._ZN3itk20ImageIORegionAdaptorILj3EE7ConvertERKNS_11ImageRegionILj3EEERNS_13ImageIORegionERKNS_5IndexILj3EEE[itk::ImageIORegionAdaptor<3u>::Convert(itk::ImageRegion<3u>
>> const&, itk::ImageIORegion&, itk::Index<3u> const&)]+0x123): undefined
>> reference to `itk::ImageIORegion::SetIndex(unsigned long, long)'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o): In function
>> `itk::ImageFileReader<itk::Image<float, 3u>,
>> itk::DefaultConvertPixelTraits<float> >::DoConvertBuffer(void*,
>> unsigned int)':
>> igstkPETImageReader.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj3EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvj[itk::ImageFileReader<itk::Image<float,
>> 3u>, itk::DefaultConvertPixelTraits<float> >::DoConvertBuffer(void*,
>> unsigned int)]+0x7dc): undefined reference to
>> `itk::ImageIOBase::GetComponentTypeAsString(itk::ImageIOBase::IOComponentType)'
>> igstkPETImageReader.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj3EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvj[itk::ImageFileReader<itk::Image<float,
>> 3u>, itk::DefaultConvertPixelTraits<float> >::DoConvertBuffer(void*,
>> unsigned int)]+0x800): undefined reference to
>> `itk::ImageIOBase::GetComponentTypeAsString(itk::ImageIOBase::IOComponentType)'
>> igstkPETImageReader.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj3EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvj[itk::ImageFileReader<itk::Image<float,
>> 3u>, itk::DefaultConvertPixelTraits<float> >::DoConvertBuffer(void*,
>> unsigned int)]+0x824): undefined reference to
>> `itk::ImageIOBase::GetComponentTypeAsString(itk::ImageIOBase::IOComponentType)'
>> igstkPETImageReader.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj3EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvj[itk::ImageFileReader<itk::Image<float,
>> 3u>, itk::DefaultConvertPixelTraits<float> >::DoConvertBuffer(void*,
>> unsigned int)]+0x848): undefined reference to
>> `itk::ImageIOBase::GetComponentTypeAsString(itk::ImageIOBase::IOComponentType)'
>> igstkPETImageReader.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj3EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvj[itk::ImageFileReader<itk::Image<float,
>> 3u>, itk::DefaultConvertPixelTraits<float> >::DoConvertBuffer(void*,
>> unsigned int)]+0x86c): undefined reference to
>> `itk::ImageIOBase::GetComponentTypeAsString(itk::ImageIOBase::IOComponentType)'
>> ../../bin/libIGSTK.a(igstkPETImageReader.o):igstkPETImageReader.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj3EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvj[itk::ImageFileReader<itk::Image<float,
>> 3u>, itk::DefaultConvertPixelTraits<float> >::DoConvertBuffer(void*,
>> unsigned int)]+0x890): more undefined references to
>> `itk::ImageIOBase::GetComponentTypeAsString(itk::ImageIOBase::IOComponentType)'
>> follow
>> collect2: ld returned 1 exit status
>> make[2]: *** [bin/TransformReaderExample] Error 1
>> make[1]: ***
>> [Examples/TransformReaders/CMakeFiles/TransformReaderExample.dir/all]
>> Error 2
>> make: *** [all] Error 2
>>
>>
>>
>> -----------------------------------------------------------------------------------------------------------------------------
>>
>> can anyone help
>>
>> Paulo Jorge Sequeira Gonçalves
>> www.est.ipcb.pt/pessoais/paulog
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users
>>
>>
>
More information about the IGSTK-Users
mailing list