Playrec Compilation on Linux - pavhofman/nonlinear-compensation GitHub Wiki
- Tested on Ubuntu Xenial/Mint 18, Bionic/Mint 19, Ubuntu 20.04 - should work for any debian-based distribution. When build tools are installed (equivalent to the meta package build-essential in debian), it should work on any linux distro.
sudo apt-get install git build-essential libasound2-dev liboctave-dev
mkdir -p ~/work
cd ~/work
git clone https://github.com/pavhofman/playrec.git
cd playrec/lib
wget http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz
tar xvzf pa_stable_v190600_20161030.tgz
cd ../
octave compile_playrec.m
- All default answers to questions (just push Enter), push Y to:
Use Advanced Linux Sound Architecture (ALSA)
- The compilation will run automatically, may show some warnings.
- Binary file playrec.mex gets compiled in the current directory (playrec root).
Testing the compiled playrec
- Download playrec-examples to some directory, copy the playrec.mex file there and run some of the example scripts
cd ~/work
git clone https://github.com/PlayrecForMatlab/playrec-examples.git
cp playrec/playrec.mex playrec-examples/
cd playrec-examples/
octave test_playrec.m
Using Playrec in Nonlinear Compensation
- Copy the playrec.mex file to nonlinear-compensation/octave directory (the one with all octave code)