[Insight-users] Compilation problems

Maximilien Renard iixamaxii at gmail.com
Mon Sep 29 16:25:46 EDT 2008


Hi everyone,

I'm a new user to ITK (actually, I was using a Windows version of ITK
compiled by one of my teachers) and I tried to install it on Linux
Ubuntu.

What I did was (as described) using CCMake,... it seemed to work.

But now an error appears when I try to compile my project :

/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkMultiThreader.o):
In function `__static_initialization_and_destruction_0(int, int)':
itkMultiThreader.cxx:(.text+0x26b): undefined reference to
`itksys::SystemToolsManager::SystemToolsManager()'
/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkMultiThreader.o):
In function `__tcf_1':
itkMultiThreader.cxx:(.text+0x2b8): undefined reference to
`itksys::SystemToolsManager::~SystemToolsManager()'
/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkMultiThreader.o):
In function `itk::MultiThreader::GetGlobalDefaultNumberOfThreads()':
itkMultiThreader.cxx:(.text+0x22bc): undefined reference to
`itksys::SystemTools::GetEnv(char const*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&)'
/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkObjectFactoryBase.o):
In function `itk::NameIsSharedLibrary(char const*)':
itkObjectFactoryBase.cxx:(.text._ZN3itk19NameIsSharedLibraryEPKc[itk::NameIsSharedLibrary(char
const*)]+0x13): undefined reference to
`itksys::DynamicLoader::LibExtension()'
/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkDirectory.o):
In function `itk::Directory::GetFile(unsigned int)':
itkDirectory.cxx:(.text+0x193): undefined reference to
`itksys::Directory::GetFile(unsigned long) const'
/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkDirectory.o):
In function `itk::Directory::GetNumberOfFiles()':
itkDirectory.cxx:(.text+0x1aa): undefined reference to
`itksys::Directory::GetNumberOfFiles() const'
/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkDirectory.o):
In function `itk::Directory::Load(char const*)':
itkDirectory.cxx:(.text+0x1c7): undefined reference to
`itksys::Directory::Load(char const*)'
/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkDirectory.o):
In function `itk::Directory::PrintSelf(std::basic_ostream<char,
std::char_traits<char> >&, itk::Indent) const':
itkDirectory.cxx:(.text+0x1fa): undefined reference to
`itksys::Directory::GetPath() const'
itkDirectory.cxx:(.text+0x285): undefined reference to
`itksys::Directory::GetNumberOfFiles() const'
itkDirectory.cxx:(.text+0x2a6): undefined reference to
`itksys::Directory::GetFile(unsigned long) const'
/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkDirectory.o):
In function `itk::Directory::~Directory()':
itkDirectory.cxx:(.text+0x313): undefined reference to
`itksys::Directory::~Directory()'
/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkDirectory.o):
In function `itk::Directory::~Directory()':
itkDirectory.cxx:(.text+0x39b): undefined reference to
`itksys::Directory::~Directory()'
/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkDirectory.o):
In function `itk::Directory::~Directory()':
itkDirectory.cxx:(.text+0x423): undefined reference to
`itksys::Directory::~Directory()'
/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkDirectory.o):
In function `itk::Directory::Directory()':
itkDirectory.cxx:(.text+0x4b6): undefined reference to
`itksys::Directory::Directory()'
/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkDirectory.o):
In function `itk::Directory::Directory()':
itkDirectory.cxx:(.text+0x532): undefined reference to
`itksys::Directory::Directory()'
/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkDynamicLoader.o):
In function `itk::DynamicLoader::LastError()':
itkDynamicLoader.cxx:(.text+0x183): undefined reference to
`itksys::DynamicLoader::LastError()'
/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkDynamicLoader.o):
In function `itk::DynamicLoader::LibExtension()':
itkDynamicLoader.cxx:(.text+0x191): undefined reference to
`itksys::DynamicLoader::LibExtension()'
/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkDynamicLoader.o):
In function `itk::DynamicLoader::LibPrefix()':
itkDynamicLoader.cxx:(.text+0x19f): undefined reference to
`itksys::DynamicLoader::LibPrefix()'
/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkDynamicLoader.o):
In function `itk::DynamicLoader::GetSymbolAddress(void*, char
const*)':
itkDynamicLoader.cxx:(.text+0x1ba): undefined reference to
`itksys::DynamicLoader::GetSymbolAddress(void*, char const*)'
/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkDynamicLoader.o):
In function `itk::DynamicLoader::CloseLibrary(void*)':
itkDynamicLoader.cxx:(.text+0x1cd): undefined reference to
`itksys::DynamicLoader::CloseLibrary(void*)'
/home/ixm/Bureau/InsightToolkit-3.8.0/Build/bin/libITKCommon.a(itkDynamicLoader.o):
In function `itk::DynamicLoader::OpenLibrary(char const*)':
itkDynamicLoader.cxx:(.text+0x1e1): undefined reference to
`itksys::DynamicLoader::OpenLibrary(char const*)'
collect2: ld returned 1 exit status
make: *** [project] Error 1
*** Exited with status: 2 ***

I'd say there is a library missing but I've included every .a which
was in my ~/Bureau/InsightToolkit-3.8.0/Build/bin/ directory.

So what am I doing wrong ?

I hope someone will be able to help me :)

Best regards,

Maximilien "ixM" Renard


More information about the Insight-users mailing list