[Insight-developers] building insightapplications fails on Debian

Michal Suchanek hramrach at centrum.cz
Sun Oct 31 04:50:13 EDT 2010


Hello

I have an issue with building insightapplications-3.20.

The problem is that Debian installs the ITK Python libraries in the
standard location and probably does not update the cmake files for the
python wrappings to point there.

Further some parts of the insightapplications build do not honor
CMAKE_MODULE_LINKER_FLAGS not CMAKE_EXE_LINKER_FLAGS and fail to link.

CMAKE_EXE_LINKER_FLAGS:STRING=-L/usr/lib/pyshared/python2.6/vtk/
CMAKE_MODULE_LINKER_FLAGS:STRING=-L/usr/lib/pyshared/python2.6/vtk/

/usr/lib/pyshared/python2.6/vtk/libvtkFilteringPython.so: ELF 64-bit
LSB shared object, x86-64, version 1 (SYSV), dynamically linked,
stripped


Linking CXX shared library ../../VolviewPlugIns/bin/libvtkVTKITKCommonPython.so
cd /scratch/itk/insightapplications-3.20.0/Build/vtkITK/Common &&
/usr/bin/cmake -E cmake_link_script
CMakeFiles/vtkVTKITKCommonPython.dir/link.txt --verbose=1
/usr/bin/c++  -fPIC -g -O2  -ftemplate-depth-50 -Wall -Wno-deprecated
-Wno-deprecated -Wno-cast-qual -Wno-unused    -shared
-Wl,-soname,libvtkVTKITKCommonPython.so -o
../../VolviewPlugIns/bin/libvtkVTKITKCommonPython.so
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKAntiAliasBinaryImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKBilateralImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKConfidenceConnectedImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKConnectedThresholdImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKCurvatureAnisotropicDiffusionImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKCurvatureAnisotropicDiffusionImageFilterSFPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKDanielssonDistanceMapImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKDiscreteGaussianImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKGradientAnisotropicDiffusionImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKGradientMagnitudeImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKGrayscaleFillholeImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKImageToImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKImageToImageFilter2DFFPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKImageToImageFilterFFPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKImageToImageFilterFULPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKImageToImageFilterULULPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKImageToImageFilterSFPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKImageToImageFilterSULPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKImageToImageFilterUSULPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKImageToImageFilterUSUSPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKImageToImageFilterSSPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKIsolatedConnectedImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKLaplacianSegmentationLevelSetImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKMutualInformationTransformPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKNeighborhoodConnectedImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKNormalizeImageFilterSFPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKNormalizeImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKOtsuThresholdImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKPDEDeformableRegistrationFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKStatisticsImageFilterULULPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKSmoothingRecursiveGaussianImageFilterSSPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKGradientMagnitudeRecursiveGaussianImageFilterSSPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKGradientMagnitudeRecursiveGaussianImageFilterFFPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKThresholdSegmentationLevelSetImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKTobogganImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKWatershedImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKWatershedImageFilterSULPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKRelabelComponentImageFilterPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkITKArchetypeImageSeriesReaderPython.o
CMakeFiles/vtkVTKITKCommonPython.dir/vtkVTKITKCommonPythonInit.o
-L/usr/lib/InsightToolkit -L/usr/lib/vtk-5.6 -lITKAlgorithms
-lITKCommon -lITKBasicFilters
../../VolviewPlugIns/bin/libvtkVTKITKCommon.a -lvtkFilteringPython
-lvtkCommonPython -lITKAlgorithms -lITKStatistics -litkNetlibSlatec
-lfftw3 -lfftw3_threads -lfftw3f -lfftw3f_threads -lITKBasicFilters
-lITKNumerics -lvtkImaging -lITKIO -lITKNrrdIO
/usr/lib/libgdcmMSFF.so.2.0.16 /usr/lib/libgdcmDICT.so.2.0.16
/usr/lib/libgdcmIOD.so.2.0.16 /usr/lib/libgdcmDSED.so.2.0.16
/usr/lib/libgdcmCommon.so.2.0.16 -litkjpeg8 -lpng -ltiff
-lITKSpatialObject -lITKCommon -litkvnl_inst -litkvnl_algo
-litkv3p_netlib -litkvnl -litkvcl -litkv3p_lsqr -lm -lITKMetaIO
-litksys -lITKDICOMParser -lITKEXPAT -lITKniftiio -lITKznz -lz
-lvtkFilteringPythonD -lvtkFiltering -lvtkCommonPythonD -lvtkCommon
-lpthread -lm -lvtksys -ldl
-Wl,-rpath,/usr/lib/InsightToolkit:/usr/lib/vtk-5.6:
/usr/bin/ld: cannot find -lvtkFilteringPython
collect2: ld returned 1 exit status
make[2]: *** [VolviewPlugIns/bin/libvtkVTKITKCommonPython.so] Error 1


More information about the Insight-developers mailing list