[FieldTrip] where to install FieldTrip so addpath is not needed
Donald Krieger
donnkrieger at yahoo.com
Wed Aug 3 18:45:48 CEST 2022
Dear Jan,
Thank you for posting back about this.
I used Matlab's "Get More Apps" to download and install Fieldtrip.
This placed it in directory ~/MATLAB\ Add-Ons where I presume other add-on apps will go and be found.
Now when I generate a deployable executable using Matlab's compiler, I need only add the fieldtrip functions I am using to "Files required for your application to run" to get a working executable. The Matlab compiler automatically finds all of the dependencies within the fieldtrip toolbox and adds them in. I think this is good as it likely will minimize the size of the executable which is needed for practical deployment to the Open Science Grid.
I did try ft_compile_standalone as directed by the webpage you suggested.
This failed on encountering the directory ~/MATLAB\ Add-Ons, I think because it contains a space in it.
I suspect that if I fix that, it will produce a runtime fieldtrip library which contains executable code for the entire toolbox.
I will likely check that out in the future.
Thank you again - Don
On Tuesday, August 2, 2022 at 03:35:54 PM EDT, Schoffelen, J.M. (Jan Mathijs) via fieldtrip <fieldtrip at science.ru.nl> wrote:
Hi Don,
Perhaps this piece of documentation can help you further along: https://www.fieldtriptoolbox.org/faq/compiled/
Best wishes,
JM
>
> On 27 Jul 2022, at 02:44, Donald Krieger via fieldtrip <fieldtrip at science.ru.nl> wrote:
>
>
>
>
>
> Dear list,
>
>
>
>
> I need to create a standalone executable in order to run my application on the Open Science Grid.
>
> addpath is not allowed.
>
> Where do I place the fieldtrip installation so that it is automatically found by matlab?
>
>
>
>
> The matlab installation is at /media/matlab_2020a .
>
> The matlab runtime library is at /media/matlabRuntime_2020a.
>
>
>
>
> Thank you for your direction.
>
>
>
>
>
>
> All my best - Don
>
>
>
>
> Don Krieger, Ph.D.
>
> Research Scientist
>
> Department of Neurological Surgery
>
> University of Pittsburgh
>
>
>
>
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!5NsQGazN5v3okilmsUWtR2S5BFAdO48IzsgA_nUS1hQaF29Acqbxot67GS-ec20riPSB2hSnk2KcFCIT2y342Hm6WmiLmiM9duviNQ$
>
>
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202
More information about the fieldtrip
mailing list