]> Creatis software - cpPlugins.git/blob - COMPILATION
Widget integration (step 2/6). WARNING: IT DOES NOT COMPILE YETgit shortlog !
[cpPlugins.git] / COMPILATION
1 @description
2   The project uses CMake as compilation helper. It should compile on the three
3   major box flavors (linux, windows, mac). However, as of december 2014, it
4   has only been tested on linux Fedora 20 and Ubuntu 14.04.
5
6 @prerequisites
7
8   1. CMake (>=2.8.12.2)
9
10   2. Visualization Toolkit -VTK- (>=6.1.0)
11     2.1 Steps
12       Open CMake
13       Select the soruce and the binary folder
14       Select the desired version of generator to compile (Visual Studio 12 2013) and click on configure and wait until the options are enabled, and the make sure
15     2.2 Required cmake flags:
16       BUILD_EXAMPLES OFF
17       BUILD_SHARED_LIBS ON
18       BUILD_TESTING OFF
19       Module_VtkGUISupportQt ON
20       Module_VtkGUISupportQtOpenGL ON
21       Module_VtkGUISupportQtSql OFF
22       Module_VtkGUISupportQtWebkit OFF
23
24
25   3. Insight Toolkit -ITK- (>=4.6.0)
26     3.1 Required cmake flags:
27       BUILD_SHARED_LIBS:BOOL=ON
28       Module_ITKVtkGlue:BOOL=ON
29
30   4. WARNING: Notes on compilation on MS-Windows
31      As the time being (circa dec 2014), I've been using MSVC-2013
32      (compiler version 12). As expected, weird behavior is related to
33      this config. Please take into account the following in order to
34      have a successful compilation:
35      4.1 If you want to build the Qt-based code, please be sure that
36          it was compiled with EXACTLY the same compiler you are using.
37      4.2 Since the dll load-unload procedure in MSWin is kind of magic,
38          VTK should be compiled as shared libraries and ITK should be
39          compiled as static libraries. This allows a correct
40          execution of the SmartPointer's thus preventing anoying crashes.
41      4.3 If you found more problems in any MSWin config, please let us know at
42          florez-l@javeriana.edu.co
43   
44
45 @cmake_flags
46   BUILD_DEMOS:BOOL
47     Build example applications? (most of them are command line)
48   CMAKE_BUILD_TYPE:STRING
49     Debug/Release?
50   CMAKE_INSTALL_PREFIX:STRING
51     Where to put installation products? (in windows this option has no use)
52
53 ## eof - $RCSfile$