[Insight-users] about Java-wrapped ITK
Yixun Liu
yxliu at fudan.edu.cn
Sun Jul 18 23:14:09 EDT 2004
Thank Luis!
I did as you said
1.download the ITK from the CVS
2.set the "share lib" ON
3 build the release version of ITK
4.copy the CableSwig to the utility directory
5.run the Cmake again and enable the "ITK_CSWIG_JAVA" and set the
JAVA_COMMAND
JAVA_ARCHIVE
JAVA_COMPILE
JAVA_INCLUDE_PATH
JAVA_RUN_TIME
correctly
6 reload the ITK.dsw and rebuild the release version again.
However, I receive the following error information:
C:\ITK\Insight\Utilities\CableSwig\GCC\libiberty\floatformat.c(27) : error C2371: 'memcpy' : redefinition; different basic types
C:\ITK\Insight\Utilities\CableSwig\GCC\libiberty\floatformat.c(28) : error C2371: 'memset' : redefinition; different basic types
Hope your help!
Best regards,
Yixun Liu
----- Original Message -----
From: "Luis Ibanez" <luis.ibanez at kitware.com>
To: "Yixun Liu" <yxliu at fudan.edu.cn>
Cc: <Insight-users at itk.org>
Sent: Thursday, July 15, 2004 1:30 AM
Subject: Re: [Insight-users] ITK and Java
>
> Hi Yixun,
>
> You don't really need to run CMake twice.
>
> In principle you can do it in a single pass
> by enabling ITK_CSWIG_JAVA from the start.
>
> However, I usually find more convenient to
> do this in two steps because in that way, because
> if any difficulty appears in the process, it is
> easier to identify the source. That is, you can
> separate the pure ITK configuration from any
> potential difficulty with the wrapping.
>
> Note that running CMake twice is insignificant
> in time compared to the time it takes to build
> the wrapping for Java.
>
> Please feel free to go ahead and enable the
> wrapping from the first configuration.
>
>
>
> Regards,
>
>
>
> Luis
>
>
> ------------------
> Yixun Liu wrote:
> > Thanks a lot!
> > I am a bit puzzled about running the Cmake two times. Why can I not enalbe ITK_CSWIG_JAVA at the first time of running Cmake? So, I need not run the Cmake again.
> >
> > Regards,
> >
> > Yixun Liu
> > ----- Original Message -----
> > From: "Luis Ibanez" <luis.ibanez at kitware.com>
> > To: "yxliu" <yxliu at fudan.edu.cn>
> > Cc: <insight-users at itk.org>
> > Sent: Wednesday, July 14, 2004 5:28 AM
> > Subject: Re: [Insight-users] ITK and Java
> >
> >
> >
> >>Hi Yixun,
> >>
> >>Many improvements have been done in the
> >>Java wrapping since ITK 1.6. You don't
> >>want to use ITK 1.6 for Java wrapping
> >>at this point. Instead, you should go
> >>for the CVS version.
> >>
> >>
> >>[Note that ITK 1.8 will be released by August].
> >>
> >>
> >>------------------------------
> >>
> >>Please do the following
> >>
> >>
> >>1) Install the Java SDK 1.4.2
> >>
> >>
> >>2) Download a CVS checkout of ITK
> >> posterior to July 10 2004.
> >> Just downloading it today will be ok.
> >>
> >>
> >>3) Download CSwig from
> >> http://www.itk.org/HTML/RelatedSoftware.htm
> >> http://www.itk.org/HTML/CableSwig.html
> >>
> >> and move the tree to be a subdirectory of
> >>
> >> Insight/Utilities
> >>
> >>
> >>4) Configure ITK using CMake.
> >> Enable Shared libraries,
> >> Disable Examples
> >> Disable Testing
> >>
> >>
> >>5) Load the ITK.dsw workspace in VisualStudio
> >> (you are using VC++6.0). Build it, (it
> >> should take less than 15 minutes). Then
> >> quit VisualStudio. You want to do this
> >> build for "Release" not for "Debug".
> >>
> >>
> >>6) Rerun CMake, pass to "Advanced" mode
> >> and enable
> >>
> >> ITK_CSWIG_JAVA
> >>
> >> configure, and generate the project.
> >> Make sure that the following variables
> >> are set correctly:
> >>
> >> JAVA_COMMAND
> >> JAVA_ARCHIVE
> >> JAVA_COMPILE
> >> JAVA_INCLUDE_PATH
> >> JAVA_RUN_TIME
> >>
> >>
> >>7) Load again the ITK.dsw.
> >> Make sure that you select "Release"
> >> as the configuration option.
> >> Then start building it.
> >>
> >> This will take a while,... so you
> >> can go for lunch or start reading
> >> that paper that has been waiting in
> >> your desk :-)
> >>
> >>
> >>8) When the build is done, you want to
> >> add to your CLASSPATH environment
> >> variable the following entry
> >>
> >> ITKBin/Wrapping/CSwig/Java/InsightToolkit.jar
> >>
> >> Where "ITKBin" is the binary directory where
> >> you built ITK.
> >>
> >>
> >>9) Then you are ready to try the Java examples
> >> that you will find in the directory
> >>
> >> Insight/Examples/Filtering.
> >>
> >>
> >>
> >>Please let us know if you find any problems,
> >>
> >>
> >> Thanks,
> >>
> >>
> >> Luis
> >>
> >>
> >>
> >>
> >>------------
> >>yxliu wrote:
> >>
> >>>Hi, ITKusers,
> >>>
> >>>I know ITK supprot Java. Could anybody tell be how to generate the java
> >>>class on the platform: windowXP, MS VC6.0 Cmake 2.0.2, ITK1.6?
> >>>
> >>>Thanks in advance
> >>>
> >>>Best regards,
> >>>
> >>>Yixun liu
> >>>
> >>>
> >>>------------------------------------------------------------------------
> >>>
> >>>_______________________________________________
> >>>Insight-users mailing list
> >>>Insight-users at itk.org
> >>>http://www.itk.org/mailman/listinfo/insight-users
> >>
> >>
> >>
> >
>
>
>
>
More information about the Insight-users
mailing list