[Insight-users] Fwd: Java wrapping build error

prashanth k p konkodi210 at gmail.com
Wed Jun 18 01:16:13 EDT 2008


Hi Cheri,

I have generated Java wrapper using link
(TechGuide2_UsingInsightToolkit.pdf<http://mipav.cit.nih.gov/documentation/techguides/TechGuide2_UsingInsightToolkit.pdf>
)

 itk version:        3.6.0
CableSwig:        3.6.0
Cmake     :        cmake-2.6.0-win32-x86.exe
Visual Studio:    2005

When you run the CMake use Visual Studio 8 2005

let me know if u have any issue.

Thanks
Prashanth



On Tue, Jun 17, 2008 at 10:51 PM, Daniel Mace <dlm19 at duke.edu> 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
>



-- 
regards
Prashantha K P



-- 
regards
Prashantha K P
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080618/18450b81/attachment-0001.htm>


More information about the Insight-users mailing list