From be67cb3be20a96866000f76deb315b0ead1d02b0 Mon Sep 17 00:00:00 2001 From: Pagadarai Date: Thu, 23 Jan 2025 15:52:15 -0600 Subject: [PATCH] matlab bindings: Update to iio.h header file path in helpers.m --- bindings/matlab/+adi/+libiio/helpers.m | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bindings/matlab/+adi/+libiio/helpers.m b/bindings/matlab/+adi/+libiio/helpers.m index ff03879ea..446e0ad0b 100644 --- a/bindings/matlab/+adi/+libiio/helpers.m +++ b/bindings/matlab/+adi/+libiio/helpers.m @@ -2,7 +2,11 @@ %%helpers methods (Hidden, Static) function libName = getIIOLibName() - libName = 'libiio1'; + if ispc + libName = 'libiio1'; + elseif isunix + libName = 'libiio'; + end end function loadlibraryArgs = getIIOHeaderName() @@ -10,11 +14,10 @@ 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