<div class="gmail_quote">Hi Cheri,<br><br>I have generated Java wrapper using link (<a href="http://mipav.cit.nih.gov/documentation/techguides/TechGuide2_UsingInsightToolkit.pdf">TechGuide2_UsingInsightToolkit.pdf</a>)<br>
<br> itk version: 3.6.0<br>CableSwig: 3.6.0<br>Cmake : cmake-2.6.0-win32-x86.exe<br>Visual Studio: 2005<br>
<br>When you run the CMake use Visual Studio 8 2005<br><br>let me know if u have any issue.<br><br>Thanks<br>Prashanth<div><div></div><div class="Wj3C7c"><br><br><br><div class="gmail_quote">On Tue, Jun 17, 2008 at 10:51 PM, Daniel Mace <<a href="mailto:dlm19@duke.edu" target="_blank">dlm19@duke.edu</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Cheri,<br>
<br>
Couple of questions.<br>
<br>
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.)?<br>
<br>
Cheers,<br>
Dan<div><div></div><div><br>
<br>
cheri wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
I am in the process of compiling Java wrappers for ITK, but am<br>
encountering some problems.<br>
The version I am using is 3.6.0 (for both ITK and CableSwig).<br>
<br>
I began by running ccmake with settings ,<br>
BUILD_SHARED_LIBS to ON<br>
CMAKE_BACKWARDS_COMPATIBILITY to 2.4<br>
ITK_CSWIG_JAVA to ON<br>
ITK_USE_REVIEW to ON<br>
USE_WRAP_ITK to ON<br>
<br>
On configuring I got the following error:<br>
"CMake Error: Attempt to add link target SwigRuntimeJava of type:<br>
MODULE_LIBRARY<br>
to target DeformableTransformsJava. You can only link to STATIC or SHARED<br>
libraries.<br>
To allow linking of modules set CMAKE_BACKWARDS_COMPATIBILITY to 2.2 or<br>
lower"<br>
<br>
Then I set CMAKE_BACKWARDS_COMPATIBILITY to 2.2 and the configuration<br>
completed successfully.<br>
<br>
But when executing make I get the following error,<br>
<br>
create swig package IntensityFiltersJava<br>
init module: itkAdaptiveHistogramEqualizationImageFilter<br>
init module: itkHistogramMatchingImageFilter<br>
init module: itkIntensityWindowingImageFilter<br>
init module: itkInvertIntensityImageFilter<br>
init module: itkMaskImageFilter<br>
init module: itkMaskNegatedImageFilter<br>
init module: itkNormalizeImageFilter<br>
init module: itkRescaleIntensityImageFilter<br>
init module: itkShiftScaleImageFilter<br>
init module: itkSigmoidImageFilter<br>
[ 58%] Building CXX object<br>
Wrapping/WrapITK/Modules/IntensityFilters/CMakeFiles/IntensityFiltersJava.dir/wrap_IntensityFiltersJavaJava.o<br>
[ 58%] Generating wrap_itkAdaptiveHistogramEqualizationImageFilterJava.cxx<br>
[ 58%] Building CXX object<br>
Wrapping/WrapITK/Modules/IntensityFilters/CMakeFiles/IntensityFiltersJava.dir/wrap_itkAdaptiveHistogramEqualizationImageFilterJava.o<br>
[ 58%] Generating wrap_itkHistogramMatchingImageFilterJava.cxx<br>
:1: Warning(401): Nothing known about class<br>
'itk::Statistics::Sample<itk::FixedArray<double,1u > >'. Ignored.<br>
:1: Warning(401): Maybe you forgot to instantiate<br>
'itk::Statistics::Sample<itk::FixedArray<double,1u > >' using %template.<br>
:1: Warning(401): Nothing known about class<br>
'itk::Statistics::Sample<itk::FixedArray<float,1u > >'. Ignored.<br>
:1: Warning(401): Maybe you forgot to instantiate<br>
'itk::Statistics::Sample<itk::FixedArray<float,1u > >' using %template.<br>
[ 58%] Building CXX object<br>
Wrapping/WrapITK/Modules/IntensityFilters/CMakeFiles/IntensityFiltersJava.dir/wrap_itkHistogramMatchingImageFilterJava.o<br>
[ 58%] Generating wrap_itkIntensityWindowingImageFilterJava.cxx<br>
[ 58%] Building CXX object<br>
Wrapping/WrapITK/Modules/IntensityFilters/CMakeFiles/IntensityFiltersJava.dir/wrap_itkIntensityWindowingImageFilterJava.o<br>
[ 58%] Generating wrap_itkInvertIntensityImageFilterJava.cxx<br>
[ 58%] Building CXX object<br>
Wrapping/WrapITK/Modules/IntensityFilters/CMakeFiles/IntensityFiltersJava.dir/wrap_itkInvertIntensityImageFilterJava.o<br>
[ 58%] Generating wrap_itkMaskImageFilterJava.cxx<br>
Unexpected error.<br>
Aborted<br>
make[2]: ***<br>
[Wrapping/WrapITK/Modules/IntensityFilters/wrap_itkMaskImageFilterJava.cxx]<br>
Error 134<br>
make[1]: ***<br>
[Wrapping/WrapITK/Modules/IntensityFilters/CMakeFiles/IntensityFiltersJava.dir/all]<br>
Error 2<br>
make: *** [all] Error 2<br>
<br>
I guess I'm missing something very simple, but can't figure out what. Please<br>
help<br>
<br>
cheers - cheri<br>
<br>
<br>
</blockquote>
<br></div></div><div><div></div><div>
_______________________________________________<br>
Insight-users mailing list<br>
<a href="mailto:Insight-users@itk.org" target="_blank">Insight-users@itk.org</a><br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>regards<br>Prashantha K P
</font></div><br><br clear="all"><br>-- <br>regards<br>Prashantha K P