Embedded Linux
  • Cover
  • Summary
  • About This Training
    • Objectives
    • Skills
    • Prerequisites
    • Requirements
  • Once Upon A Time ...
  • Embedded Linux
  • Build Systems
    • Yocto Board Support Package
      • Yocto
      • Compilation
        • Make
        • Bitbake
        • Script
      • Building Blocks
      • SDK
      • Extra Packages
      • Kernel
        • Patch
        • Building
        • Headers
      • Modules
        • Cross Compilation
        • Native
      • Filesystem
      • Flashing
    • Distributions
      • CentOS
      • Google Brillo
      • Jubilinux
      • Kali
      • Ostro
      • Ubilinux
      • Debian
  • Boot Loaders
    • U-Boot
  • Initialization
    • Upgrade
    • Boot Up
    • Dual Boot
    • Root Directory
    • Display Message
    • Modules
    • Filesystem
    • Memory
    • Backup
    • Recovery
    • Reboot
    • Processes
  • User Space
    • Virtual Network Computing
    • Text Editors
    • Services
    • Logs
    • Package Management Systems
      • Open Package Management
      • Python Package Index
      • Nicely Package Make
      • Advanced Packaging Tool
      • Manual
      • Conda
    • Libraries
      • Mraa
      • Upm
      • OpenCv
      • Temboo
      • Libiio
    • Frameworks
      • Cylon JS
      • Johnny Five
      • ROS
      • Gobot
      • Pixhawk
      • Artoo
      • Bower
      • Zetta
      • Miscellaneous
  • Subsystems
    • X File Systems
    • Pin Muxing
    • Virtual File System
    • Memory
    • Input
    • General Purpose Input Output
    • Serial
    • Bluetooth
      • Advanced Audio Distribution Profile
        • Bluez
        • Gstreamer
        • Alsa
      • Human Interface Device Game Controller
      • Serial Port Protocol
      • Arduino
    • WiFi
    • Audio
    • Camera
    • Block
    • Universal Serial Bus
      • Human Interface Device Mini Keyboard
      • Python USB
    • Inter Integrated Circuit
    • Inter Process Communication
    • Peripheral Component Interconnect
    • Clock
    • Modems
    • Networking
    • Power
    • Thermal
    • Graphics
    • LED
    • LIDAR
    • Printer
    • Serial Peripheral Interface
  • Application Development
    • C
    • C++
    • Cross Compile
    • Containers
    • Python
    • NodeJS
    • Cloud9
    • Data
    • Drone Code
    • Speech
      • Python
    • Radio Frequency
    • Bots
    • Artificial Intelligence
      • WitAi
      • MycroftAi
    • Games
    • Vision
      • Bar Codes
      • Google Cloud Vision API
    • Messaging
    • Entertainment
    • Home Assistants
    • Dashboards
    • IRC
    • Location
    • Facial Recognition
    • Software Defined Radio
    • REST
    • Notes
    • Security
    • HAM Radio
    • Automotive
    • Digital Signage
    • Photography
  • Debug
  • Wrap-Up
    • Online Training
    • Challenge
    • Tbd
  • SandBox
Powered by GitBook
On this page
  1. Subsystems
  2. Bluetooth
  3. Advanced Audio Distribution Profile

Bluez

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#
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#
root@edison:~/bluez-alsa# mkdir build && cd build
root@edison:~/bluez-alsa# ../configure --enable-aac --enable-debug
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#
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
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#
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#
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#
PreviousAdvanced Audio Distribution ProfileNextGstreamer

Last updated 7 years ago