liblsl-Matlab icon indicating copy to clipboard operation
liblsl-Matlab copied to clipboard

Error loading lsl_loadlib in MATLAB

Open RoyaSalehzadeh opened this issue 2 years ago • 3 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.

RoyaSalehzadeh avatar Apr 23 '22 17:04 RoyaSalehzadeh

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

cboulay avatar Apr 23 '22 20:04 cboulay

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?

SylviaYao avatar Dec 22 '22 08:12 SylviaYao

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.

ramkpari avatar Dec 13 '23 13:12 ramkpari