]> Creatis software - bbtk.git/blob - kernel/doc/bbtkWebSite/install.html
f6ba93d8ab323461e60bdc9043325f6c7ef1bc4e
[bbtk.git] / kernel / doc / bbtkWebSite / install.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4   <meta content="text/html; charset=ISO-8859-1"
5  http-equiv="content-type">
6   <title>Install</title>
7 </head>
8 <body>
9 <div style="text-align: center; font-weight: bold;"><big><big><big><small></small></big></big></big>
10 <div style="text-align: left;">
11 <div style="text-align: center;"><big><big style="font-weight: normal;"><big><big>Install</big></big></big></big><br>
12 <div style="text-align: left;">
13 <ol id="mozToc">
14 <!--mozToc h1 1 h2 2 h3 3 h4 4 h5 5 h6 6-->
15   <li><a href="#mozTocId820435">Linux</a>
16     <ol>
17       <li><a href="#mozTocId745245">Requirements</a></li>
18       <li><a href="#mozTocId775505">Known working configurations</a></li>
19       <li><a href="#mozTocId410988">Install from sources</a></li>
20     </ol>
21   </li>
22   <li><a href="#mozTocId777026">Windows </a>
23     <ol>
24       <li><a href="#mozTocId761363">Requirements</a></li>
25       <li><a href="#mozTocId681503">Known working configurations</a></li>
26       <li><a href="#mozTocId618885">Steps </a></li>
27     </ol>
28   </li>
29   <li><a href="#mozTocId915759">CMake build options</a></li>
30 </ol>
31 <hr style="width: 100%; height: 2px;"></div>
32 </div>
33 <h1><a class="mozTocH2" name="mozTocId820435"></a><big><big><big><small><small><span
34  style="font-weight: normal;">Linux</span></small></small></big></big></big></h1>
35 <h2><a class="mozTocH3" name="mozTocId745245"></a><big><big><big><small><small><span
36  style="font-weight: normal;">Requirements</span></small></small></big></big></big></h2>
37 <ul>
38   <li><span style="font-weight: normal;">cmake &gt;= 2.4.6</span></li>
39   <ul>
40     <ul>
41       <li><span style="font-weight: normal;"><a
42  href="http://www.cmake.org/HTML/Download.html">http://www.cmake.org/HTML/Download.html</a><br>
43         </span></li>
44     </ul>
45   </ul>
46   <li><span style="font-weight: normal;">optional : <br>
47     </span></li>
48   <ul>
49     <li><span style="font-weight: normal;">wxWidgets&nbsp; &gt;= &nbsp;
50 2.6.3<br>
51       </span></li>
52     <ul>
53       <li><span style="font-weight: normal;">yum install wxGTK-devel
54 (fedora extras repos)<br>
55         </span></li>
56     </ul>
57     <li><span style="font-weight: normal;">L<sub>a</sub>T<sub>e</sub>X
58 to generate the pdf doc</span><br>
59       <span style="font-weight: normal;"></span></li>
60     <li><span style="font-weight: normal;">tth to generate the html doc</span></li>
61     <ul>
62       <li><span style="font-weight: normal;"><a
63  href="http://hutchinson.belmont.ma.us/tth/">http://hutchinson.belmont.ma.us/tth/</a><br>
64         </span></li>
65     </ul>
66     <li><span style="font-weight: normal;">itk to compile packages itk,
67 itkvtk</span></li>
68     <ul>
69       <li><span style="font-weight: normal;">yum install
70 InsightToolkit-devel (creatis repos)<br>
71         </span></li>
72     </ul>
73     <li><span style="font-weight: normal;">vtk to compile package vtk,
74 wxvtk</span></li>
75     <ul>
76       <li><span style="font-weight: normal;">yum Install vtk-devel
77 (fedora extras repos)</span><big><big><big><small><small><span
78  style="font-weight: normal;"></span></small></small></big></big></big></li>
79       <li style="font-weight: bold;"><big><big><small><small><span
80  style="font-weight: normal;">Patches needed:</span></small></small></big></big></li>
81       <ul>
82         <li style="font-weight: bold;"><big><big><small><small><span
83  style="font-weight: normal;">problem with
84 /usr/lib/vtk-5.0/VTKConfig.cmake : </span></small></small></big></big><big><big><small><small><span
85  style="font-weight: normal;">had
86 to change line 9: SET(VTK_INSTALL_PREFIX "${VTK_DIR}") by
87 SET(VTK_INSTALL_PREFIX "") to be compatible with
88 CMake/Modules/FindVTK.cmake</span></small></small></big></big><big><big><small><small><span
89  style="font-weight: normal;"></span></small></small></big></big></li>
90         <li style="font-weight: bold;"><big><big><small><small><span
91  style="font-weight: normal;">add /usr/local/lib in /etc/ld.so.conf or
92 set LD_LIBRARY_PATH</span></small></small></big></big></li>
93       </ul>
94     </ul>
95   </ul>
96 </ul>
97 <big><big><big><small><small></small></small></big></big></big>
98 <h2><a class="mozTocH3" name="mozTocId775505"></a><big><big><big><small><small><span
99  style="font-weight: normal;">Known working configurations</span></small></small></big></big></big></h2>
100 <big><big><big><small><small><span style="font-weight: normal;">&nbsp;<small>
101 - gcc: </small></span></small></small></big></big></big><small><br
102  style="font-weight: normal;">
103 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;&nbsp;
104 &nbsp;&nbsp;&nbsp; 4.0.2 20051125 (Red Hat 4.0.2-8)</span></small></small></big></big><small><br
105  style="font-weight: normal;">
106 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;&nbsp;
107 &nbsp;&nbsp;&nbsp; 4.1.1 20070105 (Red Hat 4.1.1-51)</span></small></small></big></big><small><br
108  style="font-weight: normal;">
109 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
110 4.1.2 20070626 (Red Hat 4.1.2-13)<br>
111 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 4.2.0 (OpenSuse 10.3)<br
112  style="font-weight: normal;">
113 </span></small></small></big></big><small></small><big><big><small><small><span
114  style="font-weight: normal;">&nbsp;&nbsp;
115 - cmake: </span></small></small></big></big><small><br
116  style="font-weight: normal;">
117 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;&nbsp;
118 &nbsp;&nbsp;&nbsp; 2.4-patch 6</span></small></small></big></big><small><br
119  style="font-weight: normal;">
120 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;
121 - wxGTK-devel: </span></small></small></big></big><small><br
122  style="font-weight: normal;">
123 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
124 2.6.3</span></small></small></big></big><small><br
125  style="font-weight: normal;">
126 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
127 2.8</span></small></small></big></big><small><br
128  style="font-weight: normal;">
129 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;
130 - InsightToolkit:</span></small></small></big></big><small><br
131  style="font-weight: normal;">
132 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;&nbsp;
133 &nbsp;&nbsp;&nbsp; 2.8.1-5</span></small></small></big></big><small><br
134  style="font-weight: normal;">
135 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;&nbsp;
136 &nbsp;&nbsp;&nbsp; 3.2</span></small></small></big></big><small><br
137  style="font-weight: normal;">
138 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;&nbsp;
139 &nbsp;&nbsp;&nbsp; 3.4</span></small></small></big></big><small><br
140  style="font-weight: normal;">
141 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;
142 - vtk:</span></small></small></big></big><small><br
143  style="font-weight: normal;">
144 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;&nbsp;
145 &nbsp;&nbsp;&nbsp; 5.0.3-1</span></small></small></big></big><big><big><big><small><small><span
146  style="font-weight: normal;"></span></small></small></big></big></big><br>
147 <h2><a class="mozTocH3" name="mozTocId410988"></a><big><span
148  style="font-weight: normal;">Install from sources<span
149  style="font-weight: bold;"></span></span></big></h2>
150 <span style="font-weight: normal;">&nbsp;&nbsp;&nbsp; Uncompress the
151 archive or checkout the source from the cvs repository (see <a
152  href="download.html">Download page</a>).<br>
153 &nbsp;&nbsp;&nbsp; In the parent folder of the bbtk sources type :<br>
154 &nbsp;&nbsp;&nbsp; &gt; mkdir bbtkbin; cd bbtkbin<br>
155 &nbsp;&nbsp;&nbsp; &gt; ccmake ../bbtk<br>
156 &nbsp;&nbsp;&nbsp; <span style="font-style: italic;">Check the desired
157 options. See </span><a style="font-style: italic;"
158  href="#mozTocId915759">CMake build options</a><span
159  style="font-style: italic;"> for a description. </span><br>
160 <span style="font-style: italic;">&nbsp;&nbsp;&nbsp; Type 'c' many
161 times then 'g'.</span><br>
162 &nbsp;&nbsp;&nbsp; &gt; make<br>
163 &nbsp;&nbsp;&nbsp; &gt; make install<br>
164 &nbsp;&nbsp; Enjoy !<br>
165 <br>
166 </span>
167 <hr style="width: 100%; height: 2px;">
168 <h1><a class="mozTocH2" name="mozTocId777026"></a><big><big><big><small><small><span
169  style="font-weight: normal;">Windows </span></small></small></big></big></big></h1>
170 <big><big><big><small><small><span style="font-weight: normal;"></span></small></small></big></big></big>
171 <h2><a class="mozTocH3" name="mozTocId761363"></a><big><big><big><small><small><span
172  style="font-weight: normal;"></span></small></small></big></big></big><big><big><big><small><small><span
173  style="font-weight: normal;">Requirements</span></small></small></big></big></big></h2>
174 <h3>Mandatory</h3>
175 <ul>
176   <li><big><span style="font-weight: normal;">.net </span></big><br>
177     <big><big><small><small><span style="font-weight: normal;"></span></small></small></big></big></li>
178   <li><big><big><small><small><span style="font-weight: normal;"><a
179  href="download/win/cmake-2.4.6-win32-x86.exe">CMake
180 2.4 patch 6</a></span></small></small></big></big><big
181  style="font-weight: normal;"><big><big><small><small><small> to
182 generate the project file for .net</small><br>
183     </small></small></big></big></big></li>
184 </ul>
185 <h3><big><big><big><small><small><span style="font-weight: normal;"></span></small></small></big></big></big>Optional</h3>
186 <ul>
187   <li><big><big><small><small><span style="font-weight: normal;"><a
188  href="download/win/TortoiseCVS-1.8.31.exe">TortoiseVCS</a> (Direct CVS
189 tool within Explorer) and </span></small></small></big></big><big><big><small><small><span
190  style="font-weight: normal;"><a
191  href="http://www.creatis.insa-lyon.fr/mywiki/SSH">Putty</a> (Telnet
192 and SSH client) to get the sources from the cvs module</span></small></small></big></big></li>
193   <li><big><big><small><small><span style="font-weight: normal;"><a
194  href="download/wxWidgets-2.8.5.zip">wxWidgets-2.8.5</a> (sources) to
195 build graphical interface boxes<br>
196     </span></small></small></big></big></li>
197   <li><big><big><small><small><span style="font-weight: normal;"><a
198  href="download/vtk-5.0.3.tar.gz">VTK
199 5.0.3 source</a> (VTK 5.0.3 source code) to build vtk boxes (and if you
200 want :&nbsp; </span></small></small></big></big><big><big><small><small><span
201  style="font-weight: normal;"><a href="download/vtkdata-5.0.3.tar.gz">VTK
202 5.0.3 data</a> (VTK 5.0.3 data folder) and </span></small></small></big></big><big><big><small><small><span
203  style="font-weight: normal;"><a href="download/vtkDocHtml-5.0.3.tar.gz">VTK
204 5.0.3 documentation</a> (VTK 5.0.3 html documentation))</span></small></small></big></big></li>
205   <li><big><big><small><small><span style="font-weight: normal;"><a
206  href="download/InsightToolkit-3.4.0.tar.gz">InsightToolkit-3.4.0</a>
207 to build itk boxes</span></small></small></big></big><big><big><small><small><span
208  style="font-weight: normal;"></span></small></small></big></big></li>
209   <li><big><big><small><small><span style="font-weight: normal;"><a
210  href="download/win/basic-miktex-2.6.2742.exe">Miktex</a> (TeX compiler
211 and TeX-Pdf
212 translation tool) to build documentations</span></small></small></big></big><big><big><small><small><span
213  style="font-weight: normal;"></span></small></small></big></big></li>
214   <li><big><big><small><small><span style="font-weight: normal;"><a
215  href="download/win/tth_exe.zip">TTH</a>&nbsp;(TeX to HTML translation
216 tool) to build html documentations</span></small></small></big></big></li>
217   <li><big><big><small><small><span style="font-weight: normal;"><a
218  href="download/win/doxygen-1.5.3-setup.exe">Doxygen</a> to build the
219 code documentations</span></small></small></big></big></li>
220   <li><big><big><small><small><span style="font-weight: normal;"><a
221  href="download/win/graphviz-2.2.1.exe">Graphviz</a> to generate the
222 graphs in doxygen doc and black box pipelines graphs</span></small></small></big></big>&nbsp;&nbsp;
223     <br>
224   </li>
225 </ul>
226 <big><big><big><small><small><span style="font-weight: normal;"></span></small></small></big></big></big>
227 <h2><a class="mozTocH2" name="mozTocId681503"></a><big><big><big><small><small><span
228  style="font-weight: normal;">Known working configurations</span></small></small></big></big></big></h2>
229 <ul style="font-weight: bold;">
230   <li><big><big><small><small><span style="font-weight: normal;">.net
231 ????<br>
232     </span></small></small></big></big></li>
233   <li><big><big><small><small><span style="font-weight: normal;"></span></small></small></big></big><big><big><small><small><span
234  style="font-weight: normal;">cmake</span></small></small></big></big></li>
235   <ul>
236     <li><big><big><small><small><span style="font-weight: normal;">2.4
237 patch 6</span></small></small></big></big><big><big><small><small><span
238  style="font-weight: normal;"></span></small></small></big></big></li>
239   </ul>
240   <li><big><big><small><small><span style="font-weight: normal;">wxWidgets</span></small></small></big></big></li>
241   <ul>
242     <li><big><big><small><small><span style="font-weight: normal;">2.8.5</span></small></small></big></big></li>
243   </ul>
244   <li><big><big><small><small><span style="font-weight: normal;"></span></small></small></big></big><big><big><small><small><span
245  style="font-weight: normal;">InsightToolkit</span></small></small></big></big></li>
246   <ul>
247     <li><big style="font-weight: normal;"><big><small><small><span
248  style="font-weight: normal;">3.4.0</span></small></small></big></big><big><big><small><small><span
249  style="font-weight: normal;"></span></small></small></big></big></li>
250   </ul>
251   <li><big><big><small><small><span style="font-weight: normal;">vtk</span></small></small></big></big></li>
252   <ul>
253     <li><big><big><small><small><span style="font-weight: normal;">5.0.3</span></small></small></big></big><small><span
254  style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
255       </span></small><br>
256     </li>
257   </ul>
258 </ul>
259 <big><big><big><small><small><span style="font-weight: normal;"></span></small></small></big></big></big>
260 <h2><a class="mozTocH2" name="mozTocId618885"></a><big><big><big><small><small><span
261  style="font-weight: normal;">Steps<br>
262 </span></small></small></big></big></big></h2>
263 <big><big><big><small><small><span style="font-weight: normal;"></span></small></small></big></big></big>
264 <ul>
265   <li><big><big><small><small><span style="font-weight: normal;">Download
266 the required files listed before.</span></small></small></big></big></li>
267 </ul>
268 <ul>
269   <li><big><big><small><small><span style="font-weight: normal;">CMAKE
270 2.4.6</span></small></small></big></big><big><big><small><small><span
271  style="font-weight: normal;"></span></small></small></big></big><big><big><small><small><span
272  style="font-weight: normal;"></span></small></small></big></big></li>
273 </ul>
274 <big><big><small><small><span style="font-weight: normal;"></span></small></small></big></big><big><big><small><small><span
275  style="font-weight: normal;"> 1.
276 Uninstall previous versions of CMake (if any)</span></small></small></big></big><small><br
277  style="font-weight: normal;">
278 </small><big><big><small><small><span style="font-weight: normal;">2.
279 Double clic on the installation file cmake-2.4.6-win32-x86.exe</span></small></small></big></big><small><br
280  style="font-weight: normal;">
281 </small><big><big><small><small><span style="font-weight: normal;"></span></small></small></big></big>
282 <ul>
283   <li><big><big><small><small><span style="font-weight: normal;">Install
284 VTK 5.0.3</span></small></small></big></big></li>
285 </ul>
286 <big><big><small><small><span style="font-weight: normal;"></span></small></small></big></big><big><big><small><small><span
287  style="font-weight: normal;"> 1.
288 Decompress in C:\Creatis\VTK5.0.3, each one in a separate
289 folder, the
290 files </span></small></small></big></big><small><br
291  style="font-weight: normal;">
292 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;
293 - vtkdata-5.0.3.tar.gz<br>
294 &nbsp;&nbsp; - vtkDocHtml-5.0.3.tar.gz<br>
295 &nbsp;&nbsp; - basic-miktex-2.6.2742.exe.</span></small></small></big></big><small><br
296  style="font-weight: normal;">
297 </small><big><big><small><small><span style="font-weight: normal;">2.
298 Create the project of VTK5.0.3 in CMake with:</span></small></small></big></big><small><br
299  style="font-weight: normal;">
300 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;
301 - Binary folder C:\Creatis\VTK5.0.3Bin</span></small></small></big></big><small><br
302  style="font-weight: normal;">
303 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;
304 - Configuration:</span></small></small></big></big><small><br
305  style="font-weight: normal;">
306 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;&nbsp;&nbsp;
307 </span></small></small></big></big><small><small
308  style="font-weight: bold;"><small><span style="font-weight: normal;"></span></small></small><span
309  style="font-weight: bold;">BUILD_SHARED_LIBS --&gt; ON</span><br
310  style="font-weight: normal;">
311 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;&nbsp;&nbsp;
312 If you want to compile the examples set: </span></small></small></big></big><small><small
313  style="font-weight: bold;"><small><span style="font-weight: normal;"></span></small></small><span
314  style="font-weight: bold;">BUILD_EXAMPLES&nbsp; --&gt; ON</span><br
315  style="font-weight: normal;">
316 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;
317 - Check that the VTK_DATA_ROOT variable at CMake is
318 C:\Creatis\VTK5.0.3\VTKData</span></small></small></big></big><small><br
319  style="font-weight: normal;">
320 </small><big><big><small><small><span style="font-weight: normal;">&nbsp;&nbsp;
321 - Clic configure once again and create (ok) the project</span></small></small></big></big><small><br
322  style="font-weight: normal;">
323 </small><big><big><small><small><span style="font-weight: normal;">3.
324 Open
325 the created VTK project at C:\Creatis\VTK5.0.3Bin\VTK.sln and build the
326 entire solution</span></small></small></big></big><small><br
327  style="font-weight: normal;">
328 </small><big><big><small><small><span style="font-weight: normal;"></span></small></small></big></big>
329 <ul>
330   <li><big><big><small><small><span style="font-weight: normal;"> TTH</span></small></small></big></big><big><big><small><small><span
331  style="font-weight: normal;"> : Decompress </span></small></small></big></big><big><big><small><small><span
332  style="font-weight: normal;">the file tth_exe.zip</span></small></small></big></big><small>
333     </small><big><big><small><small><span style="font-weight: normal;">in
334 C:\Creatis\tth_exe </span></small></small></big></big><big><big><small><small><span
335  style="font-weight: normal;"></span></small></small></big></big><br>
336   </li>
337 </ul>
338 <big><big><small><small><span style="font-weight: normal;"></span></small></small></big></big>
339 <ul>
340   <li><big><big><small><small><span style="font-weight: normal;">MikTeX</span></small></small></big></big><big><big><small><small><span
341  style="font-weight: normal;"> : Double clic on the installation file
342 basic-miktex-2.6.2742.exe (it is
343 not necessary to change the default installation path)</span></small></small></big></big><br
344  style="font-weight: normal;">
345   </li>
346 </ul>
347 <small></small>
348 <ul>
349   <li><big><big><small><small><span style="font-weight: normal;">BBTK</span></small></small></big></big></li>
350 </ul>
351 <big><big><small><small><span style="font-weight: normal;"></span></small></small></big></big>
352 <ul>
353   <ul>
354     <li><big><big><small><small><span style="font-weight: normal;">Uncompress
355 the sources in C:\Creatis\bbtk or checkout the source from the cvs </span></small></small></big></big><span
356  style="font-weight: normal;">(see <a href="download.html">Download
357 page</a>).</span></li>
358     <li><big><big><small><small><span style="font-weight: normal;">Create
359 the build folder </span></small></small></big></big><big><big><small><small><span
360  style="font-weight: normal;">C:\Creatis\bbtkBin</span></small></small></big></big><span
361  style="font-weight: normal;"></span></li>
362     <li><span style="font-weight: normal;">Drag and drop the file
363 C:\Creatis\bbtk\CMakeLists.txt on the CMakeSetup icon</span><big
364  style="font-weight: bold;"><big><small><small><span
365  style="font-weight: normal;"></span></small></small></big></big></li>
366     <ul>
367       <li><big style="font-weight: bold;"><big><small><small><span
368  style="font-weight: normal;"></span></small></small></big></big><span
369  style="font-weight: normal;">Check the desired
370 options for the build. See </span><a style="font-weight: normal;"
371  href="install.html#mozTocId915759">CMake build options</a><span
372  style="font-weight: normal;"> for a description.</span><span
373  style="font-weight: normal;"></span></li>
374       <li><span style="font-weight: normal;">If
375 you want to build with vtk :</span><big><big><small><small><span
376  style="font-weight: normal;"></span></small></small></big></big><big><big><small><small><span
377  style="font-weight: normal;"></span></small></small></big></big></li>
378       <ul>
379         <li><big><big><small><small><span style="font-weight: normal;">Enable
380 Show Advanced Values</span></small></small></big></big><big><big><small><small><span
381  style="font-weight: normal;"></span></small></small></big></big></li>
382         <li><big><big><small><small><span style="font-weight: normal;">Clic
383 configure twice and check that the VTK_DIR variable at CMake
384 is C:/Creatis/VTK5.0.3Bin</span></small></small></big></big></li>
385         <li><big><big><small><small><span style="font-weight: normal;">Clic
386 configure one more time</span></small></small></big></big></li>
387       </ul>
388       <li><big><big><small><small><span style="font-weight: normal;">If
389 you want to build with itk :</span></small></small></big></big></li>
390       <ul>
391         <li><big><big><small><small><span style="font-weight: normal;">Enable
392 Show Advanced Values</span></small></small></big></big><big><big><small><small><span
393  style="font-weight: normal;"></span></small></small></big></big></li>
394       </ul>
395       <ul>
396         <li><big><big><small><small><span style="font-weight: normal;">Clic
397 configure twice and check that the ITK_DIR variable at CMake
398 is C:/Creatis/InsightToolkitBin</span></small></small></big></big></li>
399       </ul>
400       <ul>
401         <li><big><big><small><small><span style="font-weight: normal;">Clic
402 configure one more time</span></small></small></big></big></li>
403       </ul>
404       <li><big><big><small><small><span style="font-weight: normal;">Clic
405 configure many times and create the project </span></small></small></big></big><big><big><small><small><span
406  style="font-weight: normal;"> (click ok).</span></small></small></big></big><big><big><small><small><span
407  style="font-weight: normal;"></span></small></small></big></big></li>
408     </ul>
409     <li><big><big><small><small><span style="font-weight: normal;"><span
410  style="font-weight: bold;">To build with WxWidgets</span> : Copy
411 the debug dll files like wxbase26d_&lt;LIBRARY_NAME&gt;*.dll from
412 wxWidgets to the bbtk binaries directory.&nbsp; Example : copy </span></small></small></big></big><big><big><small><small><span
413  style="font-weight: normal;">C:\Creatis\wxWidgets-2.6.3\wxWidgets-2.6.3\lib\vc_dll
414       </span></small></small></big></big><big><big><small><small><span
415  style="font-weight: normal;">to: C:\Creatis\bbtkBin\bin\debug</span></small></small></big></big><big><big><small><small><span
416  style="font-weight: normal;"></span></small></small></big></big></li>
417     <li><big><big><small><small><span style="font-weight: normal;"><span
418  style="font-weight: bold;">To build with VTK</span> : Copy
419 all the debug dll files from VTK5.0.3 to the bbtk binaries directory.
420 Example : copy</span></small></small></big></big><big><big><small><small><span
421  style="font-weight: normal;"> all files in
422 C:\Creatis\VTK5.0.3Bin\bin\debug to</span></small></small></big></big><big><big><small><small><span
423  style="font-weight: normal;">: C:\Creatis\bbtkBin\bin\debug</span></small></small></big></big></li>
424     <li><big><big><small><small><span style="font-weight: normal;">To
425 build with ITK : ...</span></small></small></big></big><big><big><small><small><span
426  style="font-weight: normal;"></span></small></small></big></big></li>
427     <li><big><big><small><small><span style="font-weight: normal;">Open
428 the solution created by cmake : C:\Creatis\bbtkBin\BBTK.sln and build
429 the entire solution.</span></small></small></big></big></li>
430     <ul>
431       <li><big><big><small><small><span style="font-weight: normal;">If
432 you get dll error messages close the message(s) and after it's
433 done, rebuild the complete solution.</span></small></small></big></big><big><big><small><small><span
434  style="font-weight: normal;"></span></small></small></big></big></li>
435       <li><big><big><small><small><span style="font-weight: normal;">If
436 you get package intallation messages for missing and required
437 files like <span style="font-style: italic;">fileName.sty</span>,
438 install them all.</span></small></small></big></big></li>
439       <li style="font-weight: normal;">The packages correspond to
440 on-line complements that the MikTex program
441 needs to build the BBTK documentation.</li>
442     </ul>
443   </ul>
444 </ul>
445 Enjoy !<br>
446 </div>
447 <div style="text-align: left;">
448 <hr style="width: 100%; height: 2px;"></div>
449 <div style="text-align: left;">
450 <h1><a class="mozTocH1" name="mozTocId915759"></a>CMake build options</h1>
451 <span style="font-weight: normal;">The options in grey only appear if
452 the last non grey option is set to
453 ON (e.g. itk_IMAGE_DIM_2 and the following ones in grey only appear if
454 BUILD_PACKAGE_itk is ON).</span><br style="font-weight: normal;">
455 <span style="font-weight: normal;">Advanced options are not shown
456 here... </span><br>
457 <br>
458 <table border="1" cellpadding="2" cellspacing="2" width="100%">
459   <tbody>
460     <tr>
461       <td style="vertical-align: top;"><span style="font-weight: bold;">Option</span><br>
462       </td>
463       <td style="vertical-align: top;"><span style="font-weight: bold;">Explaination</span><br>
464       </td>
465       <td style="vertical-align: top;"><span style="font-weight: bold;">Default</span></td>
466     </tr>
467     <tr>
468       <td>ALL_BUILD<br>
469       </td>
470       <td>Set to ON to build all the components of the toolkit<br>
471       </td>
472       <td style="vertical-align: top;">OFF<br>
473       </td>
474     </tr>
475     <tr>
476       <td>BBTK_DATA_ROOT<br>
477       </td>
478       <td>Enter the path to the bbtk_data folder (will be written in
479 the default bbtk_config.xml file)<br>
480       </td>
481       <td style="vertical-align: top;">-<br>
482       </td>
483     </tr>
484     <tr>
485       <td>BUILD_APPLICATIONS<br>
486       </td>
487       <td> Set to ON to build bbtk applications : interpreter
488 (bbi), xml to C++ code (bbfy), package documentation (bbdoc)</td>
489       <td style="vertical-align: top;">ON<br>
490       </td>
491     </tr>
492     <tr>
493       <td
494  style="vertical-align: top; background-color: rgb(204, 204, 204);">&nbsp;&nbsp;
495 BUILD_bbi_GRAPHICAL<br>
496       </td>
497       <td
498  style="vertical-align: top; background-color: rgb(204, 204, 204);">Set
499 to ON to build bbi in graphical mode allowing to use widget boxes
500 (requires wxWidgets) <br>
501       </td>
502       <td
503  style="vertical-align: top; background-color: rgb(204, 204, 204);">OFF<br>
504       </td>
505     </tr>
506     <tr>
507       <td>BUILD_EXAMPLES<br>
508       </td>
509       <td>Set to ON to build the C++ examples</td>
510       <td style="vertical-align: top;">OFF<br>
511       </td>
512     </tr>
513     <tr>
514       <td>BUILD_PACKAGE_itk<br>
515       </td>
516       <td>Set to ON to build the package itk (requires the
517 InsightToolkit installed)<br>
518       </td>
519       <td style="vertical-align: top;">OFF<br>
520       </td>
521     </tr>
522     <tr>
523       <td
524  style="vertical-align: top; background-color: rgb(204, 204, 204);">&nbsp;&nbsp;
525 itk_IMAGE_DIM_2<br>
526       </td>
527       <td
528  style="vertical-align: top; background-color: rgb(204, 204, 204);">Set
529 to ON to compile itk images of dimension 2<br>
530       </td>
531       <td
532  style="vertical-align: top; background-color: rgb(204, 204, 204);">ON<br>
533       </td>
534     </tr>
535     <tr>
536       <td
537  style="vertical-align: top; background-color: rgb(204, 204, 204);">&nbsp;&nbsp;
538 itk_IMAGE_DIM_3</td>
539       <td
540  style="vertical-align: top; background-color: rgb(204, 204, 204);">Set
541 to ON to compile itk images of dimension 3<br>
542       </td>
543       <td
544  style="vertical-align: top; background-color: rgb(204, 204, 204);">ON<br>
545       </td>
546     </tr>
547     <tr>
548       <td
549  style="vertical-align: top; background-color: rgb(204, 204, 204);">&nbsp;&nbsp;
550 itk_IMAGE_DIM_4 </td>
551       <td
552  style="vertical-align: top; background-color: rgb(204, 204, 204);">Set
553 to ON to compile itk images of dimension 4<br>
554       </td>
555       <td
556  style="vertical-align: top; background-color: rgb(204, 204, 204);">ON<br>
557       </td>
558     </tr>
559     <tr>
560       <td
561  style="vertical-align: top; background-color: rgb(204, 204, 204);">&nbsp;&nbsp;
562 itk_IMAGE_TYPE_CHAR<br>
563       </td>
564       <td
565  style="vertical-align: top; background-color: rgb(204, 204, 204);">Set
566 to ON to compile itk images of type char <br>
567       </td>
568       <td
569  style="vertical-align: top; background-color: rgb(204, 204, 204);">ON<br>
570       </td>
571     </tr>
572     <tr>
573       <td
574  style="vertical-align: top; background-color: rgb(204, 204, 204);">&nbsp;&nbsp;
575 itk_IMAGE_TYPE_DOUBLE</td>
576       <td
577  style="vertical-align: top; background-color: rgb(204, 204, 204);">Set
578 to ON to compile itk images of type double<br>
579       </td>
580       <td
581  style="vertical-align: top; background-color: rgb(204, 204, 204);">ON<br>
582       </td>
583     </tr>
584     <tr>
585       <td
586  style="vertical-align: top; background-color: rgb(204, 204, 204);">&nbsp;&nbsp;
587 itk_IMAGE_TYPE_FLOAT<br>
588       </td>
589       <td
590  style="vertical-align: top; background-color: rgb(204, 204, 204);">Set
591 to ON to compile itk images of type float<br>
592       </td>
593       <td
594  style="vertical-align: top; background-color: rgb(204, 204, 204);">ON<br>
595       </td>
596     </tr>
597     <tr>
598       <td
599  style="vertical-align: top; background-color: rgb(204, 204, 204);">&nbsp;&nbsp;
600 itk_IMAGE_TYPE_INT<br>
601       </td>
602       <td
603  style="vertical-align: top; background-color: rgb(204, 204, 204);">Set
604 to ON to compile itk images of type int<br>
605       </td>
606       <td
607  style="vertical-align: top; background-color: rgb(204, 204, 204);">ON<br>
608       </td>
609     </tr>
610     <tr>
611       <td
612  style="vertical-align: top; background-color: rgb(204, 204, 204);">&nbsp;&nbsp;
613 itk_IMAGE_TYPE_SHORT<br>
614       </td>
615       <td
616  style="vertical-align: top; background-color: rgb(204, 204, 204);">Set
617 to ON to compile itk images of type short<br>
618       </td>
619       <td
620  style="vertical-align: top; background-color: rgb(204, 204, 204);">ON<br>
621       </td>
622     </tr>
623     <tr>
624       <td
625  style="vertical-align: top; background-color: rgb(204, 204, 204);">&nbsp;&nbsp;
626 itk_IMAGE_TYPE_UCHAR<br>
627       </td>
628       <td
629  style="vertical-align: top; background-color: rgb(204, 204, 204);">Set
630 to ON to compile itk images of type unsigned char<br>
631       </td>
632       <td
633  style="vertical-align: top; background-color: rgb(204, 204, 204);">ON<br>
634       </td>
635     </tr>
636     <tr>
637       <td
638  style="vertical-align: top; background-color: rgb(204, 204, 204);">&nbsp;&nbsp;
639 itk_IMAGE_TYPE_UINT<br>
640       </td>
641       <td
642  style="vertical-align: top; background-color: rgb(204, 204, 204);">Set
643 to ON to compile itk images of type unsigned int<br>
644       </td>
645       <td
646  style="vertical-align: top; background-color: rgb(204, 204, 204);">ON<br>
647       </td>
648     </tr>
649     <tr>
650       <td
651  style="vertical-align: top; background-color: rgb(204, 204, 204);">&nbsp;&nbsp;
652 itk_IMAGE_TYPE_USHORT<br>
653       </td>
654       <td
655  style="vertical-align: top; background-color: rgb(204, 204, 204);">Set
656 to ON to compile itk images of type unsigned short<br>
657       </td>
658       <td
659  style="vertical-align: top; background-color: rgb(204, 204, 204);">ON<br>
660       </td>
661     </tr>
662     <tr>
663       <td>BUILD_PACKAGE_itkvtk<br>
664       </td>
665       <td>Set to ON to build the package itkvtk (requires the
666 InsightToolkit and VTK installed)</td>
667       <td style="vertical-align: top;">OFF<br>
668       </td>
669     </tr>
670     <tr>
671       <td>BUILD_PACKAGE_std<br>
672       </td>
673       <td>Set to ON to build the package std<br>
674       </td>
675       <td style="vertical-align: top;">ON<br>
676       </td>
677     </tr>
678     <tr>
679       <td>BUILD_PACKAGE_vtk<br>
680       </td>
681       <td>Set to ON to build the package vtk (requires VTK installed)</td>
682       <td style="vertical-align: top;">OFF<br>
683       </td>
684     </tr>
685     <tr>
686       <td>BUILD_PACKAGE_wx<br>
687       </td>
688       <td>Set to ON to build the package wx (requires wxWidgets
689 installed)</td>
690       <td style="vertical-align: top;">OFF<br>
691       </td>
692     </tr>
693     <tr>
694       <td>BUILD_PACKAGE_wxvtk<br>
695       </td>
696       <td> Set to ON to build the package wxvtk (requires VTK and
697 wxWidgets installed)</td>
698       <td style="vertical-align: top;">OFF<br>
699       </td>
700     </tr>
701     <tr>
702       <td>BUILD_SHARED_LIBS<br>
703       </td>
704       <td> Set to ON to build bbtk as a shared library (.so/.dll) -
705 Remark that packages as always build as such<br>
706       </td>
707       <td style="vertical-align: top;">ON<br>
708       </td>
709     </tr>
710     <tr>
711       <td>BUILD_bbtk_DOC<br>
712       </td>
713       <td> Set to ON to build documentations<br>
714       </td>
715       <td style="vertical-align: top;">OFF<br>
716       </td>
717     </tr>
718     <tr>
719       <td style="background-color: rgb(204, 204, 204);">&nbsp;&nbsp;
720 BUILD_bbtk_DOC_DOXYGEN<br>
721       </td>
722       <td style="background-color: rgb(204, 204, 204);"> Set to ON to
723 build doxygen documentation of bbtk and of the selected packages<br>
724       </td>
725       <td
726  style="vertical-align: top; background-color: rgb(204, 204, 204);">ON<br>
727       </td>
728     </tr>
729     <tr>
730       <td style="background-color: rgb(204, 204, 204);">&nbsp;&nbsp;
731 BUILD_bbtk_DOC_GUIDES_HTML<br>
732       </td>
733       <td style="background-color: rgb(204, 204, 204);"> Set to ON to
734 build bbtk Users' guide, Package developers' guide and Developers'
735 guide in html format (requires LaTeX and tth)<br>
736       </td>
737       <td
738  style="vertical-align: top; background-color: rgb(204, 204, 204);">ON<br>
739       </td>
740     </tr>
741     <tr>
742       <td style="background-color: rgb(204, 204, 204);">&nbsp;&nbsp;
743 BUILD_bbtk_DOC_GUIDES_PDF<br>
744       </td>
745       <td style="background-color: rgb(204, 204, 204);"> Set to ON to
746 build bbtk Users' guide, Package developers' guide and
747 Developers' guide in pdf format (requires LaTeX)</td>
748       <td
749  style="vertical-align: top; background-color: rgb(204, 204, 204);">ON<br>
750       </td>
751     </tr>
752     <tr>
753       <td style="background-color: rgb(204, 204, 204);">&nbsp;&nbsp;
754 BUILD_bbtk_DOC_PACKAGE<br>
755       </td>
756       <td style="background-color: rgb(204, 204, 204);"> Set to ON to
757 generate the packages html doc with bbdoc<br>
758       </td>
759       <td
760  style="vertical-align: top; background-color: rgb(204, 204, 204);">ON<br>
761       </td>
762     </tr>
763     <tr>
764       <td>CMAKE_BUILD_TYPE<br>
765       </td>
766       <td>Set to "Debug" or "Release" <br>
767       </td>
768       <td style="vertical-align: top;">-<br>
769       </td>
770     </tr>
771     <tr>
772       <td>CMAKE_INSTALL_PREFIX<br>
773       </td>
774       <td> Set the install location<br>
775       </td>
776       <td style="vertical-align: top;">/usr/local<br>
777       </td>
778     </tr>
779     <tr>
780       <td>GENERATE_RPMBUILD_SPEC<br>
781       </td>
782       <td> Set to ON to create a .spec file to generate a rpm with
783 rpmbuild <br>
784       </td>
785       <td style="vertical-align: top;">OFF<br>
786       </td>
787     </tr>
788     <tr>
789       <td>USE_CONFIGURATION_FILE<br>
790       </td>
791       <td> Set to ON to use the configuration file (bbtk_config.xml) in
792 bbtk<br>
793       </td>
794       <td style="vertical-align: top;">OFF<br>
795       </td>
796     </tr>
797     <tr>
798       <td>VERBOSE_MAKEFILE <br>
799       </td>
800       <td> Set to ON to generate a verbose makefile which echos the
801 commands issued<br>
802       </td>
803       <td style="vertical-align: top;">OFF<br>
804       </td>
805     </tr>
806     <tr>
807       <td>bbtk_COMPILE_DEBUG_MESSAGES<br>
808       </td>
809       <td>Set to ON to compile debug messages in bbtk</td>
810       <td style="vertical-align: top;">OFF<br>
811       </td>
812     </tr>
813     <tr>
814       <td>bbtk_COMPILE_ERROR_MESSAGES<br>
815       </td>
816       <td> Set to ON to compile error messages in bbtk</td>
817       <td style="vertical-align: top;">ON<br>
818       </td>
819     </tr>
820     <tr>
821       <td>bbtk_COMPILE_MESSAGES<br>
822       </td>
823       <td>Set to ON to compile normal messages in bbtk</td>
824       <td style="vertical-align: top;">ON<br>
825       </td>
826     </tr>
827     <tr>
828       <td>bbtk_COMPILE_WARNING_MESSAGES<br>
829       </td>
830       <td> Set to ON to compile warning messages in bbtk<br>
831       </td>
832       <td style="vertical-align: top;">ON<br>
833       </td>
834     </tr>
835   </tbody>
836 </table>
837 </div>
838 </div>
839 </body>
840 </html>