Hello, I have implemented MATLAB code into a Brainstorm plugin (by adding it to the bst_plugin.m file) and adding some buttons to the ExtraMenus field. It works perfectly when running directly from MATLAB, but I am now trying to have it included when running the brainstorm compile command.
Compilation mention that there is a missing plugin.mat file, looking at other plugins provided by Brainstorm I seem to understand it is some version of the PlugDesc entry for the plugins, but I am not sure how to obtain it.
What would be the full steps to have a custom plugin included into a compiled version of Brainstorm?
Thank you!
The CompiledStatus field is for my plugin set to 2 in the bst_plugin file, as I understood it was neded to have it included when compiling.
When running the brainstorm compile noplugs command, it does compile without problem, and I can execute the resulting brainstorm.jar when extracting the files in the zip output (C:\Users\my-user\.brainstorm\tmp\deploy_240425_090825\bst_bin_R2023b_240425.zip)
As you can deduce from the path above, I am using MATLAB R2023b on Windows 10.
Hi @fhardy, I tested the compilation process with a custom plugin that we are developing and it seems to be working fine. The main difference with respect to your setup is that I used Windows10 and R2022b.
Hi, sorry for the delay, other projects needed my attention.
I still get the error saying that plugin.mat does not exist, even with MATLAB R2022b installed. I also deleted the brainstorm.jar file and it downloaded a new one at startup.
So far I was unable to compile Brainstorm with my custom plugin, so I will have to go another route for my use case.
Thank you for taking the time to look into it with me.
Hi @fhardy, a new feature in Brainstorm allows to add user-defined (custom) plugins without having to modify Brainstorm source base. This also allows to compile Brainstorm with such plugins (if they have the indicated CompiledStatus flag.