[Insight-users] problems, warnings during compile ITK 1.8 and
ITK 1.8.0 on linux
Luis Ibanez
luis.ibanez at kitware.com
Thu Nov 25 19:36:17 EST 2004
Hi Moacir,
1) The library
VXLNumericsPython.so
should appear in the /bin subdirectory of the binary
directory where you built ITK with wrapping.
It is quite likely that you forgot to add this
directory to the environment variable
PYTHONPATH
as it is recommended in the README file in
Insight/Wrapping/CSwig/README
2) The warnings that you see during the build process
are normal. They indicate that we have wrapped some
classes without wrapping all their superclasses.
We have been working in fixing this by progressively
adding the missing instantiations.
Regards,
Luis
----------------------------------------
moacir wrote:
> Hi all
>
> I like to use ITK under LINUX, so I download the intire version from
> CVS and files at www.itk.org in package .tar.gz.
> I'm using:
> linux mandrake 9.2 (kernel 2.4)
> CableSwig 1.8 (/usr/local/lib/CableSwig)
> Cmake 2.0.1
> ITK 1.8.1 (and 1.8.0)
> GCC 3.3.2
>
> I need to work with python, so build and install CableSwigITK-1.8 and
> set ITK_CSWIG_PYTHON in ccmake. The configure and generate work perfect,
> but when I use "make" command the following warnning (*) appear with NO
> errors, so I did the "make install" command(as root) .In the python
> prompt I tried to import InsightToolkit module and the follow error
> appears (**):
>
> (**)Python shell:
> >>> from InsightToolkit import *
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/local/lib/InsightToolkit/python/InsightToolkit.py",
> line 1, in ?
> from itkalgorithms import *
> File "/usr/local/lib/InsightToolkit/python/itkalgorithms.py",
> line 1, in ?
> from itkbasicfilters import *
> File "/usr/local/lib/InsightToolkit/python/itkbasicfilters.py",
> line 1, in ?
> from itkcommon import *
> File "/usr/local/lib/InsightToolkit/python/itkcommon.py", line 1,
> in ?
> from vxlnumerics import *
> File "/usr/local/lib/InsightToolkit/python/vxlnumerics.py", line
> 4, in ?
> from VXLNumericsPython import *
> ImportError: No module named VXLNumericsPython
>
> (*)warnings:
> Building wrap_IOBasePython.cxx from
> /home/compilacao_CVS/InsightToolkit-1.8.1_bin/Wrapping/CSwig/IO/wrap_IOBasePython.cxx...
>
> Warning itk::DicomImageIOFactory
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped: itk::ObjectFactoryBase
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Warning itk::MetaImageIOFactory
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped: itk::ObjectFactoryBase
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Warning itk::PNGImageIOFactory
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped: itk::ObjectFactoryBase
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Building wrap_itkDemonsRegistrationFilterPython.cxx from
> /home/compilacao_CVS/InsightToolkit-1.8.1_bin/Wrapping/CSwig/Algorithms/wrap_itkDemonsRegistrationFilterPython.cxx...
>
> Warning itk::FiniteDifferenceImageFilter<itk::Image<itk::Vector<float,
> 2>, 2>,itk::Image<itk::Vector<float, 2>, 2> >
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped:
> itk::InPlaceImageFilter<(itk::Image<(itk::Vector<(float,2)>,2)>,itk::Image<(itk::Vector<(float,2)>,2)>)>
>
> Wrapped:
> itk::ImageToImageFilter<(itk::Image<(itk::Vector<(float,2)>,2)>,itk::Image<(itk::Vector<(float,2)>,2)>)>
>
> Wrapped: itk::ImageSource<(itk::Image<(itk::Vector<(float,2)>,2)>)>
> Wrapped: itk::ProcessObject
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Warning
> itk::DenseFiniteDifferenceImageFilter<itk::Image<itk::Vector<float, 2>,
> 2>,itk::Image<itk::Vector<float, 2>, 2> >
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped:
> itk::FiniteDifferenceImageFilter<(itk::Image<(itk::Vector<(float,2)>,2)>,itk::Image<(itk::Vector<(float,2)>,2)>)>
>
> Not wrapped:
> itk::InPlaceImageFilter<(itk::Image<(itk::Vector<(float,2)>,2)>,itk::Image<(itk::Vector<(float,2)>,2)>)>
>
> Wrapped:
> itk::ImageToImageFilter<(itk::Image<(itk::Vector<(float,2)>,2)>,itk::Image<(itk::Vector<(float,2)>,2)>)>
>
> Wrapped: itk::ImageSource<(itk::Image<(itk::Vector<(float,2)>,2)>)>
> Wrapped: itk::ProcessObject
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Warning itk::PDEDeformableRegistrationFilter<itk::Image<short unsigned
> int, 2>,itk::Image<short unsigned int, 2>,itk::Image<itk::Vector<float,
> 2>, 2> >
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped:
> itk::DenseFiniteDifferenceImageFilter<(itk::Image<(itk::Vector<(float,2)>,2)>,itk::Image<(itk::Vector<(float,2)>,2)>)>
>
> Not wrapped:
> itk::FiniteDifferenceImageFilter<(itk::Image<(itk::Vector<(float,2)>,2)>,itk::Image<(itk::Vector<(float,2)>,2)>)>
>
> Not wrapped:
> itk::InPlaceImageFilter<(itk::Image<(itk::Vector<(float,2)>,2)>,itk::Image<(itk::Vector<(float,2)>,2)>)>
>
> Wrapped:
> itk::ImageToImageFilter<(itk::Image<(itk::Vector<(float,2)>,2)>,itk::Image<(itk::Vector<(float,2)>,2)>)>
>
> Wrapped: itk::ImageSource<(itk::Image<(itk::Vector<(float,2)>,2)>)>
> Wrapped: itk::ProcessObject
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Warning itk::InPlaceImageFilter<itk::Image<itk::Vector<float, 3>,
> 3>,itk::Image<itk::Vector<float, 3>, 3> >
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped:
> itk::ImageToImageFilter<(itk::Image<(itk::Vector<(float,3)>,3)>,itk::Image<(itk::Vector<(float,3)>,3)>)>
>
> Wrapped: itk::ImageSource<(itk::Image<(itk::Vector<(float,3)>,3)>)>
> Wrapped: itk::ProcessObject
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Warning itk::FiniteDifferenceImageFilter<itk::Image<itk::Vector<float,
> 3>, 3>,itk::Image<itk::Vector<float, 3>, 3> >
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped:
> itk::InPlaceImageFilter<(itk::Image<(itk::Vector<(float,3)>,3)>,itk::Image<(itk::Vector<(float,3)>,3)>)>
>
> Not wrapped:
> itk::ImageToImageFilter<(itk::Image<(itk::Vector<(float,3)>,3)>,itk::Image<(itk::Vector<(float,3)>,3)>)>
>
> Wrapped: itk::ImageSource<(itk::Image<(itk::Vector<(float,3)>,3)>)>
> Wrapped: itk::ProcessObject
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Warning
> itk::DenseFiniteDifferenceImageFilter<itk::Image<itk::Vector<float, 3>,
> 3>,itk::Image<itk::Vector<float, 3>, 3> >
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped:
> itk::FiniteDifferenceImageFilter<(itk::Image<(itk::Vector<(float,3)>,3)>,itk::Image<(itk::Vector<(float,3)>,3)>)>
>
> Not wrapped:
> itk::InPlaceImageFilter<(itk::Image<(itk::Vector<(float,3)>,3)>,itk::Image<(itk::Vector<(float,3)>,3)>)>
>
> Not wrapped:
> itk::ImageToImageFilter<(itk::Image<(itk::Vector<(float,3)>,3)>,itk::Image<(itk::Vector<(float,3)>,3)>)>
>
> Wrapped: itk::ImageSource<(itk::Image<(itk::Vector<(float,3)>,3)>)>
> Wrapped: itk::ProcessObject
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Warning itk::PDEDeformableRegistrationFilter<itk::Image<short unsigned
> int, 3>,itk::Image<short unsigned int, 3>,itk::Image<itk::Vector<float,
> 3>, 3> >
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped:
> itk::DenseFiniteDifferenceImageFilter<(itk::Image<(itk::Vector<(float,3)>,3)>,itk::Image<(itk::Vector<(float,3)>,3)>)>
>
> Not wrapped:
> itk::FiniteDifferenceImageFilter<(itk::Image<(itk::Vector<(float,3)>,3)>,itk::Image<(itk::Vector<(float,3)>,3)>)>
>
> Not wrapped:
> itk::InPlaceImageFilter<(itk::Image<(itk::Vector<(float,3)>,3)>,itk::Image<(itk::Vector<(float,3)>,3)>)>
>
> Not wrapped:
> itk::ImageToImageFilter<(itk::Image<(itk::Vector<(float,3)>,3)>,itk::Image<(itk::Vector<(float,3)>,3)>)>
>
> Wrapped: itk::ImageSource<(itk::Image<(itk::Vector<(float,3)>,3)>)>
> Wrapped: itk::ProcessObject
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Warning itk::PDEDeformableRegistrationFilter<itk::Image<float,
> 3>,itk::Image<float, 3>,itk::Image<itk::Vector<float, 3>, 3> >
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped:
> itk::DenseFiniteDifferenceImageFilter<(itk::Image<(itk::Vector<(float,3)>,3)>,itk::Image<(itk::Vector<(float,3)>,3)>)>
>
> Not wrapped:
> itk::FiniteDifferenceImageFilter<(itk::Image<(itk::Vector<(float,3)>,3)>,itk::Image<(itk::Vector<(float,3)>,3)>)>
>
> Not wrapped:
> itk::InPlaceImageFilter<(itk::Image<(itk::Vector<(float,3)>,3)>,itk::Image<(itk::Vector<(float,3)>,3)>)>
>
> Not wrapped:
> itk::ImageToImageFilter<(itk::Image<(itk::Vector<(float,3)>,3)>,itk::Image<(itk::Vector<(float,3)>,3)>)>
>
> Wrapped: itk::ImageSource<(itk::Image<(itk::Vector<(float,3)>,3)>)>
> Wrapped: itk::ProcessObject
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Warning itk::PDEDeformableRegistrationFilter<itk::Image<float,
> 2>,itk::Image<float, 2>,itk::Image<itk::Vector<float, 2>, 2> >
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped:
> itk::DenseFiniteDifferenceImageFilter<(itk::Image<(itk::Vector<(float,2)>,2)>,itk::Image<(itk::Vector<(float,2)>,2)>)>
>
> Not wrapped:
> itk::FiniteDifferenceImageFilter<(itk::Image<(itk::Vector<(float,2)>,2)>,itk::Image<(itk::Vector<(float,2)>,2)>)>
>
> Not wrapped:
> itk::InPlaceImageFilter<(itk::Image<(itk::Vector<(float,2)>,2)>,itk::Image<(itk::Vector<(float,2)>,2)>)>
>
> Wrapped:
> itk::ImageToImageFilter<(itk::Image<(itk::Vector<(float,2)>,2)>,itk::Image<(itk::Vector<(float,2)>,2)>)>
>
> Wrapped: itk::ImageSource<(itk::Image<(itk::Vector<(float,2)>,2)>)>
> Wrapped: itk::ProcessObject
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Building wrap_itkHistogramMatchingImageFilterPython.cxx from
> /home/compilacao_CVS/InsightToolkit-1.8.1_bin/Wrapping/CSwig/Algorithms/wrap_itkHistogramMatchingImageFilterPython.cxx...
>
> Building wrap_itkImageRegistrationMethodPython.cxx from
> /home/compilacao_CVS/InsightToolkit-1.8.1_bin/Wrapping/CSwig/Algorithms/wrap_itkImageRegistrationMethodPython.cxx...
>
> Warning itk::SpatialObjectTreeNode<3>
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped: itk::TreeNode<(itk::SpatialObject<(3)>*)>
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Warning itk::SpatialObjectTreeNode<2>
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped: itk::TreeNode<(itk::SpatialObject<(2)>*)>
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Building wrap_itkImageToImageMetricPython.cxx from
> /home/compilacao_CVS/InsightToolkit-1.8.1_bin/Wrapping/CSwig/Algorithms/wrap_itkImageToImageMetricPython.cxx...
>
> Warning itk::SpatialObjectTreeNode<3>
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped: itk::TreeNode<(itk::SpatialObject<(3)>*)>
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Warning itk::SpatialObjectTreeNode<2>
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped: itk::TreeNode<(itk::SpatialObject<(2)>*)>
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Building wrap_itkMattesMutualInformationImageToImageMetricPython.cxx
> from
> /home/compilacao_CVS/InsightToolkit-1.8.1_bin/Wrapping/CSwig/Algorithms/wrap_itkMattesMutualInformationImageToImageMetricPython.cxx...
>
> Warning itk::SpatialObjectTreeNode<2>
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped: itk::TreeNode<(itk::SpatialObject<(2)>*)>
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Warning itk::SpatialObjectTreeNode<3>
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped: itk::TreeNode<(itk::SpatialObject<(3)>*)>
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Building wrap_itkMeanSquaresImageToImageMetricPython.cxx from
> /home/compilacao_CVS/InsightToolkit-1.8.1_bin/Wrapping/CSwig/Algorithms/wrap_itkMeanSquaresImageToImageMetricPython.cxx...
>
> Warning itk::SpatialObjectTreeNode<3>
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped: itk::TreeNode<(itk::SpatialObject<(3)>*)>
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Warning itk::SpatialObjectTreeNode<2>
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped: itk::TreeNode<(itk::SpatialObject<(2)>*)>
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Building wrap_itkMinMaxCurvatureFlowImageFilterPython.cxx from
> /home/compilacao_CVS/InsightToolkit-1.8.1_bin/Wrapping/CSwig/Algorithms/wrap_itkMinMaxCurvatureFlowImageFilterPython.cxx...
>
> Building wrap_itkMutualInformationImageToImageMetricPython.cxx from
> /home/compilacao_CVS/InsightToolkit-1.8.1_bin/Wrapping/CSwig/Algorithms/wrap_itkMutualInformationImageToImageMetricPython.cxx...
>
> Warning itk::SpatialObjectTreeNode<3>
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped: itk::TreeNode<(itk::SpatialObject<(3)>*)>
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Warning itk::SpatialObjectTreeNode<2>
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped: itk::TreeNode<(itk::SpatialObject<(2)>*)>
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Building wrap_itkMultiResolutionImageRegistrationMethodPython.cxx from
> /home/compilacao_CVS/InsightToolkit-1.8.1_bin/Wrapping/CSwig/Algorithms/wrap_itkMultiResolutionImageRegistrationMethodPython.cxx...
>
> Warning itk::SpatialObjectTreeNode<3>
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped: itk::TreeNode<(itk::SpatialObject<(3)>*)>
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Warning itk::SpatialObjectTreeNode<2>
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped: itk::TreeNode<(itk::SpatialObject<(2)>*)>
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Building wrap_itkNormalizedCorrelationImageToImageMetricPython.cxx from
> /home/compilacao_CVS/InsightToolkit-1.8.1_bin/Wrapping/CSwig/Algorithms/wrap_itkNormalizedCorrelationImageToImageMetricPython.cxx...
>
> Warning itk::SpatialObjectTreeNode<3>
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped: itk::TreeNode<(itk::SpatialObject<(3)>*)>
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Warning itk::SpatialObjectTreeNode<2>
> has a class hierarchy that has wrapping gaps.
> The class hierarchy wrapping is as follows:
> Not wrapped: itk::TreeNode<(itk::SpatialObject<(2)>*)>
> Wrapped: itk::Object
> Wrapped: itk::LightObject
>
> Building wrap_itkOtsuThresholdImageCalculatorPython.cxx from
> /home/compilacao_CVS/InsightToolkit-1.8.1_bin/Wrapping/CSwig/Algorithms/wrap_itkOtsuThresholdImageCalculatorPython.cxx...
>
> Building
> wrap_itkMeanReciprocalSquareDifferenceImageToImageMetricPython.cxx from
> /home/compilacao_CVS/InsightToolkit-1.8.1_bin/Wrapping/CSwig/Algorithms/wrap_itkMeanReciprocalSquareDifferenceImageToImageMetricPython.cxx...
> \....
....
more
....
More information about the Insight-users
mailing list