[Insight-users] Java wrapping build error
cheri
cherianm at gmail.com
Thu Jun 12 02:39:59 EDT 2008
Hello,
I am in the process of compiling Java wrappers for ITK, but am
encountering some problems.
The version I am using is 3.6.0 (for both ITK and CableSwig).
I began by running ccmake with settings ,
BUILD_SHARED_LIBS to ON
CMAKE_BACKWARDS_COMPATIBILITY to 2.4
ITK_CSWIG_JAVA to ON
ITK_USE_REVIEW to ON
USE_WRAP_ITK to ON
On configuring I got the following error:
"CMake Error: Attempt to add link target SwigRuntimeJava of type:
MODULE_LIBRARY
to target DeformableTransformsJava. You can only link to STATIC or SHARED
libraries.
To allow linking of modules set CMAKE_BACKWARDS_COMPATIBILITY to 2.2 or
lower"
Then I set CMAKE_BACKWARDS_COMPATIBILITY to 2.2 and the configuration
completed successfully.
But when executing make I get the following error,
create swig package IntensityFiltersJava
init module: itkAdaptiveHistogramEqualizationImageFilter
init module: itkHistogramMatchingImageFilter
init module: itkIntensityWindowingImageFilter
init module: itkInvertIntensityImageFilter
init module: itkMaskImageFilter
init module: itkMaskNegatedImageFilter
init module: itkNormalizeImageFilter
init module: itkRescaleIntensityImageFilter
init module: itkShiftScaleImageFilter
init module: itkSigmoidImageFilter
[ 58%] Building CXX object
Wrapping/WrapITK/Modules/IntensityFilters/CMakeFiles/IntensityFiltersJava.dir/wrap_IntensityFiltersJavaJava.o
[ 58%] Generating wrap_itkAdaptiveHistogramEqualizationImageFilterJava.cxx
[ 58%] Building CXX object
Wrapping/WrapITK/Modules/IntensityFilters/CMakeFiles/IntensityFiltersJava.dir/wrap_itkAdaptiveHistogramEqualizationImageFilterJava.o
[ 58%] Generating wrap_itkHistogramMatchingImageFilterJava.cxx
:1: Warning(401): Nothing known about class
'itk::Statistics::Sample<itk::FixedArray<double,1u > >'. Ignored.
:1: Warning(401): Maybe you forgot to instantiate
'itk::Statistics::Sample<itk::FixedArray<double,1u > >' using %template.
:1: Warning(401): Nothing known about class
'itk::Statistics::Sample<itk::FixedArray<float,1u > >'. Ignored.
:1: Warning(401): Maybe you forgot to instantiate
'itk::Statistics::Sample<itk::FixedArray<float,1u > >' using %template.
[ 58%] Building CXX object
Wrapping/WrapITK/Modules/IntensityFilters/CMakeFiles/IntensityFiltersJava.dir/wrap_itkHistogramMatchingImageFilterJava.o
[ 58%] Generating wrap_itkIntensityWindowingImageFilterJava.cxx
[ 58%] Building CXX object
Wrapping/WrapITK/Modules/IntensityFilters/CMakeFiles/IntensityFiltersJava.dir/wrap_itkIntensityWindowingImageFilterJava.o
[ 58%] Generating wrap_itkInvertIntensityImageFilterJava.cxx
[ 58%] Building CXX object
Wrapping/WrapITK/Modules/IntensityFilters/CMakeFiles/IntensityFiltersJava.dir/wrap_itkInvertIntensityImageFilterJava.o
[ 58%] Generating wrap_itkMaskImageFilterJava.cxx
Unexpected error.
Aborted
make[2]: ***
[Wrapping/WrapITK/Modules/IntensityFilters/wrap_itkMaskImageFilterJava.cxx]
Error 134
make[1]: ***
[Wrapping/WrapITK/Modules/IntensityFilters/CMakeFiles/IntensityFiltersJava.dir/all]
Error 2
make: *** [all] Error 2
I guess I'm missing something very simple, but can't figure out what. Please
help
cheers - cheri
--
View this message in context: http://www.nabble.com/Java-wrapping-build-error-tp17773118p17773118.html
Sent from the ITK - Users mailing list archive at Nabble.com.
More information about the Insight-users
mailing list