~phcteam/clinica-project/master

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Clinica is medical records manager thought to be simple to use and targeted mainly
to a single doctor.

1) Installation instructions

Installing Clinica from a release tarball is as simple as:

 $ mkdir build  
 $ cmake ..
 $ make 
 $ make install 
 
You will need a bunch of dependencies that configure will list
if missing, that more or less are: libgtk-3-dev, libgee-dev, 
libpeas-dev, libpeasgtk-dev, libsqlite3-dev, libjson-glib,
gobject-introspection, valac, librsvg2 and libsoup-2.4

1.1) Cross compile from Linux to Windows

If you need to create a Windows build of Clinica from Linux you may follow
these steps:

 *) Install the cross compiler i686-w64-mingw32-gcc
 *) Download all the dependencies needed. OBS is your friend here 
    You will need the script download-mingw-rpm.py that is easily
    found searching in Google and then execute in a folder:

     python3 download-mingw-rpm.py --no-clean --deps gtk3-devel
     python3 download-mingw-rpm.py --no-clean --deps librsvg-devel
     python3 download-mingw-rpm.py --no-clean --deps -r openSUSE_12.2 -p home:lrobol jansson-devel
     python3 download-mingw-rpm.py --no-clean --deps libsqlite-devel
     python3 download-mingw-rpm.py --no-clean --deps libgee-devel
     python3 download-mingw-rpm.py --no-clean --deps libsoup-devel

     python3 download-mingw-rpm.py --no-clean --deps sqlite
     python3 download-mingw-rpm.py --no-clean --deps libgee
     python3 download-mingw-rpm.py --no-clean --deps libjson-glib
     python3 download-mingw-rpm.py --no-clean --deps libsoup
     python3 download-mingw-rpm.py --no-clean --deps librsvg

    *) Let's say that the folder where the script has been executed
    is /path/to/mingw/root. Now go in the source directory of
    Clinica and execute the following command:

     mkdir build && cd build/
     export PKG_CONFIG_PATH=/path/to/mingw/root/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig
     export PKG_CONFIG_SYSROOT_DIR=/path/to/mingw/root
     cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-Windows.cmake ..

     make 

    *) Copy the executables in the same place:

     # Copy the executables in the same place
     cp clinica/clinica.exe .
     cp libclinica/libclinica.dll .
     cp /path/to/mingw/root/usr/i686-w64-mingw32/sys-root/mingw/usr/bin*.dll .

    *) Compile gsettings schema:

     cp ../data/org.phcteam.clinica.gschema.xml .
     glib-compile-schemas .

    *) You may now build the installer, if you have makensis.exe installed (works
    nice with wine). 

     cp ../data/clinica-installer.nsi
     wine ~/.wine/drive_c/Program\ Files/NSIS/makensis.exe clinica-installer.nsi

    *) Execute clinica for testing:
    
     wine clinica.exe

    *) Distribute the installer SetupClinica.exe


2) Using Clinica

Clinica will install in your application menu, and the help system
in the gnome help. You can open it by hand using "yelp ghelp:clinica"
or in clinica from Help -> Contents.

3) Reporting bugs

Bug reports and suggestions are welcome, please let us know what you
think of Clinica and what you will like to see implemented at the
address phcteam@poisson.phc.unipi.it;