Skip to content

Compatibility and MEX issues with newer versions of MATLAB on Mac #43

Description

@gav-hsu

Sharing some information here in case it's helpful to others:

I had trouble running roast_target (ROAST V4.0) with R2025b on Mac, related to MEX files and security restrictions due to SIP on macOS. Here's what I did to resolve the errors.

Running roast_target returned "Invalid MEX-file" errors. In the past, these could be fixed by going to the Privacy & Security settings to allow the MEX files to run, then rerunning roast-target. This time, however, the error persisted and I realized that the MEX files had to be recompiled.

Specifically, I had to recompile:
cvx_bcompress_mex
cvx_eliminate_mex
whichcpx

In order to compile, I had to run mex -setup, which required me to accept the Xcode license. I only had the Xcode command line tools, so I ran the line of code found here: https://stackoverflow.com/a/73742086

Then I compiled, e.g. mex cvx_bcompress_mex.c

Attempting to compile whichcpx led to errors with SeDuMi, which had to be reinstalled. install_sedumi -rebuild failed, so I installed the latest version of SeDuMi (v1.3.8) from GitHub: https://github.com/sqlp/sedumi

After these steps, I was able to run roast_target.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions