> For the complete documentation index, see [llms.txt](https://theiotlearninginitiative.gitbook.io/embedded-linux/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://theiotlearninginitiative.gitbook.io/embedded-linux/subsystems/bluetooth/advanced-audio-distribution-profile/bluez.md).

# Bluez

```bash
root@edison:~# git clone https://github.com/Arkq/bluez-alsa.git
Cloning into 'bluez-alsa'...
remote: Counting objects: 713, done.
remote: Compressing objects: 100% (129/129), done.
remote: Total 713 (delta 90), reused 0 (delta 0), pack-reused 584
Receiving objects: 100% (713/713), 244.45 KiB | 177.00 KiB/s, done.
Resolving deltas: 100% (524/524), done.
Checking connectivity... done.
root@edison:~/bluez-alsa#
```

```bash
root@edison:~# cd bluez-alsa/
root@edison:~/bluez-alsa# autoreconf --install
aclocal: warning: couldn't open directory 'm4': No such file or directory
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:12: installing './ar-lib'
configure.ac:10: installing './compile'
configure.ac:14: installing './config.guess'
configure.ac:14: installing './config.sub'
configure.ac:5: installing './install-sh'
configure.ac:5: installing './missing'
src/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
root@edison:~/bluez-alsa#
```

```bash
root@edison:~/bluez-alsa# mkdir build && cd build
root@edison:~/bluez-alsa# ../configure --enable-aac --enable-debug
```

```bash
root@edison:~/bluez-alsa# wget https://download.savannah.gnu.org/releases/linphone/ortp/sources/ortp-0.9.1.tar.gz
--2016-10-30 05:16:21--  https://download.savannah.gnu.org/releases/linphone/ortp/sources/ortp-0.9.1.tar.gz
Resolving download.savannah.gnu.org... 208.118.235.73
Connecting to download.savannah.gnu.org|208.118.235.73|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://download.savannah.gnu.org/releases-redirect/linphone/ortp/sources/ortp-0.9.1.tar.gz [following]
--2016-10-30 05:16:23--  https://download.savannah.gnu.org/releases-redirect/linphone/ortp/sources/ortp-0.9.1.tar.gz
Reusing existing connection to download.savannah.gnu.org:443.
HTTP request sent, awaiting response... 302 Found
Location: http://nongnu.askapache.com//linphone/ortp/sources/ortp-0.9.1.tar.gz [following]
--2016-10-30 05:16:24--  http://nongnu.askapache.com//linphone/ortp/sources/ortp-0.9.1.tar.gz
Resolving nongnu.askapache.com... 192.185.42.228
Connecting to nongnu.askapache.com|192.185.42.228|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 445857 (435K) [application/x-gzip]
Saving to: 'ortp-0.9.1.tar.gz'

100%[======================================>] 445,857     41.9KB/s   in 9.6s   

2016-10-30 05:16:35 (45.5 KB/s) - 'ortp-0.9.1.tar.gz' saved [445857/445857]

root@edison:~/bluez-alsa/build#
```

```bash
root@edison:~/bluez-alsa/build# tar zxvf ortp-0.9.1.tar.gz
root@edison:~/bluez-alsa/build# cd ortp-0.9.1
root@edison:~/bluez-alsa/build# CFLAGS=-Wno-unused-but-set-variable ./configure
root@edison:~/bluez-alsa/build# make
```

```bash
root@edison:~/bluez-alsa/build# opkg install alsa-dev
Installing alsa-lib-dev (1.0.28-r0) on root.
Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/core2-32/alsa-lib-dev_1.0.28-r0_core2-32.ipk.
alsa-lib-dev: unsatisfied recommendation for alsa-conf-base-dev
alsa-lib-dev: unsatisfied recommendation for libasound-dev
alsa-lib-dev: unsatisfied recommendation for alsa-conf-dev
Configuring alsa-lib-dev.
root@edison:~/bluez-alsa/build#
```

```bash
root@edison:~/bluez-alsa/build# opkg install sbc-dev
Installing sbc-dev (1.2-r0) on root.
Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/core2-32/sbc-dev_1.2-r0_core2-32.ipk.
libsndfile-dev: unsatisfied recommendation for libasound-dev
libsndfile-dev: unsatisfied recommendation for sqlite3-dev
Installing libsndfile-dev (1.0.25-r2) on root.
Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/core2-32/libsndfile-dev_1.0.25-r2_core2-32.ipk.
Configuring libsndfile-dev.
Configuring sbc-dev.
root@edison:~/bluez-alsa/build#
```

```bash
root@edison:~/bluez-alsa/build# opkg install libbsd
Installing libbsd0 (0.7.0-r0) on root.
Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/core2-32/libbsd0_0.7.0-r0_core2-32.ipk.
Configuring libbsd0.
root@edison:~/bluez-alsa/build# opkg install libbsd-dev
Installing libbsd-dev (0.7.0-r0) on root.
Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/core2-32/libbsd-dev_0.7.0-r0_core2-32.ipk.
Configuring libbsd-dev.
root@edison:~/bluez-alsa/build#
```

```bash
```

```bash
```

```bash
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://theiotlearninginitiative.gitbook.io/embedded-linux/subsystems/bluetooth/advanced-audio-distribution-profile/bluez.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
