Troubleshooting MATLAB Compatibility on OCLP Sonoma Systems

The search in the provided documents did not yield any specific information about running MATLAB on OCLP (OpenCore Legacy Patcher) with macOS Sonoma. However, based on the response from MATLAB and general knowledge about Hackintosh systems, here are some insights and suggestions:

  1. Graphics Library Issue: MATLAB's crash dump pointing to an issue with the graphics library, specifically "libmwhg.so", suggests that there is a compatibility problem between MATLAB's graphics requirements and the graphics drivers or libraries available in your Hackintosh setup.

  2. Unsupported macOS Version: Using OCLP often indicates that the macOS version installed is not officially supported on the hardware. This can lead to incomplete or incompatible driver support, particularly for graphics, which is crucial for MATLAB.

  3. Potential Solutions:

    • Patch Development: Developing a patch to fix this issue might be complex and requires expertise in macOS internals, graphics drivers, and MATLAB's software architecture. There is no straightforward patch available for such specific issues.
    • Alternative Software: As you mentioned, Octave is working, which could be used as an alternative to MATLAB. Octave is often compatible with MATLAB scripts with minimal modifications.
    • Different OS or Hardware: Using MATLAB on a supported Linux distribution or Windows OS, as suggested by MATLAB support, might be the most straightforward solution. If possible, using a different computer with a supported OS configuration could also be a viable option.
  4. Expertise Required: Addressing such a specific compatibility issue would likely require advanced technical skills in both Hackintosh setups and software troubleshooting.

In conclusion, while a custom patch could theoretically resolve the issue, it would require significant expertise and might not be feasible. Exploring alternative software like Octave or shifting to a supported OS or hardware configuration as suggested by MATLAB might be more practical solutions.

I find that matlab does not run on OCLP Sonoma. I wonder if this can be fixed by a patch? So far i have no issues with Octave after a very limited test.

Response from Matlab: “The crash dump appears to indicate that there is an issue with the graphics library. Of note is the library "libmwhg.so" where the error occurs.

Seeing that you are using OpenCore Legacy Patcher, I would be guessing that this Mac does not officially support this version of MacOS. This would fall under unqualified or unsupported configurations, since the drivers may not be fully functional on this Mac (eg. missing Metal functions).

If you must use this Mac for MATLAB, please use a Linux distribution or Windows OS that is supported on this release of MATLAB. Even if you need a modified Linux distro to achieve this (eg. if you are using a Mac with 32 bit UEFI and 64 bit OS), the broad hardware support of Linux should make sure that drivers and software within expectations, allowing MATLAB to work.

You can also choose to use a different computer that is running a supported OS configuration if you have the ability to access the required hardware.”

submitted by /u/mytwocts
[link] [comments]