[Insight-users] building ITK in cygwin (fwd)

William A. Hoffman billlist at nycap . rr . com
Wed, 17 Dec 2003 08:42:49 -0500


Actually, if you run cygwin setup, and install cmake, version 1.8.2
and 1.6.7 are available.  I would recommend 1.8.2.

-Bill


At 05:07 PM 12/16/2003, Luis Ibanez wrote:


>Hi Mary Ann,
>
>
>When you build ITK in Cygwin you should use a CMake
>built for Cygwin, not the CMakeSetup version for Windows.
>
>CMake is actually part of the Cygwin distribution, but
>unfortunately the version being distributed is not the
>latest one (1.8.2). The version of CMake distributed with
>Cygwin may be as old as version 1.4.
>
>You will have to get CMake source code by doing:
>
> cvs -d :pserver:anonymous at www . cmake . org:/cvsroot/CMake login
>(respond with password cmake)
>
>Follow this command by checking out the source code:
>cvs -d :pserver:anonymous at www . cmake . org:/cvsroot/CMake co CMake
>
>Then update for the release 1.8.2 by doing:
>
>      cd CMake
>      cvs update -r Release-1-8-2
>
>Then you go to the binary directory where you want to
>build CMake and type
>
>    /home/brennan/src/CMake/configure
>
>(we assume that the source directory where you downloaded
>CMake is /home/brennan/src/CMake...)
>
>That will initiate the bootstraping of CMake.
>When this is done, you simply type "make" and
>CMake will be built.
>
>
>Now,...since you may have the older version of CMake that
>is distributed with Cygwin, you *have to be careful* when
>you invoke CMake. You have to make sure that you add the
>path to the new location, something like
>
>   /home/brennan/bin/CMake/bin/ccmake
>
>(assuming that the binary directory where you built
> CMake is /home/brennan/bin/CMake).
>
>otherwise you may end up invoking the old version of
>cmake that is likely sitting in "/usr/bin/cmake" in
>your system.
>
>
>----
>
>At this point you are ready for configuring ITK.
>
>You should create the binary directory where you want
>to build ITK, cd into this directory and from there
>you invoke:
>
>/home/brennan/bin/CMake/bin/ccmake  /home/brennan/src/Insight
>
>This will start the 'ccmake' interface where you can
>set CMake variables.
>
>In summary,
>
>   When you are using ITK/CMake in cygwin,
>   just think "Unix"  :-)
>
>
>Please let us know if you have any further questions,
>
>
>  Thanks
>
>
>   Luis
>
>
>-------------------------
>Mary Ann Brennan wrote:
>>i'm having no luck building ITK 1.4.0 in cygwin.  after i generate the makefiles with CMake and try to compile from the build directory, i get this error:
>>Building object file F77_aloc.o...
>>In file included from C:/cygwin/home/mbrennan/ITK/InsightToolkit-1.4.0/Utilities/vxl/v3p/netlib/F77_
>>aloc.c:2:
>>C:/cygwin/home/mbrennan/ITK/InsightToolkit-1.4.0/Utilities/vxl/v3p/netlib/netlib.h:23:24:  
>>vxl_config.h: No such file or directory
>>of course the file isn't there, but vxl_config.h.in is.  i tried renaming
>>it from .h.in to .h, that solves that error, but that led to some more
>>missing header files which each had .h.in counterparts, and renaming those
>>led to more errors...  presumably i shouldn't need to rename anything, though, so it would seem there's something incompatible.
>>the versions i'm using are:
>>CMake 1.8, gcc/g++ 3.3.1
>>and i'm building for "Unix Makefiles" to a separate build directory that's
>>a sibling of InsightToolkit-1.4.0.  i tried some previous versions (itk
>>1.2/cmake 1.6.5) but those all generated different errors.  any ideas of
>>what i might be doing wrong?
>>thanksabunch,
>>mary ann
>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>Mary Ann Brennan
>>mab at cs . stanford . edu
>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users at itk . org
>>http://www . itk . org/mailman/listinfo/insight-users
>
>
>
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk . org
>http://www . itk . org/mailman/listinfo/insight-users