debian-stable.md 2.05 KB
Newer Older
Jean-Loup Haberbusch's avatar
Jean-Loup Haberbusch committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# Setup CamiTK 4 Development Environment on Debian Stable (Stretch)

Start from a fresh `debian-stable` install

## Development tools
The CamiTK team recommands `kdevelop` IDE.

Install kdevelop and git:

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

## CamiTK development environment

You will need `imp` (the CamiTK workbench application), `actionstatemachine` (the protocol player) and all the libraries and tools.

### Install dependencies

20
```bash
Jean-Loup Haberbusch's avatar
Jean-Loup Haberbusch committed
21 22 23 24 25 26 27 28
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
sudo apt update
sudo mk-build-deps -t "apt -y --no-install-recommends -o Debug::pkgProblemResolver=yes" --install ./control
```

Jean-Loup Haberbusch's avatar
Jean-Loup Haberbusch committed
29

Jean-Loup Haberbusch's avatar
Jean-Loup Haberbusch committed
30 31
!!! Note
    if you get the following error message
Jean-Loup Haberbusch's avatar
Jean-Loup Haberbusch committed
32
    ```bash
33
        E: You must put some 'source' URIs in your sources.list
Jean-Loup Haberbusch's avatar
Jean-Loup Haberbusch committed
34
    ```
35
    you need to add source repository, see the [debian documentation](https://wiki.debian.org/SourcesList)
Jean-Loup Haberbusch's avatar
Jean-Loup Haberbusch committed
36 37 38 39


### Build CamiTK

40
```bash
Jean-Loup Haberbusch's avatar
Jean-Loup Haberbusch committed
41 42 43 44 45
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
46 47
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
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
sudo make camitk-ce-global-install
```

<!-- When debian stable was up to date, it was just a one liner:

```bash
sudo apt-get install camitk-imp camitk-actionstatemachine libcamitk-dev
```
Note: if you get the following error message

```bash
E: You must put some 'source' URIs in your sources.list
```
you need to add source repository, see the [debian documentation](https://wiki.debian.org/SourcesList)


-->



## 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`!