[Insight-users] Re: ITK Java Wrapping in Visual Studio 8 .net in XP

Michael Bell michael.bell at acm.org
Wed Aug 9 15:54:13 EDT 2006


ZM,

If you can wait a little while, we might be able to get the binaries to you.

If you do attempt the compile, here are a couple of tips that I have
not really found in one place:

Install java version 1.4.2_12
Compile in the following order:
CableSwig
ITK (wrappers turned off. wrapitk will take care of that part.)
WrapITK (Only build float and unsigned char to save time.)

Always compile in release mode. All of the projects must be built the
same way in order for them to find necessary files.
In cmake, create a separate build directory. For example, if your code
is in C:\WrapITK, make the build directory C:\WrapITK\Build_VS7. That
way if you make a mistake with cmake or the compile, you can just
delete the entire directory and start over. It also helps with
debugging.

Good luck,
michael

On 8/9/06, Bi, Zhuming <zhuming.bi at nrc-cnrc.gc.ca> wrote:
>
>
>
> Hello Michael
>
> Thank you so much for your promote response. I am very glad to know your
> combination can work. I will get VS2003 installed and try it again. I will
> be so happy that I could download the binaries directly from the website.
> The compling procedure is a big challenge for me; since I have no IT
> background to know how cMake or CableSwig work. The only thing I can do is
> to fellow a routine strictly, and I have no idea to deal with any errors in
> compling.
>
> Thanks again for great help.
>
>
> ZM
>
>  ________________________________
>  From: michael.bell.a at gmail.com on behalf of Michael Bell
> Sent: Wed 8/9/2006 2:55 PM
> To: Bi, Zhuming
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] Re: ITK Java Wrapping in Visual Studio 8 .net
> in XP
>
>
>
>
> ZM,
>
> I just completed compilation of ITK2.8 on VS2003.net (VS7) using
> WrapITK. I highly suggest you use this combination if possible.
> Several people were not able to get VS* to work, and I believe there
> are issues with VS6.
>
> WrapITK improves upon ITK's built in wrapping by making the compile
> easier and wrapping more classes.
>
> Please check the archives for recent messages which describe what you
> need to get in detail. Search for wrapitk.
>
> ITK people: is there any reason why someone could not provide
> pre-compiled binaries? I think the process of building and wrapping
> itk is more daunting than using it. I'd be happy to make my binaries
> available (SunOS, Linux and Windows) if someone has a place to host
> them.
>
> thanks,
> michael
>
> On 8/9/06, Bi, Zhuming <zhuming.bi at nrc-cnrc.gc.ca> wrote:
> >
> >
> >
> > Hello
> >
> > I am new to the ITK. I wonder if someone has java wrapping of itk for
> > windows. I tried to wrap itk in Visual Studio 8 in XP following some
> > instruations on the Internet, but I was not able to generate all dlls. The
> > missed two are: itkIOJava.dll and itkAlgorithmsJava.dll. I have tried
> > different versions of itks from 2.0.0 to 2.8.x, and Visual Studio 6 and 8.
> > The error results were similar to the follows:
> >
> > Error 35 error: `long int*'
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:910
> > Error 36 error: no type
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:934
> > Error 37 error: no type
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:936
> > Error 38 error: no type
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:937
> > Error 39 error: no
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:2989
> > Error 40 error: no
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:2989
> > Error 41 error: no  C:/Program Files/Microsoft Visual Studio
> > 8/VC/include/memory:673
> > Error 42 error: no  C:/Program Files/Microsoft Visual Studio
> > 8/VC/include/memory:673
> > Error 43 error: `double*'
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:880
> > Error 44 error: no type
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:887
> > Error 45 error: no type
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:1039
> > Error 46 error: no  C:/Program Files/Microsoft Visual Studio
> > 8/VC/include/memory:673
> > Error 47 error: no  C:/Program Files/Microsoft Visual Studio
> > 8/VC/include/memory:693
> > Error 48 error: no  C:/Program Files/Microsoft Visual Studio
> > 8/VC/include/memory:693
> > Error 49 error: no
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:2834
> > Error 50 error: no
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:2768
> > Error 51 error: no
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:2768
> > Error 52 error: no
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:3037
> > Error 53 error: no
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:3037
> > Error 54 error PRJ0019: A tool returned an error code from
> > "wrap_itkImageSeriesWriter.xml from " ITKIOJava
> > Error 55 error: `const long
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:910
> > Error 56 error: no type
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:934
> > Error 57 error: no type
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:936
> > Error 58 error: no type
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:937
> > Error 59 error: no
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/algorithm:2004
> > Error 60 error: no
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/algorithm:2004
> > Error 61 error: `
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:910
> > Error 62 error: no type
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:934
> > Error 63 error: no type
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:936
> > Error 64 error: no type
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:937
> > Error 65 error: no  C:/Program Files/Microsoft Visual Studio
> > 8/VC/include/memory:673
> > Error 66 error: no  C:/Program Files/Microsoft Visual Studio
> > 8/VC/include/memory:673
> > Error 67 error: no  C:/Program Files/Microsoft Visual Studio
> > 8/VC/include/memory:693
> > Error 68 error: no  C:/Program Files/Microsoft Visual Studio
> > 8/VC/include/memory:693
> > Error 69 error: no
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:2834
> > Error 70 error: no
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:2768
> > Error 71 error: no
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:2768
> > Error 72 error: no
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:3037
> > Error 73 error: no
> >
> D:/Programs/ITK2.6.0_VC8_Build/bin/Vc8/Include/xutility:3037
> > Error 74 error PRJ0019: A tool returned an error code from
> > "wrap_itkWatershedImageFilter.xml from "
> ITKAlgorithmsJava
> > Error 75 error PRJ0019: A tool returned an error code from "Java Class"
> > ITKJavaJar
> >
> > Would you privode some advices to help me generating the correct result or
> > telling me where I could download all dlls and InsightToolkits.jar?  Thank
> > you very much for helps.
> >
> > Best regards,
> >
> > ZM
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
> >
> >
> >
>
>
> --
> michael.bell at acm.org
>


-- 
michael.bell at acm.org


More information about the Insight-users mailing list