Error when running lsl_loadlib()
lithiumgold opened this issue · comments
Jeffrey Ito commented
When I enter lsl_loadlib() into MATLAB I receive the following error:
http://i66.tinypic.com/2hydp8g.png
I am using this repository to load the LSL data: https://github.com/OpenBCI/OpenBCI_MATLAB
How can I resolve this?
David Medine commented
Have you posted this on the OpenBCI forums? The problem is that the mex
files (matlab executables) that they provide are incompatible with your
system for whatever reason. You are using a 64-bit Mac, I take it? I'm
not sure why this should be, but Matlab is sometimes touchy about this,
it could have to do with the version of Matlab you have.
You can try re-building the mex files. There is a script that does this
in the LSL repo
(https://github.com/sccn/labstreaminglayer/blob/master/LSL/liblsl-Matlab/build_mex.m),
but I don't know if the OpenBCI fork has the up to date source code for
LSL. Regardless, you will need to have some build tools installed,
either xcode or some other tool chain (last I checked Apple forces users
to get xcode in order to use gcc, which is one of the reasons that I
don't touch Apple computers anymore).
You can also try replacing the offending mex files in
<path_to>liblsl-Matlab/mex/<etc.> with ones from the SCCN ftp:
ftp://sccn.ucsd.edu/pub/software/LSL/SDK/liblsl-Matlab-1.11.zip
…On 08/31/2018 09:10 PM, Digital Green Tea wrote:
When I enter lsl_loadlib() into MATLAB I receive the following error:
[IMG]http://i66.tinypic.com/2hydp8g.png[/IMG]
<http://i66.tinypic.com/2hydp8g.png%5B/IMG%5D>
I am using this repository to load the LSL data:
https://github.com/OpenBCI/OpenBCI_MATLAB
How can I resolve this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/sccn/labstreaminglayer/issues/341>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/ADch7u_1vfqkAaFdzcP62KfKJvJZaEWNks5uWYoigaJpZM4WVuSk>.
David Medine commented
I am closing this as it is an issue with OpenBCI's repository, not this one.
Jeffrey Ito commented
Thank you @dmedine ! This was very helpful. I managed to get the lsl_loadlib to work by running the build_mex function.
I was also to get the ReceiveData.m running in MATLAB by recompiling some of the .c files into mex.
Cheers!