How to run sample2016.zip for PhysioNet/Computing in Cardiology Challenge on Ubuntu 15.10 with Matlab R2015b

I create this post for Biomedical Signal Analysis course.
First, we need download the sample file:
wget http://physionet.org/challenge/2016/sample2016.zip

and the validation file, that includes wav files:
wget http://physionet.org/physiobank/database/challenge/2016/validation.zip

Now, run
unzip -e sample2016.zip
cd sample2016
chmod +x setup.sh
./setup.sh

Building with 'gcc'.
Warning: You are using gcc version '5.2.1'. The version of gcc is not supported. The version currently supported with MEX is '4.7.x'. For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release.

We need downgrade our gcc version to 4.7.x
We can use another version without uninstall the last version installed on our system. For this, do as folllows:

sudo apt-get install gcc-4.7
sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-4.7 /usr/bin/gcc

Now, execute setup.sh again:

Building with 'gcc'.
/usr/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status

To fix it, you need install stdc++ libraries and create one with the name who is expected:

sudo apt-get install libstdc++5
sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libstdc++.so

Now we can execute setup.sh
The next step y run next.sh, but challenge.m (include on it) use a function deprecated on R2015x.
To solve this, you need to replace :

[PCG, Fs1, nbits1] = wavread([recordName '.wav']);  % load data
by
[PCG, Fs1] = audioread([recordName '.wav']);  % load data

Enjoy it!

Comments

Popular posts from this blog

Exception: Could not find a default OpenFlow controller in Mininet

How to fix Android when developer options are not available for this user

Webcam streaming throught VLC with YUY2 compatibility