[Rtk-users] RTK helloworld

Julien Jomier julien.jomier at kitware.com
Mon Sep 8 09:11:50 EDT 2014


Dear Padraig,

When you say "built and is working but I have hundreds of errors" do you 
mean that you have successfully compiled and linked the example? It 
seems that your example cannot find the ITK libraries. Are you building 
ITK and RTK using BUILD_SHARED_LIBS to ON in CMake?

Julien

On 08/09/2014 14:43, Padraig Looney wrote:
> Dear all,
>
> I am trying to get the HelloWorld example running but I get a large
> number of errors after the build. I am using ITK-4.6 and have followed
> the instructions as per
>
> http://wiki.openrtk.org/index.php/RTK_wiki_help#Tutorial_0_-_Building_an_HelloWorld_application_with_RTK
>
> My executable is built and is working but I have hundreds of errors. The
> first few are.
>
> CMakeFiles/HelloWorld1.dir/main.cpp.o: In function
> `itk::MemoryAllocationError::MemoryAllocationError(std::string const&,
> unsigned int, std::string const&, std::string const&)':
> main.cpp:(.text._ZN3itk21MemoryAllocationErrorC2ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC5ERKSsjS2_S2_]+0x35):
> undefined reference to
> `itk::ExceptionObject::ExceptionObject(std::string const&, unsigned int,
> std::string const&, std::string const&)'
> main.cpp:(.text._ZN3itk21MemoryAllocationErrorC2ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC5ERKSsjS2_S2_]+0x40):
> undefined reference to `vtable for itk::MemoryAllocationError'
> CMakeFiles/HelloWorld1.dir/main.cpp.o: In function
> `itk::Object::SetObjectName(std::string)':
> main.cpp:(.text._ZN3itk6Object13SetObjectNameESs[_ZN3itk6Object13SetObjectNameESs]+0x25):
> undefined reference to `itk::Object::GetDebug() const'
> main.cpp:(.text._ZN3itk6Object13SetObjectNameESs[_ZN3itk6Object13SetObjectNameESs]+0x2e):
> undefined reference to `itk::Object::GetGlobalWarningDisplay()'
> main.cpp:(.text._ZN3itk6Object13SetObjectNameESs[_ZN3itk6Object13SetObjectNameESs]+0x12e):
> undefined reference to `itk::OutputWindowDisplayDebugText(char const*)'
> CMakeFiles/HelloWorld1.dir/main.cpp.o: In function
> `itk::DataObject::SetRealTimeStamp(itk::RealTimeStamp)':
> main.cpp:(.text._ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE[_ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE]+0x25):
> undefined reference to `itk::Object::GetDebug() const'
> main.cpp:(.text._ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE[_ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE]+0x2e):
> undefined reference to `itk::Object::GetGlobalWarningDisplay()'
> main.cpp:(.text._ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE[_ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE]+0xf1):
> undefined reference to `itk::operator<<(std::ostream&,
> itk::RealTimeStamp const&)'
> main.cpp:(.text._ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE[_ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE]+0x12e):
> undefined reference to `itk::OutputWindowDisplayDebugText(char const*)'
> main.cpp:(.text._ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE[_ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE]+0x169):
> undefined reference to
> `itk::RealTimeStamp::operator!=(itk::RealTimeStamp const&) const'
>
>
> Thanks
> Pádraig
>
>
> _______________________________________________
> Rtk-users mailing list
> Rtk-users at public.kitware.com
> http://public.kitware.com/mailman/listinfo/rtk-users
>



More information about the Rtk-users mailing list