ubuntu-lts.md 1.67 KB
Newer Older
Jean-Loup Haberbusch's avatar
Jean-Loup Haberbusch committed
1
# Setup CamiTK 4 Development Environment on Ubuntu LTS (Xenial 16.04 or Bionic 18.04)
Jean-Loup Haberbusch's avatar
Jean-Loup Haberbusch committed
2
3

In order to develop on Ubuntu LTS (16.04 or 18.04), you will need to:
Jean-Loup Haberbusch's avatar
Jean-Loup Haberbusch committed
4

Jean-Loup Haberbusch's avatar
Jean-Loup Haberbusch committed
5
6
7
8
- install required dependencies and build tools
- build and install CamiTK 4 stable
- install development tools to work on your CEP.

9
10
!!! Note
    that this should work for any Ubuntu version older than 16.04.
Jean-Loup Haberbusch's avatar
Jean-Loup Haberbusch committed
11
12
13
14
15
16

## Install dependencies and build tools

This is quite easy as everything is available as packages.

Just type:
17
```bash
Jean-Loup Haberbusch's avatar
Jean-Loup Haberbusch committed
18
19
20
21
export CAMITK_LATEST="4.1.2"
workingDir=$(mktemp --tmpdir -d camitk-$CAMITK_LATEST-build-tmp.XXX)
cd $workingDir
wget https://salsa.debian.org/med-team/camitk/raw/debian/$CAMITK_LATEST-1/debian/control
Jean-Loup Haberbusch's avatar
Jean-Loup Haberbusch committed
22
sed -i "s/10)/9)/g" control
Jean-Loup Haberbusch's avatar
Jean-Loup Haberbusch committed
23
24
25
26
27
28
sudo apt update
sudo mk-build-deps -t "apt -y --no-install-recommends -o Debug::pkgProblemResolver=yes" --install ./control
```

## Build and install CamiTK 4 stable

29
```bash
Jean-Loup Haberbusch's avatar
Jean-Loup Haberbusch committed
30
31
32
33
34
cd $workingDir
wget https://gricad-gitlab.univ-grenoble-alpes.fr/CamiTK/CamiTK/-/archive/$CAMITK_LATEST/CamiTK-$CAMITK_LATEST.tar.gz
tar xf CamiTK-$CAMITK_LATEST.tar.gz
mkdir build
cd build
35
36
cmake ../CamiTK-$CAMITK_LATEST -DCEP_IMAGING=TRUE -DCEP_MODELING=TRUE -DCEP_TUTORIALS=TRUE -DCMAKE_INSTALL_PREFIX="/usr/local"
make # To build in parallel: add -jX where X is your number of CPU
Jean-Loup Haberbusch's avatar
Jean-Loup Haberbusch committed
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
sudo make camitk-ce-global-install
```

## Install development tools
The CamiTK team recommands `kdevelop` IDE.

Install kdevelop and git:

```bash
sudo apt-get install kdevelop git
```


## Check the installation

Type:

```bash
camitk-config --config
```

You should get details information about camitk version, where camitk is looking for extensions, and the default installed extensions.
You're ready to run `camitk-wizard`!