Hi @Xinzhou Gao,
The errors you're encountering primarily stem from compatibility issues between the toolboxes and the ARM architecture of your Mac M1 Pro. Many MATLAB toolboxes and external libraries were initially designed for Intel-based Macs, and they may not yet have been updated to support Apple Silicon natively. This is likely why you can install MPT3 successfully on an older version of MATLAB (2021b) but face issues with 2024b.
Steps to Resolve the Issue
1. Check for Updates: Ensure that you have the latest version of MATLAB installed. MathWorks continuously updates their software, including improvements for Apple Silicon compatibility. Look for updates specifically for MPT3 and its dependencies. The developers might have released a newer version that addresses these issues.
2. Install Compatible Versions: If possible, consider using a version of MATLAB that is known to be compatible with MPT3 and its toolboxes on ARM architecture. You mentioned that MATLAB 2021b works fine; it might be worth using that version until full compatibility with 2024b is confirmed.
3. Use Rosetta 2: If you haven't already, try running MATLAB under Rosetta 2, which allows Intel-based applications to run on Apple Silicon. To do this: - Find MATLAB in your Applications folder. - Right-click (or Control-click) on MATLAB and select "Get Info." - Check the box for "Open using Rosetta." - This may allow you to install and run toolboxes that are not yet natively supported.
4. Manually Install Toolboxes: For some toolboxes like "cddmex" or "glpkmex," you may need to manually compile them from source if precompiled binaries are not available for your architecture. Refer to the documentation of each toolbox for instructions on compiling them on macOS.
5. Community Support: Reach out to user forums or communities specific to MPT3 or MATLAB users with M1 chips. Other users may have encountered similar issues and can provide insights or workarounds.
6. Contact MathWorks Support: If none of the above solutions work, consider contacting MathWorks technical support for assistance. They can provide specific guidance based on your setup by clicking the link below.
Here are some additional insights that I would like to share
MATLAB Compatibility: As new versions of software are released, especially in environments transitioning from Intel to ARM architectures, compatibility can be a moving target. It's essential to stay informed about which versions of third-party toolboxes are compatible with which versions of MATLAB.
Testing Toolboxes: If you have access to another machine (Intel-based), testing the installation there can help confirm whether the issue is indeed related to architecture or if it's a broader compatibility issue with the new MATLAB version.
By following these steps, you should be able to address the installation issues with MPT3 on your Mac M1 Pro effectively.
Hope this helps.
