[Insight-users] Java wrapping build error

cheri cherianm at gmail.com
Wed Jun 18 04:30:35 EDT 2008


Hello Daniel,
                  I am building it on Ubuntu Linux Hardy Heron(32 bit) on an
Intel Core 2 Duo (64 bit) machine.
I have set all the "Wrap_" options on. But as a work around I have
suppressed the "Wrap_IntensityFilters" option (the one which was causing the
problem) and the build ran successfully.

I'm not sure if I really need those filters, so maybe I can work with the
current configuration.

Thanks for the help.

Regards - cheri


Daniel Mace-2 wrote:
> 
> Cheri,
> 
> Couple of questions.
> 
> What machine are you building it on (Windows, Linux), 32 bit or 64 bit?  
> Have you already compiled CableSwig?  What version of CMake are you 
> using?  What "Wrap_" settings have you enabled (image types, 
> registration, etc.)?
> 
> Cheers,
> Dan
> 
> cheri wrote:
>> 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
>>
>>   
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Java-wrapping-build-error-tp17773118p17965810.html
Sent from the ITK - Users mailing list archive at Nabble.com.



More information about the Insight-users mailing list