-
Notifications
You must be signed in to change notification settings - Fork 15
Description
After the update to Debian Stretch playrec is not working out of the box so I recompiled the playrec mex file. Unfortunately, this was not working without some glitches.
These are the step that at least made the jack audio (JACK) backend work for me. I had no luck with ALSA. I didn't invest a lot of time, though, since I am happy with JACK.
Issue 1
-
Problem 1:
build_mex: Unable to find.../playrec/lib/portaudio/src/os/mac_osx -
Solution 2 (from Installation/compilation fails on Linux with GNU Octave)
commenting out L53 ('src/os/mac_osx') of the filecompile_playrec_fun.m
Issue 2
-
Problem 2
Portaudio is using C++ like Comments, but mex defaults to ANSI C. -
Solution 2
uncomment L40 and modify it that is looks like below (remove the escape\) :
build_args = {'CFLAGS="$CFLAGS -std=c99"', build_args{:}};
After this playrec with only the Jack Audio Connection Kit (JACK) Backend (API) activated, compiles with only a few deprecation warnings.
Issue 3
-
Problem 3
When using the updated playrec.mexa64 we see the following error:
playrec.mexa64: .../matlab/R2016b/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/x86_64-linux-gnu/libjack.so.0). -
Solution 3 (from: 329796-issue-with-libstdc-so-6)
start Matlab with:
LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libstdc++.so.6" matlab