Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Build and Install

Lu, Han edited this page Mar 25, 2016 · 12 revisions

Environment

We list packages required for BAT building under Ubuntu 14.04.02:

  • The building dependencies of alsa-utils.

      $ sudo apt-get build-dep alsa-utils
    
  • (Optional) The libfftw3 library for FFT analyze. BAT will detect the libfftw3.so in system when compile, if not found, the data analysis module will not functional.

      $ sudo apt-get install libfftw3-dev
    
  • (Optional) The tinyalsa library support. Use configure option "--enable-alsabat-backend-tiny" to use alsabat as backend lib instead of ALSA.

      $ git clone https://github.com/tinyalsa/tinyalsa.git
    
      $ cd tinyalsa; make all
    
      $ sudo cp include/tinyalsa/asoundlib.h /usr/include/tinyalsa/asoundlib.h
    
      $ sudo cp libtinyalsa.so /usr/lib/x86_64-linux-gnu
    
      (or i386-linux-gnu for 32bits system)
    

Install

BAT is installed together with other component in alsa-utils package. To disable BAT when install alsa-utils, use option "--disable-bat".

    $ ./gitcompile

    $ ./configure

    $ make

    $ sudo make install