[Insight-users] ITK, Java wrapping, problem when building

Grzegorz Toporek top.grzechu at gmail.com
Sat Nov 27 05:53:21 EST 2010


Dear all,

I have been using VTK in Java successively and now I am trying to build ITK
Java wrappers as well.

The problem is I can not build wrappers for Java.

I am using Ubuntu 10.04 (lucid), g++ version 4.4.3, java JDK 6, Cmake
version 2.8.3, SWING version 1.3.21, CableSwing from cvs, ITK from git
(probably 3.20 but do not know where to find that).

When building wrappers I got following error. It looks like there is no
namespace defined?!

Please help me with this issue as I don not know CableSwing well. Looking
forward to your reply.

Best regards,
Grzegorz

Linking CXX shared module ../../../bin/libVXLNumericsJava.so
[ 59%] Built target VXLNumericsJava
[ 59%] wrap_itkContinuousIndexJava.cxx from
[ 59%] wrap_itkDenseFiniteDifferenceImageFilter_2DJava.cxx from
[ 59%] wrap_itkDenseFiniteDifferenceImageFilter_3DJava.cxx from
[ 59%] wrap_itkDifferenceImageFilterJava.cxx from
[ 59%] wrap_itkEventObjectJava.cxx from
[ 59%] wrap_itkFiniteDifferenceFunctionJava.cxx from
[ 59%] wrap_itkFiniteDifferenceImageFilter_2DJava.cxx from
[ 59%] wrap_itkFiniteDifferenceImageFilter_3DJava.cxx from
[ 59%] wrap_itkFixedArrayJava.cxx from
[ 59%] wrap_itkFunctionBaseJava.cxx from
[ 59%] wrap_itkImage_2DJava.cxx from
[ 59%] wrap_itkImage_3DJava.cxx from
[ 59%] wrap_itkImageFunctionJava.cxx from
[ 59%] wrap_itkImageConstIteratorJava.cxx from
[ 59%] wrap_itkImageRegionIteratorJava.cxx from
[ 59%] wrap_itkImageRegionConstIteratorJava.cxx from
[ 59%] wrap_itkImageSourceJava.cxx from
[ 59%] wrap_itkImageToImageFilter_2DJava.cxx from
[ 59%] wrap_itkImageToImageFilter_3DJava.cxx from
[ 59%] wrap_itkInPlaceImageFilter_AJava.cxx from
[ 59%] wrap_itkInPlaceImageFilter_BJava.cxx from
[ 59%] wrap_itkIndexJava.cxx from
[ 60%] wrap_itkLevelSetJava.cxx from
[ 60%] wrap_itkNeighborhoodJava.cxx from
[ 60%] wrap_itkPointJava.cxx from
[ 60%] wrap_itkSizeJava.cxx from
[ 60%] wrap_itkVectorJava.cxx from
[ 60%] wrap_ITKCommonAJavaJava.cxx from
create swig package ITKCommonAJava
  init module: ITKCommonBase
  init module: ITKInterpolators
  init module: ITKRegions
  init module: itkArray
  init module: itkBinaryBallStructuringElement
  init module: itkContinuousIndex
  init module: itkDifferenceImageFilter
  init module: itkDenseFiniteDifferenceImageFilter_2D
  init module: itkDenseFiniteDifferenceImageFilter_3D
  init module: itkEventObjectGroup
  init module: itkFiniteDifferenceFunction
  init module: itkFiniteDifferenceImageFilter_2D
  init module: itkFiniteDifferenceImageFilter_3D
  init module: itkFixedArray
  init module: itkFunctionBase
  init module: itkImage_2D
  init module: itkImage_3D
  init module: itkImageSource
  init module: itkImageConstIterator
  init module: itkImageRegionIterator
  init module: itkImageRegionConstIterator
  init module: itkImageFunction
  init module: itkImageToImageFilter_2D
  init module: itkImageToImageFilter_3D
  init module: itkInPlaceImageFilter_A
  init module: itkInPlaceImageFilter_B
  init module: itkIndex
  init module: itkLevelSet
  init module: itkNeighborhood
  init module: itkPoint
  init module: itkSize
  init module: SwigExtras
  init module: itkVector
[ 60%] Building CXX object
Wrapping/CSwig/CommonA/CMakeFiles/ITKCommonAJava.dir/wrap_itkBinaryBallStructuringElementJava.cxx.o
/home/grzesiek/ITK-box/bin/Wrapping/CSwig/CommonA/wrap_itkBinaryBallStructuringElementJava.cxx:
In function ‘jlong
Java_InsightToolkit_itkBinaryBallStructuringElementJNI_new_1itkBinaryBallStructuringElementUC3_1_1SWIG_10(JNIEnv*,
_jclass*, jlong)’:
/home/grzesiek/ITK-box/bin/Wrapping/CSwig/CommonA/wrap_itkBinaryBallStructuringElementJava.cxx:157:
error: ‘itk’ has not been declared
/home/grzesiek/ITK-box/bin/Wrapping/CSwig/CommonA/wrap_itkBinaryBallStructuringElementJava.cxx:157:
error: expected primary-expression before ‘unsigned’
/home/grzesiek/ITK-box/bin/Wrapping/CSwig/CommonA/wrap_itkBinaryBallStructuringElementJava.cxx:157:
error: expected ‘;’ before ‘unsigned’
/home/grzesiek/ITK-box/bin/Wrapping/CSwig/CommonA/wrap_itkBinaryBallStructuringElementJava.cxx:158:
error: ‘itk’ has not been declared
/home/grzesiek/ITK-box/bin/Wrapping/CSwig/CommonA/wrap_itkBinaryBallStructuringElementJava.cxx:158:
error: expected primary-expression before ‘unsigned’
/home/grzesiek/ITK-box/bin/Wrapping/CSwig/CommonA/wrap_itkBinaryBallStructuringElementJava.cxx:158:
error: expected ‘;’ before ‘unsigned’
/home/grzesiek/ITK-box/bin/Wrapping/CSwig/CommonA/wrap_itkBinaryBallStructuringElementJava.cxx:162:
error: ‘arg1’ was not declared in this scope
/home/grzesiek/ITK-box/bin/Wrapping/CSwig/CommonA/wrap_itkBinaryBallStructuringElementJava.cxx:162:
error: ‘itk’ has not been declared
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20101127/658ba37a/attachment.htm>


More information about the Insight-users mailing list