[Insight-users] How to build ITK4.4.0 wrappers to use it with Windows Forms

Jayachandra DAKALA (NYP) Jayachandra_DAKALA at nyp.gov.sg
Mon Aug 12 06:08:40 EDT 2013


Hi Dan Mueller,

Thanks for the links to the comprehensive list of possible options.
I am trying to understand and build all the 3 options, a) SimpleITK, b) ManagedITK and c) P/Invoke.

Please help me in understanding/resolving the following issues.

1) With options a and c, I am facing problem in installing/setting the SWIG tool. For example, while building SimpleITK I am getting the following CMake errors.

**********************************************
Building SimpleITK version "0.6.1-gGIT-N"
Could NOT find Tclsh (missing: TCL_TCLSH) 
Found the following C# .NET versions: v4.0.30319, v3.5, v2.0.50727
Processing json files...
Processing json files...done
CMake Error at G:/Softwares/cmake-2.8.11-win32-x86/cmake-2.8.11-win32-x86/share/cmake-2.8/Modules/FindSWIG.cmake:40 (message):
Command "G:/Softwares/swigwin-2.0.10 -swiglib" failed with output:
Call Stack (most recent call first):
Wrapping/CMakeLists.txt:8 (find_package)
CMake Error at G:/Softwares/cmake-2.8.11-win32-x86/cmake-2.8.11-win32-x86/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find SWIG (missing: SWIG_DIR) (Required is at least version "2")
Call Stack (most recent call first):
G:/Softwares/cmake-2.8.11-win32-x86/cmake-2.8.11-win32-x86/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
G:/Softwares/cmake-2.8.11-win32-x86/cmake-2.8.11-win32-x86/share/cmake-2.8/Modules/FindSWIG.cmake:67 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
Wrapping/CMakeLists.txt:8 (find_package)
Configuring incomplete, errors occurred!
**************************************************

I also tried setting the SWIG_DIR to the directory where swig.exe is located. But, couldn't resolve the above issue. 

2) To build ManagedITK, I couldn't find FinishCMake.bat file in ITK4.4.0, which is supposed to convert the generated vcproj files into managed projects. Any suggestions on how to convert the project files to managed projects? What all needs to be done to change a project to a managed project?

3) In general, using Windows Forms to develop a GUI may be quicker and using native C++ ITK library may be helpful in developing image processing algorithms. It looks like, option c (using P/Invoke) is a better option to utilize the best of both Windows Forms and native C++ ITK.  Any suggestions/comments on this?

Many thanks,
Best regards,
D Jayachandra  
_______________________________________
From: Dan Mueller [dan.muel at gmail.com]
Sent: 06 August 2013 08:15
To: Jayachandra DAKALA (NYP)
Cc: insight-users at itk.org
Subject: Re: [Insight-users] How to build ITK4.4.0 wrappers to use it with Windows Forms

Hi D Jayachandra,

Please see the following response on the mailing list:
http://www.itk.org/pipermail/insight-users/2013-February/047217.html

The easiest way to use ITK from .NET managed code is SimpleITK:
http://www.simpleitk.org/

Hope this helps.

Regards, Dan

On 5 August 2013 20:01, Jayachandra DAKALA (NYP)
<Jayachandra_DAKALA at nyp.gov.sg> wrote:
> Hi,
>
> I need to use ITK in Windows Forms (C++/CLR) application to quickly build GUI.
> Please guide me on "How to build ITK4.4.0 wrappers for Windows Forms."
>
> Thanks and regards,
> D. Jayachandra
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list