MATLAB: Matlab Compiler – Invalid MEX-file for ‘sqp’ in optimization toolbox

MATLAB Compileroptimizationstandalone application

I am generating standalone application that allows the user to select which method they want the optimization toolbox to use at the command line. if the user selects 'active-set', it works fine. If the user selects 'interior-point', it works fine. If they select 'sqp' I get the following error. (In the .m file this standalone is built on, all three are fine.)
Invalid MEX-file
'/Users/phillicl/.mcrCache7.13/fillin21/toolbox/optim/optim/private/activesetqp.mexmaci64':
dlopen(/Users/phillicl/.mcrCache7.13/fillin21/toolbox/optim/optim/private/activesetqp.mexmaci64,
1): Library not loaded: @loader_path/libmwactiveset.dylib
Referenced from:
/Users/phillicl/.mcrCache7.13/fillin21/toolbox/optim/optim/private/activesetqp.mexmaci64
Reason: image not found.
Can this be addressed?
Thanks

Best Answer

Hi,
@Kaustubha: very unlikely. If the function is missing you would get an unkown function error!!!
Seems more like a missing dependency. Since you are using 10a see this Bug in which you ran into and apply the patch (or upgrade to 10b and newer):