[Insight-developers] Compilation error with VTK_GLUE ON

Kishore Mosaliganti kishoreraom at gmail.com
Thu Aug 22 15:03:34 EDT 2013


Hi all,

When I compile ITK master with VTK_GLUE turned ON, I get the following
error:

Linking CXX executable ../../../bin/ITKVtkGlueHeaderTest1
CMakeFiles/ITKVtkGlueHeaderTest1.dir/test/ITKVtkGlueHeaderTest1.cxx.o: In
function `vtkIOImage_AutoInit::~vtkIOImage_AutoInit()':
ITKVtkGlueHeaderTest1.cxx:(.text._ZN19vtkIOImage_AutoInitD2Ev[_ZN19vtkIOImage_AutoInitD5Ev]+0x1):
undefined reference to `vtkIOMPIImage_AutoInit_Destruct()'
CMakeFiles/ITKVtkGlueHeaderTest1.dir/test/ITKVtkGlueHeaderTest1.cxx.o: In
function `_GLOBAL__sub_I_main':
ITKVtkGlueHeaderTest1.cxx:(.text.startup+0x38): undefined reference to
`vtkDebugLeaksManager::vtkDebugLeaksManager()'
ITKVtkGlueHeaderTest1.cxx:(.text.startup+0x47): undefined reference to
`vtkDebugLeaksManager::~vtkDebugLeaksManager()'
ITKVtkGlueHeaderTest1.cxx:(.text.startup+0x51): undefined reference to
`vtkIOMPIImage_AutoInit_Construct()'
collect2: ld returned 1 exit status
make[2]: *** [bin/ITKVtkGlueHeaderTest1] Error 1
make[1]: ***
[Modules/Bridge/VtkGlue/CMakeFiles/ITKVtkGlueHeaderTest1.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....


I am using Ubuntu 64-bit, gcc 4.6.3, cmake 2.8.7, with VTK compiled and
pointed to correctly. The VTK directory is also correctly set in the
CMakeCache file. This error was previously reported by someone else here:
http://itk-users.7.n7.nabble.com/Problem-with-Building-ITK-with-Module-ItkVtkGlue-ON-td30777.html


Kishore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-developers/attachments/20130822/b4675eb4/attachment.htm>


More information about the Insight-developers mailing list