labstreaminglayer / liblsl-Matlab

Matlab bindings for liblsl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error loading lsl_loadlib in MATLAB

RoyaSalehzadeh opened this issue · comments

I try to load lsl_loadlib in MatLab, but I keep receiving the error:
"Error loading the liblsl library: Undefined function 'lsl_loadlib_' for input arguments of type 'char'. Make sure liblsl-Matlab/bin is added to path and try running build_mex.m'

The directory has been added to the Matlab path.
I would be thankful for any help.

What platform - Win/Mac/Linux?
What version of Matlab?

What platform - Win/Mac/Linux? What version of Matlab?

Hello, I'm also facing the same issue. I used Matlab R2019b on Windows. the directories were already added to the MATLAB path. Could you please help me figure out the problem?

So, I had the same issue running LSL on Matlab 2019b, The solution for me was to add the entire folder structure with subfolders to the path / or using addpath(genpath('path_to_liblsl-Matlab')); , rather just the top-level folder.