[Eeglablist] EEGLAB with the MATLAB Compiler

Arnaud Delorme arno at ucsd.edu
Sat Jul 2 06:48:05 PDT 2016


Dear Ben,

There is a script that is auspiciously called “compile_eeglab.m”. It is in the miscfunc folder of EEGLAB. There are complexities associated with the EEGLAB options, because of the compiled version needs to use text files to replace these Matlab files. This used to be taken care of by the “compile_eeglab.m” function. However, EEGLAB has not been recompiled in years and I cannot guarantee that this script still works. Also, the problem is that plugins/extensions will need to be compiled with EEGLAB and that it will not be possible to update them.

The issue is not so much in compiling as much as it is in testing that all the menus are functional. If you can make it work and check that there is no remaining problems (in particular the options mentioned above), let us know.

Best wishes,

Arno

> On Jun 28, 2016, at 12:51 PM, Ben McCartney <bmccartney06 at qub.ac.uk> wrote:
> 
> Hello,
> 
> I have been using EEGLAB for some time for preprocessing and analysing EEG data from mobile headsets, I would now like to make use of the Matlab Compiler to produce a standalone executable of my preprocessing script. I have been compiling and installing a program, attempting to run it and finding which functions or variables are missing, then looking through the EEGLAB files to see what needs included. I am currently having difficulty ensuring all the dependencies for eeg_checkset() are covered, below is the error output when I try to load a .set file. The only mention of the undefined options variables I can find within EEGLAB are functions/adminfunc/eeg_options.m, functions/adminfunc/eeg_optionsbackup.m and functions/adminfunc/eeglab_options.m, all of which I have included in the compilation process. This script does run correctly if I use my general Matlab/EEGLAB install, so I'm wondering if anyone has made use of the Matlab Compiler with EEGLAB scripts before or has some insight into some other dependencies I would need to include?
> 
> Thanks,
> Ben
> 
> 
> ------------------------------------------
> Setting up environment variables
> ---
> LD_LIBRARY_PATH is .:/usr/local/MATLAB/MATLAB_Runtime/v901/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v901/bin/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v901/sys/os/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v901/sys/opengl/lib/glnxa64
> Cannot find option file /home/ben/.mcrCache9.0.1/eeg_optionsbackup.txt
> Cannot find option file /home/ben/.mcrCache9.0.1/eeg_options.txt
> 
> ans =
> 
> Undefined function or variable 'option_savetwofiles'.
> 
> Warning: could not access the local eeg_options file
> pop_loadset(): loading file 20160523160254_NT01-ENO-1-3_NTPrePro.set ...
> Cannot find option file /home/ben/.mcrCache9.0.1/eeg_optionsbackup.txt
> Cannot find option file /home/ben/.mcrCache9.0.1/eeg_options.txt
> 
> ans =
> 
> Undefined function or variable 'option_savetwofiles'.
> 
> Warning: could not access the local eeg_options file
> WARNING: EEGLAB ran out of memory while converting dataset to single precision.
>          Save dataset (preferably saving data to a separate file; see File > Memory options).
>          Then reload it.
> Undefined function or variable 'option_scaleicarms'.
> 
> Error in eeg_checkset (line 963)
> 
> 
> Error in pop_loadset (line 192)
> 
> 
> Error in pipeline3Compiler (line 27)
> 
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html <http://sccn.ucsd.edu/eeglab/eeglabmail.html>
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu <mailto:eeglablist-unsubscribe at sccn.ucsd.edu>
> For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu <mailto:eeglablist-request at sccn.ucsd.edu>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20160702/bb410498/attachment.html>


More information about the eeglablist mailing list