Skip to content

Debian Stretch and Matlab 2016b #8

@hagi123456

Description

@hagi123456

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions