]> Creatis software - gdcm.git/blob - Doc/Website/Installation.html
FIX: Revert back to previous version, I don't believe this was a really safe code...
[gdcm.git] / Doc / Website / Installation.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <HTML>
3 <HEAD>
4    <META http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
5    <TITLE>Gdcm source installation</TITLE>
6 </HEAD>
7                                                                                 
8 <BODY>
9                                                                                 
10 <!#######################################################################>
11 <H1>Installing gdcm from sources</H1>
12 <HR size="1"><ADDRESS style="align: right;"></ADDRESS>
13
14 <!###################################>
15 <H2> Requirements</H2>
16 <UL>
17 <LI> For the core C++ library you shall need a C++ compiler with the
18     "list" and "map" STL containers.
19     <BR>
20     Gdcm is developped and tested under:
21     <UL>
22     <LI> GNU/linux (gcc 3.2.x)
23     </LI>
24     <LI> Win32/VC++ 6.x
25     </LI>
26     </UL>
27 </LI>
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).
31 </LI>
32 <LI> Optionnaly, for the
33    <A HREF="VtkGdcm.html">VTK wrappers</A>
34    you will additionaly need :
35 </LI>
36 <LI> Optionnaly, for the
37    <A HREF="html.developper/DoxyPythonComplete.html">Python wrappers</A>
38    you will additionaly need :
39    <UL> 
40    <LI> <A HREF="http://www.python.org/2.2.2/">Python version 2.2.x</A>
41    </LI>
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)
45        <UL>
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>.
51        </LI>
52        <LI>for Win32 you shall need to compile 
53             <A HREF="http://www.swig.org/download.html">the sources</A>
54        </LI>
55        </UL>
56    </LI>
57    </UL>
58 </UL>
59
60 <!###################################>
61 <H2> Step by step recompilation</H2>
62 <UL>
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>.
67 </LI>
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>.
71 </LI>
72 <LI> Invoke ccmake (from <TT>gdcmBINARY</TT>) with <TT>gdcmSources</TT>
73    as source directory.
74    <BR>
75    Hit "c" for a first automatic configuration of your platteform
76 </LI>
77 <LI> Select the options that suite your needs. Basically this means
78    toggling ON or OFF the following parameters
79    <UL>
80    <LI> <TT>GDCM_DOXYGEN</TT>
81       if you wish to generate the doxygen documentation,
82    </LI>
83    <LI> <TT>GGDCM_VTK</TT>
84       if you wish to generate the <A HREF="VtkGdcm.html">VTK wrappers</A>,
85    </LI>
86    <LI> <TT>GDCM_WRAP_PYTHON</TT>
87       if you wish to generate the 
88       <A HREF="html.developper/DoxyPythonComplete.html">Python wrappers</A>.
89    </LI>
90    </UL>
91 </LI>
92 <LI> Among the other options, you might consider
93    toggling ON or OFF the following parameters
94    <UL>
95    <LI> <TT>BUILD_EXAMPLES</TT>
96       if you wish to generate the C++ gdcm examples,
97    </LI>
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
101       the test suite.
102    </LI>
103 </LI>
104 </UL>
105
106 <HR size="1"><ADDRESS style="align: right;"></ADDRESS>
107                                                                                 
108 </BODY>
109 </HTML>
110