[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I link an installed C library to Octave to create new, Octave
From: |
Kai Torben Ohlhus |
Subject: |
Re: How do I link an installed C library to Octave to create new, Octave callable functions? |
Date: |
Thu, 6 Aug 2020 11:11:55 +0900 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 8/6/20 12:07 AM, babelproofreader wrote:
> The installed library is ta-lib <https://sourceforge.net/projects/ta-lib/>
> which, on my Linux system, consists of five header files in the directory
> /usr/include/ta-lib. Over on the MATLAB fileexchange
> <https://www.mathworks.com/matlabcentral/fileexchange/34744-ta-lib-mex-functions-and-oslion-binaries#functions_tab>
>
> a user has provided a compileMex.m script to link/compile, with a typical
> line such as
>
> mex TA_ADOSC.c -I"../src/TA_COMMON/" -I"../include/" -L"../src/.libs/"
> -l"ta_lib"
>
> Basically my question is "What is the equivalent Octave 'mkoctfile' command
> for the above MATLAB mex command?"
>
Octave has a "mex" wrapper script for "mkoctfile" [1]. Basically you do
not have to care about just executing his code. Please keep in mind,
that you are violating MATLAB's File Exchange Terms of Use by using
Octave [2].
HTH,
Kai
[1] https://www.octave.org/doc/v5.2.0/XREFmex.html
[2]
https://wiki.octave.org/FAQ#Why_can.27t_I_use_code_from_File_Exchange_in_Octave.3F