diff options
Diffstat (limited to 'docs/setting-up-dev-env.md')
-rw-r--r-- | docs/setting-up-dev-env.md | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/docs/setting-up-dev-env.md b/docs/setting-up-dev-env.md new file mode 100644 index 00000000..82d823bf --- /dev/null +++ b/docs/setting-up-dev-env.md | |||
@@ -0,0 +1,43 @@ | |||
1 | # Setting up the development environment | ||
2 | |||
3 | Multiple choices are available for developing the Kube project: | ||
4 | |||
5 | - Manually | ||
6 | - Docker | ||
7 | |||
8 | ## Manually | ||
9 | |||
10 | - If sink is not in you repositories: | ||
11 | - Install the dependencies of Sink: | ||
12 | - extra-cmake-modules | ||
13 | - qt5-qtbase-devel / qtbase5-dev | ||
14 | - libgit2-dev(el) | ||
15 | - lmdb-devel / liblmdb-dev | ||
16 | - readline-devel / libreadline-dev | ||
17 | - libcurl-dev(el) | ||
18 | - kf5-kimap | ||
19 | - kf5-kimap-devel | ||
20 | - [KAsync](https://github.com/KDE/kasync/releases) | ||
21 | - Install Sink | ||
22 | - Install the Kube project: | ||
23 | - `mkdir build && cd build && cmake .. && make && sudo make install` | ||
24 | |||
25 | If you did not install sink in the `/usr` directory, you might need to set the | ||
26 | `QT_PLUGIN_PATH` variable to something like this: | ||
27 | `$SINK_INSTALL_PREFIX/lib/plugins`. | ||
28 | |||
29 | In the same way, if did not install Kube in the `/usr` directory, you might | ||
30 | need to set the `QML2_IMPORT_PATH` to something like this: | ||
31 | `$KUBE_INSTALL_PREFIX/lib/qml/`. | ||
32 | |||
33 | ## Docker | ||
34 | |||
35 | - Go to the `docker` directory | ||
36 | - In the `run.sh` script, set the SOURCEDIR, BUILDDIR and INSTALLDIR variables | ||
37 | to an existing path containing respectively the source, build and | ||
38 | installation directory of kube. The build and installation directory can be | ||
39 | empty at first. | ||
40 | - Run the `./build.sh` script | ||
41 | - Run the `./run.sh` script | ||
42 | - In the now opened container shell, run `cmake -DCMAKE_INSTALL_PREFIX=/install /src` | ||
43 | - Run `make install` | ||