1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <META http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
5 <TITLE>Gdcm source installation</TITLE>
10 <!#######################################################################>
11 <H1>Installing gdcm from sources</H1>
12 <HR size="1"><ADDRESS style="align: right;"></ADDRESS>
14 <!###################################>
15 <H2> Requirements</H2>
17 <LI> For the core C++ library you shall need a C++ compiler with the
18 "list" and "map" STL containers.
20 Gdcm is developped and tested under:
22 <LI> GNU/linux (gcc 3.2.x)
28 <LI> <A HREF="http://www.cmake.org">Cmake</A>
29 is used by gdcm for generating Un*x makefiles or VC++ projects.
30 Grab latest release (at least 2.0.3).
32 <LI> Optionnaly, for the
33 <A HREF="VtkGdcm.html">VTK wrappers</A>
34 you will additionaly need :
36 <LI> Optionnaly, for the
37 <A HREF="html.developper/DoxyPythonComplete.html">Python wrappers</A>
38 you will additionaly need :
40 <LI> <A HREF="http://www.python.org/2.2.2/">Python version 2.2.x</A>
42 <LI> <A HREF="http://www.swig.org">Swig</A>
43 at least version 1.3.17x (in order to handle C++ member overloading,
44 shadow classes and static methods)
46 <LI>Rpms for GNU/linux:
47 <A HREF="http://www.creatis.insa-lyon.fr/rpm/swig13-1.3.17-1.i386.rpm">
48 swig13-1.3.17-1.i386.rpm</A>,
49 <A HREF="http://www.creatis.insa-lyon.fr/rpm/swig13-1.3.17-1.src.rpm">
50 swig13-1.3.17-1.src.rpm</A>.
52 <LI>for Win32 you shall need to compile
53 <A HREF="http://www.swig.org/download.html">the sources</A>
60 <!###################################>
61 <H2> Step by step recompilation</H2>
63 <LI> Retrieve gdcm the
64 <A HREF="http://www.creatis.insa-lyon.fr/Public/Gdcm/cvs.html">
65 sources through cvs</A>.
66 We shall refer to this source directory as <TT>gdcmSources</TT>.
68 <LI> Create a compile directory (e.g. <TT>gdcmBin</TT>) that
69 we shall refer as <TT>gdcmBINARY</TT>.
70 Change working directory to <TT>gdcmBINARY</TT>.
72 <LI> Invoke ccmake (from <TT>gdcmBINARY</TT>) with <TT>gdcmSources</TT>
75 Hit "c" for a first automatic configuration of your platteform
77 <LI> Select the options that suite your needs. Basically this means
78 toggling ON or OFF the following parameters
80 <LI> <TT>GDCM_DOXYGEN</TT>
81 if you wish to generate the doxygen documentation,
83 <LI> <TT>GGDCM_VTK</TT>
84 if you wish to generate the <A HREF="VtkGdcm.html">VTK wrappers</A>,
86 <LI> <TT>GDCM_WRAP_PYTHON</TT>
87 if you wish to generate the
88 <A HREF="html.developper/DoxyPythonComplete.html">Python wrappers</A>.
92 <LI> Among the other options, you might consider
93 toggling ON or OFF the following parameters
95 <LI> <TT>BUILD_EXAMPLES</TT>
96 if you wish to generate the C++ gdcm examples,
98 <LI> <TT>BUILD_TESTING</TT>
99 if you wish to generate gdcm test suite. When doing so you will
100 need to retrieve gdcmData i.e. the set of Dicom image used in
106 <HR size="1"><ADDRESS style="align: right;"></ADDRESS>