[Insight-users] ITK on a Debian GNU/Linux machine

Luis Ibanez luis.ibanez@kitware.com
Fri, 04 Oct 2002 10:05:28 -0400


Hi Ricardo,

Could you please provide a bit more of information,

Are you using the CVS version ?
if yes, when did you last updated ?

--
The errors that you are getting seem to be related to linking problems.

For example:
itk::Object is the very basic class in ITK, it should be found in
the libITKCommon.a library..

Your link line has the ITKCommon library on it but doesn't seems
to fine the object inside.

Did you configured ITK using CMake from the top ITK directory ?

What is your GCC version ?

Thanks

    Luis


===================================================

Ricardo Ferrari wrote:

>Hi all,
>
>Is anybody could give me  any help in installing ITK in a Debian GNU/Linux
>Machine. I'm getting the following error.
>
>Thanks,
>Ricardo
>
> c++ -rdynamic -ftemplate-depth-50 itkNumericsHeaderTest.o  
>-L/home/ferrari/Insight/Util
>ities/zlib -L/home/ferrari/Insight/Utilities/png 
>-L/home/ferrari/Insight/Code/Common -L
>/home/ferrari/Insight/Code/IO -L/home/ferrari/Insight/Code/Numerics/vxl 
>-L/home/ferrari
>/Insight/Code/Numerics -lpthread -ldl -lVXLNumerics -lm -lITKCommon 
>-lITKNumerics -lVXL
>Numerics -lpthread -lm -ldl 
>-Wl,-rpath,/home/ferrari/Insight/Utilities/zlib:/home/ferra
>ri/Insight/Utilities/png:/home/ferrari/Insight/Code/Common:/home/ferrari/Insight/Code/I
>O:/home/ferrari/Insight/Code/Numerics/vxl:/home/ferrari/Insight/Code/Numerics 
> -o itkNu
>mericsHeaderTest
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o): In 
>function `itk:
>:Optimizer::Optimizer(void)':
>itkOptimizer.o(.text+0xf): undefined reference to `itk::Object::Object(void)'
>itkOptimizer.o(.text+0xcc): undefined reference to 
>`itk::Object::~Object(void)'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o): In 
>function `itk:
>:Optimizer::SetScales(itk::Array<double> const &)':
>itkOptimizer.o(.text+0xff): undefined reference to 
>`itk::Object::GetDebug(void) const'
>itkOptimizer.o(.text+0x111): undefined reference to 
>`itk::Object::GetGlobalWarningDispl
>ay(void)'
>itkOptimizer.o(.text+0x221): undefined reference to 
>`itk::OutputWindowDisplayDebugText(
>char const *)'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o): In 
>function `itk:
>:Optimizer::PrintSelf(ostream &, itk::Indent) const':
>itkOptimizer.o(.text+0x2e3): undefined reference to 
>`itk::Object::PrintSelf(ostream &,
>itk::Indent) const'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o)(.gnu.linkonce.d.__
>vt_Q23itk9Optimizer+0x8): undefined reference to 
>`itk::LightObject::Delete(void)'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o)(.gnu.linkonce.d.__
>vt_Q23itk9Optimizer+0x10): undefined reference to 
>`itk::Object::Register(void) const'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o)(.gnu.linkonce.d.__
>vt_Q23itk9Optimizer+0x14): undefined reference to 
>`itk::Object::UnRegister(void) const'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o)(.gnu.linkonce.d.__
>vt_Q23itk9Optimizer+0x18): undefined reference to 
>`itk::LightObject::GetReferenceCount(
>void) const'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o)(.gnu.linkonce.d.__
>vt_Q23itk9Optimizer+0x1c): undefined reference to 
>`itk::Object::SetReferenceCount(int)'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o)(.gnu.linkonce.d.__
>vt_Q23itk9Optimizer+0x28): undefined reference to 
>`itk::LightObject::PrintHeader(ostrea
>m &, itk::Indent) const'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o)(.gnu.linkonce.d.__
>vt_Q23itk9Optimizer+0x2c): undefined reference to 
>`itk::LightObject::PrintTrailer(ostre
>am &, itk::Indent) const'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o)(.gnu.linkonce.d.__
>vt_Q23itk9Optimizer+0x30): undefined reference to `itk::Object::DebugOn(void) 
>const'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o)(.gnu.linkonce.d.__
>vt_Q23itk9Optimizer+0x34): undefined reference to 
>`itk::Object::DebugOff(void) const'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o)(.gnu.linkonce.d.__
>vt_Q23itk9Optimizer+0x38): undefined reference to 
>`itk::Object::GetMTime(void) const'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o)(.gnu.linkonce.d.__
>vt_Q23itk9Optimizer+0x3c): undefined reference to 
>`itk::Object::Modified(void) const'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o): In 
>function `itk:
>:Optimizer type_info function':
>itkOptimizer.o(.gnu.linkonce.t.__tfQ23itk9Optimizer+0x10): undefined 
>reference to `itk:
>:Object type_info function'
>itkOptimizer.o(.gnu.linkonce.t.__tfQ23itk9Optimizer+0x1a): undefined 
>reference to `itk:
>:Object type_info node'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o): In 
>function `itk:
>:Optimizer::SetInitialPosition(itk::Array<double>)':
>itkOptimizer.o(.itk::Optimizer::gnu.linkonce.t.SetInitialPosition(itk::Array<double>)+0
>x17): undefined reference to `itk::Object::GetDebug(void) const'
>itkOptimizer.o(.itk::Optimizer::gnu.linkonce.t.SetInitialPosition(itk::Array<double>)+0
>x29): undefined reference to `itk::Object::GetGlobalWarningDisplay(void)'
>itkOptimizer.o(.itk::Optimizer::gnu.linkonce.t.SetInitialPosition(itk::Array<double>)+0
>x136): undefined reference to `itk::OutputWindowDisplayDebugText(char const 
>*)'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o): In 
>function `itk:
>:Optimizer::GetInitialPosition(void) const':
>itkOptimizer.o(.itk::Optimizer::gnu.linkonce.t.GetInitialPosition(void) 
>const+0x17): un
>defined reference to `itk::Object::GetDebug(void) const'
>itkOptimizer.o(.itk::Optimizer::gnu.linkonce.t.GetInitialPosition(void) 
>const+0x29): un
>defined reference to `itk::Object::GetGlobalWarningDisplay(void)'
>itkOptimizer.o(.itk::Optimizer::gnu.linkonce.t.GetInitialPosition(void) 
>const+0x14c): u
>ndefined reference to `itk::OutputWindowDisplayDebugText(char const *)'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o): In 
>function `itk:
>:Optimizer::GetScales(void) const':
>itkOptimizer.o(.itk::Optimizer::gnu.linkonce.t.GetScales(void) const+0x17): 
>undefined r
>eference to `itk::Object::GetDebug(void) const'
>itkOptimizer.o(.itk::Optimizer::gnu.linkonce.t.GetScales(void) const+0x29): 
>undefined r
>eference to `itk::Object::GetGlobalWarningDisplay(void)'
>itkOptimizer.o(.itk::Optimizer::gnu.linkonce.t.GetScales(void) const+0x14c): 
>undefined
>reference to `itk::OutputWindowDisplayDebugText(char const *)'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o): In 
>function `itk:
>:Optimizer::GetCurrentPosition(void) const':
>itkOptimizer.o(.itk::Optimizer::gnu.linkonce.t.GetCurrentPosition(void) 
>const+0x17): un
>defined reference to `itk::Object::GetDebug(void) const'
>itkOptimizer.o(.itk::Optimizer::gnu.linkonce.t.GetCurrentPosition(void) 
>const+0x29): un
>defined reference to `itk::Object::GetGlobalWarningDisplay(void)'
>itkOptimizer.o(.itk::Optimizer::gnu.linkonce.t.GetCurrentPosition(void) 
>const+0x14c): u
>ndefined reference to `itk::OutputWindowDisplayDebugText(char const *)'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o): In 
>function `itk:
>:Optimizer::~Optimizer(void)':
>itkOptimizer.o(.gnu.linkonce.t._._Q23itk9Optimizer+0x4e): undefined reference 
>to `itk::
>Object::~Object(void)'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o): In 
>function `itk:
>:Optimizer::SetCurrentPosition(itk::Array<double>)':
>itkOptimizer.o(.itk::Optimizer::gnu.linkonce.t.SetCurrentPosition(itk::Array<double>)+0
>x17): undefined reference to `itk::Object::GetDebug(void) const'
>itkOptimizer.o(.itk::Optimizer::gnu.linkonce.t.SetCurrentPosition(itk::Array<double>)+0
>x29): undefined reference to `itk::Object::GetGlobalWarningDisplay(void)'
>itkOptimizer.o(.itk::Optimizer::gnu.linkonce.t.SetCurrentPosition(itk::Array<double>)+0
>x136): undefined reference to `itk::OutputWindowDisplayDebugText(char const 
>*)'
>/home/ferrari/Insight/Code/Numerics/libITKNumerics.a(itkOptimizer.o): In 
>function `itk:
>:ObjectFactory<itk::Optimizer>::Create(void)':
>itkOptimizer.o(.itk::ObjectFactory<itk::Optimizer>::gnu.linkonce.t.Create(void)+0x2a):
>undefined reference to `itk::ObjectFactoryBase::CreateInstance(char const *)'
>itkOptimizer.o(.itk::ObjectFactory<itk::Optimizer>::gnu.linkonce.t.Create(void)+0x55):
>undefined reference to `itk::LightObject type_info function'
>collect2: ld returned 1 exit status
>make[7]: *** [itkNumericsHeaderTest] Error 1
>make[6]: *** [default_target] Error 2
>make[5]: *** [default_target_Numerics] Error 2
>make[4]: *** [default_target] Error 2
>make[3]: *** [default_target_Code] Error 2
>make[2]: *** [default_target] Error 2
>make[1]: *** [default_target_Testing] Error 2
>make: *** [default_target] Error 2
>bash-2.05b$
>_______________________________________________
>Insight-users mailing list
>Insight-users@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-users
>