Dear all,<br><br>I have been using VTK in Java successively and now I am trying to build ITK Java wrappers as well. <br><br>The problem is I can not build wrappers for Java.<br><br>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). <br>
<br>When building wrappers I got following error. It looks like there is no namespace defined?!<br><br>Please help me with this issue as I don not know CableSwing well. Looking forward to your reply.<br><br>Best regards,<br>
Grzegorz<br><br>Linking CXX shared module ../../../bin/libVXLNumericsJava.so<br>[ 59%] Built target VXLNumericsJava<br>[ 59%] wrap_itkContinuousIndexJava.cxx from <br>[ 59%] wrap_itkDenseFiniteDifferenceImageFilter_2DJava.cxx from <br>
[ 59%] wrap_itkDenseFiniteDifferenceImageFilter_3DJava.cxx from <br>[ 59%] wrap_itkDifferenceImageFilterJava.cxx from <br>[ 59%] wrap_itkEventObjectJava.cxx from <br>[ 59%] wrap_itkFiniteDifferenceFunctionJava.cxx from <br>
[ 59%] wrap_itkFiniteDifferenceImageFilter_2DJava.cxx from <br>[ 59%] wrap_itkFiniteDifferenceImageFilter_3DJava.cxx from <br>[ 59%] wrap_itkFixedArrayJava.cxx from <br>[ 59%] wrap_itkFunctionBaseJava.cxx from <br>[ 59%] wrap_itkImage_2DJava.cxx from <br>
[ 59%] wrap_itkImage_3DJava.cxx from <br>[ 59%] wrap_itkImageFunctionJava.cxx from <br>[ 59%] wrap_itkImageConstIteratorJava.cxx from <br>[ 59%] wrap_itkImageRegionIteratorJava.cxx from <br>[ 59%] wrap_itkImageRegionConstIteratorJava.cxx from <br>
[ 59%] wrap_itkImageSourceJava.cxx from <br>[ 59%] wrap_itkImageToImageFilter_2DJava.cxx from <br>[ 59%] wrap_itkImageToImageFilter_3DJava.cxx from <br>[ 59%] wrap_itkInPlaceImageFilter_AJava.cxx from <br>[ 59%] wrap_itkInPlaceImageFilter_BJava.cxx from <br>
[ 59%] wrap_itkIndexJava.cxx from <br>[ 60%] wrap_itkLevelSetJava.cxx from <br>[ 60%] wrap_itkNeighborhoodJava.cxx from <br>[ 60%] wrap_itkPointJava.cxx from <br>[ 60%] wrap_itkSizeJava.cxx from <br>[ 60%] wrap_itkVectorJava.cxx from <br>
[ 60%] wrap_ITKCommonAJavaJava.cxx from <br>create swig package ITKCommonAJava<br> init module: ITKCommonBase<br> init module: ITKInterpolators<br> init module: ITKRegions<br> init module: itkArray<br> init module: itkBinaryBallStructuringElement<br>
init module: itkContinuousIndex<br> init module: itkDifferenceImageFilter<br> init module: itkDenseFiniteDifferenceImageFilter_2D<br> init module: itkDenseFiniteDifferenceImageFilter_3D<br> init module: itkEventObjectGroup<br>
init module: itkFiniteDifferenceFunction<br> init module: itkFiniteDifferenceImageFilter_2D<br> init module: itkFiniteDifferenceImageFilter_3D<br> init module: itkFixedArray<br> init module: itkFunctionBase<br> init module: itkImage_2D<br>
init module: itkImage_3D<br> init module: itkImageSource<br> init module: itkImageConstIterator<br> init module: itkImageRegionIterator<br> init module: itkImageRegionConstIterator<br> init module: itkImageFunction<br>
init module: itkImageToImageFilter_2D<br> init module: itkImageToImageFilter_3D<br> init module: itkInPlaceImageFilter_A<br> init module: itkInPlaceImageFilter_B<br> init module: itkIndex<br> init module: itkLevelSet<br>
init module: itkNeighborhood<br> init module: itkPoint<br> init module: itkSize<br> init module: SwigExtras<br> init module: itkVector<br>[ 60%] Building CXX object Wrapping/CSwig/CommonA/CMakeFiles/ITKCommonAJava.dir/wrap_itkBinaryBallStructuringElementJava.cxx.o<br>
/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)’:<br>
/home/grzesiek/ITK-box/bin/Wrapping/CSwig/CommonA/wrap_itkBinaryBallStructuringElementJava.cxx:157: error: ‘itk’ has not been declared<br>/home/grzesiek/ITK-box/bin/Wrapping/CSwig/CommonA/wrap_itkBinaryBallStructuringElementJava.cxx:157: error: expected primary-expression before ‘unsigned’<br>
/home/grzesiek/ITK-box/bin/Wrapping/CSwig/CommonA/wrap_itkBinaryBallStructuringElementJava.cxx:157: error: expected ‘;’ before ‘unsigned’<br>/home/grzesiek/ITK-box/bin/Wrapping/CSwig/CommonA/wrap_itkBinaryBallStructuringElementJava.cxx:158: error: ‘itk’ has not been declared<br>
/home/grzesiek/ITK-box/bin/Wrapping/CSwig/CommonA/wrap_itkBinaryBallStructuringElementJava.cxx:158: error: expected primary-expression before ‘unsigned’<br>/home/grzesiek/ITK-box/bin/Wrapping/CSwig/CommonA/wrap_itkBinaryBallStructuringElementJava.cxx:158: error: expected ‘;’ before ‘unsigned’<br>
/home/grzesiek/ITK-box/bin/Wrapping/CSwig/CommonA/wrap_itkBinaryBallStructuringElementJava.cxx:162: error: ‘arg1’ was not declared in this scope<br>/home/grzesiek/ITK-box/bin/Wrapping/CSwig/CommonA/wrap_itkBinaryBallStructuringElementJava.cxx:162: error: ‘itk’ has not been declared<br>
<br>