While exploring alternate ways to install OSQP Matlab on Linux, I observe that OSQP, when installed through 'add-on explorer' or through a .mlappinstall file, is installed by default at:
/home/vineetb/MATLAB Add-Ons/Collections/OSQP
i.e. at a location with spaces in its path. This causes codegen to fail. Quoting the path where mex_cfile is expected to be found solves the problem.
There are likely other places where quoting would solve similar issues, but this seems more important since this will typically be outside user control.
While exploring alternate ways to install OSQP Matlab on Linux, I observe that OSQP, when installed through 'add-on explorer' or through a
.mlappinstall
file, is installed by default at:i.e. at a location with spaces in its path. This causes
codegen
to fail. Quoting the path wheremex_cfile
is expected to be found solves the problem.There are likely other places where quoting would solve similar issues, but this seems more important since this will typically be outside user control.