8874bde12db5fb06ce479f9b6f71b6c72eefd387
[AGL/documentation.git] / docs / 3_Developer_Guides / 2_Application_Framework_Binder / Annexes / 3_Installing_the_binder_on_a_desktop.md
1 ---
2 title: Installing the binder on a desktop
3 ---
4
5 Packages of the ***binder*** (afb-daemon)exist
6 for common desktop linux distributions.
7
8 - Fedora
9 - Ubuntu
10 - Debian
11 - Suse
12
13 Installing the development package of the ***binder***
14 allows to write ***bindings*** that runs on the desktop
15 computer of the developer.
16
17 It is very convenient to quickly write and debug a binding.
18
19 ## Retrieving compiling option with pkg-config
20
21 The ***binder*** afb-daemon provides a configuration
22 file for **pkg-config**.
23 Typing the command
24
25 ```bash
26 pkg-config --cflags afb-daemon
27 ```
28
29 Print flags use for compilation:
30
31 ```bash
32 $ pkg-config --cflags afb-daemon
33 -I/opt/local/include -I/usr/include/json-c
34 ```
35
36 For linking, you should use
37
38 ```bash
39 $ pkg-config --libs afb-daemon
40 -ljson-c
41 ```
42
43 It automatically includes the dependency to json-c.
44 This is activated through **Requires** keyword in pkg-config.