summaryrefslogtreecommitdiffstats
path: root/demo3/horizontal/waltham-server/README.md
blob: 0b48aa42e09e4b08f73ebd355d77a612e20beca1 (plain)
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
**Overview**

This application receives transmitted data by waltham-transmitter.
This application is implemented based on waltham-server.
The original source code of waltham-server is in `./orig`.

**Download**

Download souce code and SDK from gitlab.

```
$ git clone http://oss-project.tmc-tokai.jp/gitlab/WindowManager/waltham-server.git
```

*NOTE*

This application uses waltham protocol, therefore waltham librarys is necessary.
The downloaded SDK includes the libraries.
If build this application, please use this SDK.

**Install SDK**

1. Install SDK which is in `./sdk`.
```
$ cd ./sdk
$ ./poky-agl-glibc-x86_64-agl-demo-platform-crosssdk-aarch64-toolchain-6.0.0.sh
```

1. Copy gstglconfig.h
This SDK has gstglconfig.h
but it exists in `<sdk_installed_path>/sysroots/aarch64-agl-linux/usr/lib`
and it occures build error.
Therefore copy it to `<sdk_installed_path>/sysroots/aarch64-agl-linux/usr/include`.
```
$ cd <sdk_installed_path>/sysroots/aarch64-agl-linux/
$ cp usr/lib/gstreamer-1.0/include/gst/gl/gstglconfig.h usr/include/gstreamer-1.0/gst/gl/
```

**Build application**

Source SDK envirment and make.
```
$ source <sdk_installed_path>/environment-setup-aarch64-agl-linux
$ cd waltham-server
$ mkdir build
$ cd build
$ cmake ..
$ make
$ make receiver
```

**Install wgt and config file**

```
[On host]
$ scp build/package/receiver.wgt root@<your_target_ip>
$ scp config/pipeline.cfg root@<your_target_ip>:/etc/xdg/weston
$ ssh root@<your_target_ip>

[On target]
# afm-util install receiver.wgt
# sync
```

**NOTE**

This application uses port 34400 by default.
If change it, please modify the followings:

- In `config/pipeline.cfg`, value of `port` at line 1.
- In `src/wth-server-main.cpp`, value of `tcp_port` at line 49.