Prerequisites for Installation¶
Dependencies¶
To build the BTK, we need to install the following software packages:
- CMake: Cross-platform family of tools designed to build, test and package software
- SWIG: Simplified wrapper and interface generator
- Python Dev.: Python development with headers and objects
- NumPy Dev.: Matlab like extension to python
- GSL: GNU Scientific Library
- Libsndfile: C library for audio file IO
Optional Software¶
The following software package are optional.
- CUDA: GPU-accelerated libraries
- libsamplerate: Sample rate converter for audio
- FFTW3, FFTW-float, FFTW-thread: optimized FFT computation
- ATLAS: Automatically tuned algebra software with an efficient BLAS implementation.
Installing on OS X¶
Installing packages with Homebrew¶
We’d recommend using Homebrew for making package installation easy. To install Homebrew, run the following command on the terminal.
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Once it is installed successfully, install the packages necessary for BTK2.0 as follows.
$ brew install cmake
$ brew install swig
$ brew install python@2
$ brew install numpy
$ brew install gsl
$ brew install libsndfile
Now, you are ready to install BTK2.0.
Installing on Linux¶
Using apt on Ubuntu¶
It is straightforward to install packages with apt on Ubuntu. For example, run the following commands on the terminal.
$ sudo apt install camke
$ sudo apt install swig
$ sudo apt install python
$ sudo apt install python-dev
$ sudo apt install python-numpy
$ sudo apt install python-numpy-dev
$ sudo apt install libgslcblas0 libgsl23 gsl-bin
$ sudo apt install libgsl-dev
$ sudo apt install libsndfile1
$ sudo apt install libsndfile1-dev
$ sudo apt install sndfile-programs
This should be enough to build the BTK2.0. Note that some package names could be slightly different on each Ubuntu version.