[Insight-users] The easy way to wrap.

Luis Ibanez luis.ibanez at kitware.com
Fri, 30 Apr 2004 10:15:55 -0400


Hi Vidina,


Here is the easy way to build ITK:

1) Run CMake
    Disable TESTING,
    Disable EXAMPLES
    Disable WRAPPING
    Enable  SHARED libraries
    configure in this way.


2) Open the Workspace in Visual Studio
    Select ALL_BUILD
    Select build for Release
    Build the project
    It should take 15 minutes


3) Download CableSwig
    and put it in the Utilities
    Subdirectory of ITK.
    It will look like:

    Insight/Utilities/CableSwig

    By doing this, CableSwig will be
    built along with ITK.


4) Close the ITK workspace,
    Re-run CMake
    Enable Wrapping (for the scripting
    language you are interested on).
    configure this way.


5) Open the ITK Workspace
    Select ALL_BUILD
    Select build for Release
    build the project
    This time it will take
    about 1.5 hours.


Please let us know if you still find
any problems,


    Thanks



      Luis


---------------------
Vidina Monagas wrote:
> Should I compile CableSwig before ITK?
> 
> ----- Original Message ----- 
> From: "Luis Ibanez" <luis.ibanez at kitware.com>
> To: "Vidina Monagas" <vidina at ctm.ulpgc.es>
> Cc: <Insight-users at itk.org>
> Sent: Friday, April 30, 2004 12:18 AM
> Subject: Re: 24 hours is too long :-)
> 
> 
> 
>>Hi Vidina,
>>
>>The compilation should not take 24 hours,   :-)
>>
>>There is definitely something wrong.
>>
>>The typical ITK build should take 15 minutes,
>>when you disable Testing and Examples.
>>
>>Did you changed any of the CMake default
>>options when you configured ITK ?
> 
> 
> 
>>Or did you make any changes to the workspace
>>file after loading it in Visual Studio ?
>>
>>I didn't see anything strange in your
>>CMakeCache.txt...
>>
>>Do you have other versions of VisualStudio
>>installed in the same machine ?
>>
>>Do you trust your VisualStudion installation ?
>>(that is, have you used for building any
>>serious-size project ? )
>>
>>
>>I would suggest you to delete the binary
>>directory where you are attempting this
>>build, and restart from scratch.
>>
>>Please follow the instruction in the tutorials
>>
>>    http://www.itk.org/HTML/Tutorials.htm
>>
>>Let us know if you still have any problems,
>>
>>
>>   Thanks
>>
>>
>>     Luis
>>
>>