Simplified doc-site generation
[AGL/documentation.git] / docs / 4_APIs_and_Services / 4.3_Application_Framework_Binder / 6_Annexes / 3_Installing_the_binder_on_a_desktop.md
1 ---
2 edit_link: ''
3 title: Installing the binder on a desktop
4 origin_url: >-
5   https://git.automotivelinux.org/src/app-framework-binder/plain/docs/afb-desktop-package.md?h=master
6 ---
7
8 <!-- WARNING: This file is generated by fetch_docs.js using /home/boron/Documents/AGL/docs-webtemplate/site/_data/tocs/apis_services/master/app-framework-binder-developer-guides-api-services-book.yml -->
9
10 # Desktop packages for binder development
11
12 Packages of the ***binder*** (afb-daemon)exist
13 for common desktop linux distributions.
14
15 - Fedora
16 - Ubuntu
17 - Debian
18 - Suse
19
20 Installing the development package of the ***binder***
21 allows to write ***bindings*** that runs on the desktop
22 computer of the developer.
23
24 It is very convenient to quickly write and debug a binding.
25
26 ## Retrieving compiling option with pkg-config
27
28 The ***binder*** afb-daemon provides a configuration
29 file for **pkg-config**.  
30 Typing the command
31
32 ```bash
33 pkg-config --cflags afb-daemon
34 ```
35
36 Print flags use for compilation:
37
38 ```bash
39 $ pkg-config --cflags afb-daemon
40 -I/opt/local/include -I/usr/include/json-c
41 ```
42
43 For linking, you should use
44
45 ```bash
46 $ pkg-config --libs afb-daemon
47 -ljson-c
48 ```
49
50 It automatically includes the dependency to json-c.  
51 This is activated through **Requires** keyword in pkg-config.