[vtkusers] connecting vtk and itk on os x

Will Woods will.woods at ynic.york.ac.uk
Wed Jul 20 05:44:07 EDT 2005


Thanks for the info. I see it is also trying to link against 
-lvtkFilteringPythonD so a quick symbolic link *appears* to fix the 
problem. Any idea what the 'D' version of the libraries are for (there 
are quite a lot of them)? Unfortunately I'm now having another 
(related?) problem (see below) with Undefined symbols...

Will



/usr/bin/g++ -dynamiclib      -o libvtkVTKITKCommonTCL.dylib 
vtkVTKITKCommonTCLInit.o vtkITKAntiAliasBinaryImageFilterTcl.o 
vtkITKBilateralImageFilterTcl.o 
vtkITKConfidenceConnectedImageFilterTcl.o 
vtkITKConnectedThresholdImageFilterTcl.o 
vtkITKCurvatureAnisotropicDiffusionImageFilterTcl.o 
vtkITKCurvatureAnisotropicDiffusionImageFilterSSTcl.o 
vtkITKDanielssonDistanceMapImageFilterTcl.o 
vtkITKDiscreteGaussianImageFilterTcl.o 
vtkITKGradientAnisotropicDiffusionImageFilterTcl.o 
vtkITKGradientMagnitudeImageFilterTcl.o 
vtkITKGrayscaleFillholeImageFilterTcl.o vtkITKImageToImageFilterTcl.o 
vtkITKImageToImageFilter2DFFTcl.o vtkITKImageToImageFilterFFTcl.o 
vtkITKImageToImageFilterFULTcl.o vtkITKImageToImageFilterULULTcl.o 
vtkITKImageToImageFilterSFTcl.o vtkITKImageToImageFilterSULTcl.o 
vtkITKImageToImageFilterUSULTcl.o vtkITKImageToImageFilterUSUSTcl.o 
vtkITKImageToImageFilterSSTcl.o vtkITKIsolatedConnectedImageFilterTcl.o 
vtkITKLaplacianSegmentationLevelSetImageFilterTcl.o 
vtkITKMutualInformationTransformTcl.o 
vtkITKNeighborhoodConnectedImageFilterTcl.o 
vtkITKNormalizeImageFilterSFTcl.o vtkITKNormalizeImageFilterTcl.o 
vtkITKOtsuThresholdImageFilterTcl.o 
vtkITKPDEDeformableRegistrationFilterTcl.o 
vtkITKStatisticsImageFilterULULTcl.o 
vtkITKSmoothingRecursiveGaussianImageFilterSSTcl.o 
vtkITKGradientMagnitudeRecursiveGaussianImageFilterSSTcl.o 
vtkITKGradientMagnitudeRecursiveGaussianImageFilterFFTcl.o 
vtkITKThresholdSegmentationLevelSetImageFilterTcl.o 
vtkITKTobogganImageFilterTcl.o vtkITKWatershedImageFilterTcl.o 
vtkITKWatershedImageFilterSULTcl.o 
vtkITKRelabelComponentImageFilterTcl.o 
vtkITKArchetypeImageSeriesReaderTcl.o   -L/usr/local/lib/InsightToolkit 
-L/usr/local/lib/vtk -lITKAlgorithms -lITKCommon -lITKBasicFilters 
-lvtkFilteringTCL -lvtkCommonTCL -lITKNumerics -lITKCommon -litkvnl_inst 
-litkvnl_algo -litkvnl -litkvcl -litknetlib -litksys -lvtkFiltering 
-lvtkCommon -framework AppKit -lpthread -lm -framework Tcl -lm  -lgcc
ld: Undefined symbols:
vtkImageCast::New()
vtkImageExport::GetCallbackUserData()
vtkImageExport::New()
vtkImageImport::New()
vtkImageExport::GetOriginCallback() const
vtkImageExport::GetSpacingCallback() const
vtkImageExport::GetDataExtentCallback() const
vtkImageExport::GetScalarTypeCallback() const
vtkImageExport::GetUpdateDataCallback() const
vtkImageExport::GetWholeExtentCallback() const
vtkImageExport::GetBufferPointerCallback() const
vtkImageExport::GetPipelineModifiedCallback() const
vtkImageExport::GetUpdateInformationCallback() const
vtkImageExport::GetNumberOfComponentsCallback() const
vtkImageExport::GetPropagateUpdateExtentCallback() const
vtkImageExport::GetInput()
vtkITKMutualInformationTransform::Initialize(vtkLinearTransform*)
vtkITKMutualInformationTransform::SetSourceImage(vtkImageData*)
vtkITKMutualInformationTransform::SetTargetImage(vtkImageData*)
vtkITKMutualInformationTransform::SetFixedImageExtent(int, int, int, 
int, int, int)
vtkITKMutualInformationTransform::New()
vtkITKMutualInformationTransform::Identity()
vtkImageImport::CopyImportVoidPoint/usr/bin/libtool: internal link edit 
command failed
er(void*, int)
vtkITKArchetypeImageSeriesReader::New()
make[5]: *** [libvtkVTKITKCommonTCL.dylib] Error 1
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_Common] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_vtkITK] Error 2
make: *** [default_target] Error 2


Martin Costabel wrote:

 > Just a small observation:
 >
 > Will Woods wrote:
 > []
 >
 >> point at which it crashes, complaining that it 'can't locate file 
for: -lvtkFilteringPython' which I don't understand because the file 
appears to exist:
 >>
 >> /usr/local/lib/vtk/libvtkFilteringPython.so
 >> /usr/local/lib/vtk/libvtkFilteringPythonD.dylib
 >
 >
 >
 > No it doesn't exist. "-lvtkFilteringPython" resolves to either 
vtkFilteringPython.a or vtkFilteringPython.dylib, but not to 
vtkFilteringPython.so. You don't want the *.so on the linker line, it 
doesn't export any useful symbols. The *.so is the runtime module.
 >



More information about the vtkusers mailing list