[Insight-users] Problems Building CableSwig with ITK2.0 on Linux

Brad King brad.king at kitware.com
Tue Feb 22 08:17:11 EST 2005


Dalal, Dhaval wrote:
> I want to build CableSwig Inside ITK 2.0 on Red Hat Linux.

To do this you have to put the CableSwig source tree under 
ITK-2.0/Utilities and call it "CableSwig".  Then it is automatic and 
CableSwig_DIR will not even be an option to set.

> I tried to configure cmake on ITK. In the advanced value option,
> I turned on ITK_CSWIG_JAVA to ON (I need to generate Java wrappers).
> But i  just can´t configure it by CMake, showing me an
>  error:
>  CMake: CABLESWIG_DIR is set to "/usr/local/CableSwig-ITK-2.0", wich is not
> a directory
>  containing CabeSwigConfig.cmake"
>  
>  But, the point is: this file CableSwigConfig.cmake simply does not exist
>  anywhere.

I'm guessing you set CableSwig_DIR to point at the CableSwig-ITK-2.0 
source tree.  This means you are trying to use an outside CableSwig.  In 
order to do this you must have already built it.  The configuration 
process produces CableSwigConfig.cmake which tells ITK how CableSwig has 
been configured and where to find its tools and libraries.

-Brad


More information about the Insight-users mailing list