summaryrefslogtreecommitdiffstats
path: root/README.md
blob: bbc7b9c078c6fab2063544e1693fd95d331cdff5 (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
------------------------------------------------------------------------
AGL-AudioBindings expose ALSA, Pulse & Most APIs through AGL framework
------------------------------------------------------------------------


AFB_daemon dependency on Standard Linux Distributions
-------------------------------------------------------
    # handle dependencies > (OpenSuse-42.2, Fedora-25, Ubuntu 16.04.2LTS)
    gcc > 4.8
    libsystemd-dev>=222
    libmicrohttpd-dev>=0.9.48
    openssl-dev
    uuid-dev

```
    # Might want to add following variables into ~/.bashrc
    export CC=gcc-5; export CXX=g++-5  # if using gcc5
    export DEST=$HOME/opt
    export LD_LIBRARY_PATH=$DEST/lib64
    export LIBRARY_PATH=$DEST/lib64
    export PKG_CONFIG_PATH=$DEST/lib64/pkgconfig
    export PATH=$DEST/bin:$PATH

    # Warning: previous GCC options should be set before initial cmake (clean Build/*)
    source ~/.bashrc
    cd app-framework-binder; mkdir build; cd build 
    cmake -DCMAKE_INSTALL_PREFIX=$DEST ..
    make
    make install 
```

Other Audio Binding Dependencies
----------------------------------
    afb-daemon
    alsa-devel

    Edit CMakeList.txt to tune options


```
# Compile binding
INSTALL_DIR=xxxx # default ./Install
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR ..
make
make install
ls

# Start the binder
afb-daemon --token=x --ldpaths=$INSTALL_DIR/lib --port=1234 --roothttp=$INSTALL_DIR/htdocs/audio-bindings --verbose
```