Skip to content

Commit

Permalink
matlab bindings: Update to iio.h header file path in helpers.m
Browse files Browse the repository at this point in the history
  • Loading branch information
SrikanthPagadarai committed Jan 23, 2025
1 parent 2a84663 commit be67cb3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions bindings/matlab/+adi/+libiio/helpers.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@
%%helpers
methods (Hidden, Static)
function libName = getIIOLibName()
libName = 'libiio1';
if ispc
libName = 'libiio1';
elseif isunix
libName = 'libiio';
end
end

function loadlibraryArgs = getIIOHeaderName()
headerFile = 'iio.h';
headerWrapperFile = 'iio-wrapper.h';
if ispc
headerPath = [getenv('PROGRAMFILES(X86)'), '\Microsoft Visual Studio 12.0\VC\include\iio\'];
headerWrapperPath = strcat("..", filesep);
elseif isunix
headerPath = '/usr/local/lib'; % FIXME
headerWrapperPath = strcat("..", filesep); % FIXME
headerPath = '/usr/include/iio'; % FIXME
end
headerWrapperPath = strcat("..", filesep);
loadlibraryArgs = {headerWrapperPath+headerWrapperFile,'includepath',headerPath,'addheader',headerFile};
end

Expand Down

0 comments on commit be67cb3

Please sign in to comment.