aboutsummaryrefslogtreecommitdiffstats
path: root/docs/2-Installation.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/2-Installation.md')
-rw-r--r--docs/2-Installation.md48
1 files changed, 48 insertions, 0 deletions
diff --git a/docs/2-Installation.md b/docs/2-Installation.md
new file mode 100644
index 0000000..a5e1265
--- /dev/null
+++ b/docs/2-Installation.md
@@ -0,0 +1,48 @@
+## Installation
+
+## Prerequisites
+
+Low CAN binding must be installed. Prerequisites are the same.
+
+```bash
+$ git clone https://gerrit.automotivelinux.org/gerrit/apps/low-level-can-service
+```
+
+## Clone and build high level binding
+
+### Build requirements
+
+* CMake version 3.0 or later
+* G++, Clang++ or any C++11 compliant compiler.
+
+### Clone
+
+```bash
+$ export WD=$(pwd)
+$ git clone https://github.com/iotbzh/high-level-viwi-service.git
+```
+
+### Build
+
+```bash
+$ cd $WD/high-level-viwi-service
+$ mkdir build
+$ cd build
+$ cmake ..
+$ make
+```
+
+## Launching
+
+The Json high level configuration file *high.json* must be placed in the directory where you launch afb-daemon.
+
+```bash
+$ cp $WD/high-level-viwi-service/high.json $WD
+$ cd $WD
+```
+Natively under linux you can launch afb-daemon with the low-level and high-level bindings with a command like:
+
+```bash
+$ cd $WD
+$ afb-daemon --rootdir=$WD/low-level-can-service/CAN-binder/build/package --ldpaths=$WD/low-level-can-service/CAN-binder/build/package/lib:$WD/high-level-viwi-service/build/high-can-binding --port=1234 --tracereq=common --token=1 --verbose
+```