]> Creatis software - creaToolsTools.git/blob - Linux/README.txt
#3401 creaToolsTools Feature New Normal - vtk9itk4wx3-macos
[creaToolsTools.git] / Linux / README.txt
1 # ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
4 #                        pour la Santé)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 #
7 #  This software is governed by the CeCILL-B license under French law and 
8 #  abiding by the rules of distribution of free software. You can  use, 
9 #  modify and/ or redistribute the software under the terms of the CeCILL-B 
10 #  license as circulated by CEA, CNRS and INRIA at the following URL 
11 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
12 #  or in the file LICENSE.txt.
13 #
14 #  As a counterpart to the access to the source code and  rights to copy,
15 #  modify and redistribute granted by the license, users are provided only
16 #  with a limited warranty  and the software's author,  the holder of the
17 #  economic rights,  and the successive licensors  have only  limited
18 #  liability. 
19 #
20 #  The fact that you are presently reading this means that you have had
21 #  knowledge of the CeCILL-B license and that you accept its terms.
22 # ------------------------------------------------------------------------  
23
24
25
26 #######################################
27 To install the CreaTools under Linux, use installscript.
28 menu.sh is deprecated. This script should not be used. (It will disappear in a near future.)
29
30
31 ===================================
32 Documentation for installscript
33 ===================================
34
35 Launch 'installscript' in command line to see the list of options.
36
37 ===== How to Install =======
38 0) Not forget:
39    A. Install your ssh key: https://www.creatis.insa-lyon.fr/mywiki/SSH
40        Note: -Put your key in .ssh directory.
41              -Change de right of your 
42                   chmod ugo-rwx  id_dsa 
43                   chmod u+rwx id_dsa 
44    B. Send an email to the web master Fabrice Bellet <fabrice.bellet@creatis.insa-lyon.fr> 
45       to be include in the DataBase-GIT of Creatools.
46
47
48 1)
49 ./installscript all
50
51 .....That's all  :-).....
52
53
54
55
56 ======= Update creatools   =======
57 ./installscript creatools
58
59
60
61
62
63
64 ==========================================
65 ==========================================
66 ==========================================
67
68
69 Exemples of differents configurations :
70
71 1)
72 ./installscript config
73 You can check the configuration in scripts/CreaTools-configure.sh
74
75 2)
76 ./installscript 3rd
77
78 3)
79 ./installscript creatools
80
81
82
83
84
85 ==========================================
86 ==========================================
87 ==========================================
88
89
90 Exemples of differents configurations :
91
92
93 ===== How to Install - HTML VERSION =======
94 1)
95 ./installscript -os Fedora -ncore 8 -gdir  $HOME/Creatis/creaTools -instprefix  $HOME/Creatis/creaTools/creatools_install -instprefix3  $HOME/Creatis/creaTools/thirdparty_install -html -build Release config
96
97 2) As root
98 ./installscript 3rd
99
100 3) 
101 ./installscript creatools
102
103
104 ===== How to Install - GIT VERSION =======
105 0) Not forget:
106    A. Install your ssh key: https://www.creatis.insa-lyon.fr/mywiki/SSH
107        Note: -Put your key in .ssh directory.
108              -Change de right of your 
109                   chmod ugo-rwx  id_dsa 
110                   chmod u+rwx id_dsa 
111    B. Send an email to the web master Fabrice Bellet <fabrice.bellet@creatis.insa-lyon.fr> 
112       to be include in the DataBase-GIT of Creatools.
113
114                           
115 1)
116 ./installscript -os Fedora -ncore 8 -gdir  $HOME/Creatis/creaTools -instprefix  $HOME/Creatis/creaTools/creatools_install -instprefix3  $HOME/Creatis/creaTools/thirdparty_install -git -build Release config
117
118 2) As root
119 ./installscript 3rd
120
121 3) 
122 ./installscript creatools
123
124
125
126
127
128
129 ====================================
130
131 -- Some examples:
132
133
134 ====
135
136 # to configure only
137 ./installscript -gdir $HOME/Creatis/All/creainstall config
138 or
139 ./installscript -git -ncore 4 -gdir $HOME/Creatis/All/creainstall config
140
141
142 # to configure / compile-install all packages and the creatools themselves 
143 ./installscript -git -ncore 4 -gdir $HOME/work/creatools/creainstall all
144
145 # compile-install only one part (vtk  for example) ONCE CONFIG HAS BEEN RUN 
146 ./installscript 3rd-vtk
147
148
149 -- If you choose Git: 
150 You must have shared your public key on Git CREATIS server.
151 To do so, send your public SSH key to Fabrice Bellet specifying the Git repository name. You need to do it for the Git server, even if you already did it for the CVS or SVN server. 
152
153
154
155 ===================================
156 Documentation for menu.sh
157 ===================================
158 WARNING :
159 Use always bash (never use sh!)
160
161 A) bash menu.sh
162
163 You will be prompted to say what you want to do :
164
165  Configure :........................0 
166  Install Third Party Libraries :....1 (as root)
167  Get and Install the 'CreaTools':...2
168  or
169  Get the 'CreaTools' source files :.2.1 (GIT : as user!)
170  Compile   the CreaTools :..........2.2
171  Install   the CreaTools :..........2.3
172  
173  Use compact menu :.................5
174  or
175  Use expanded menu :................5
176  Uninstall the CreaTools :..........6 
177  Help ..............................7 Help about this menu
178
179  Show some Environment Variables ...8
180  Exit :.............................9
181
182
183 B) As a user, choose 'Configure' (0)
184
185 You will be prompted to give your preferences :
186
187 "Operating System : Fedora/Ubuntu/MacOS"
188 "Number of Cores"
189 "Name of the Generation Directory"
190 "Boolean for Doc Generation : YES/NO"
191 "Where do you want to get source files from : GIT/HTML"
192
193 -> if you chose GIT: 
194 1/ you must have shared your public key on CREATIS server
195
196 "GIT User name"
197 "Login 'User' name"
198 "Login 'Group' name"
199 "Build type : Release/Debug"
200 "Gdcm version : GDCM1/GDCM2"
201 "ITK version : ITK3/ITK4"
202
203 Note : Currently, only GDCM1 and ITK 3 are supported.
204
205 C)  - Exit the menu (9).
206     - Switch as root and run 'bash menu.sh'.
207     - Choose 'Install Third Party Libraries' (1).
208     - Close the terminal window.
209
210 D) - Open a new terminal window.
211    - Switch as a user.
212    - Launch 'bash menu.sh'. 
213    - Choose 'Get and Install the CreaTools source files' (2).
214    - Close the terminal window.
215
216 E) Open a new terminal window.
217    You can work, by launching creaTools.sh!
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233 ===============================================================
234 ===============================================================
235 ===============================================================
236 ===============================================================
237
238
239 2020-03-20
240 -- Update macport
241 https://trac.macports.org/wiki/Migration
242         xcode-select --install
243
244         -MacPort install last version
245         https://www.macports.org/install.php
246
247
248 /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wx-config
249 /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wxrc-3.0
250
251 /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/3.0/bin/wx-config
252 /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/3.0/bin/wxrc-3.0
253
254
255 /Users/davila/Creatis/C9/tpli/lib/cmake/vtk-8.2
256 ===============================================================
257 ===============================================================
258 ===============================================================
259 ===============================================================
260
261
262 Modif
263
264 RRTI. crea bbtk
265
266 bbtkPackage. cxx / h
267 bbtkFactory
268 bbtkData.h
269
270 --std--
271 https://stackoverflow.com/questions/16229297/why-is-the-c-standard-library-not-working
272
273
274 --- TO DO --
275 1. Cual es el mecanismo equivalente al .bashrc
276 2. La lectura de las variables del sistema del TPL esta funcionando pero no de creatools
277 3. Path en el archivo .sh para encontrar creatools , variables del sistema 
278 4. Adicione links simbólicos en bin para encontrares bbi.app/..... 
279
280
281 flags creaMararcasVisu
282 -fPIC   -std=c++11   -Xpreprocessor -fopenmp -lomp  -L/opt/local/lib/libomp   
283
284 flags. bbtkGEditor
285 -fPIC -std=c++11
286
287 --openmp--
288 port install amp
289
290
291 OpenGL Extensions Viewer
292
293 NSView
294 https://groups.google.com/forum/#!topic/wx-users/3EpM_oTUST8
295
296
297
298 port install  libGLU
299 port install  gdk-pixbuf2 -x11
300 port install cairo +quartz
301 port install pango +quartz
302 port install gtk3 +quartz -x11
303 port install wxgtk-3.0 +quartz -x11
304
305 port install  gtk-osx-application-gtk3
306 -------
307
308 port install cmake
309 port install boost
310 port install wxgtk-3.0
311
312 commontair in  creaRTTI.cxx :  run_time_up_or_down_cast.    --->>> abi::__class_type_info
313
314 -----------------------------------------------
315
316 wxWidgets-3.0  wxWidgets-common, wxWidgets_select
317
318 https://gstreamer.freedesktop.org/documentation/tutorials/basic/toolkit-integration.html
319 https://mail.gnome.org/archives/gtk-app-devel-list/2015-March/msg00045.html
320
321 en build-mac
322 ../configure --with-macosx-version-min=10.8
323
324 ../configure --with-macosx-version-min=10.8  --prefix=/Users/davila/Creatis/creaTools/thirdparty_sources/wxWidgets-3.1.1/build-mac-install
325
326
327 #include <ciso646>  // detect std::lib
328 #ifdef _LIBCPP_VERSION
329 // using libc++
330 #ifndef HAVE_TYPE_TRAITS
331 #define HAVE_TYPE_TRAITS 1
332 #endif
333 #else 
334 // using libstdc++
335 #ifndef HAVE_TR1_TYPE_TRAITS
336 #define HAVE_TR1_TYPE_TRAITS 1
337 #endif
338 #endif