where can I find libmwtommfile.dylib

44 views (last 30 days)
Steve Thompson
Steve Thompson on 6 Jan 2026 at 22:52
Commented: Woongji Kim on 8 Jan 2026 at 4:59
I have used slbuild to create an executable file from a Simulink model. When I run the executable I get the error mesage
Could not open library: libmwtommfile.dylib
Where can I find this library?

Accepted Answer

Steve Thompson
Steve Thompson on 7 Jan 2026 at 16:10
Thank you. The file is actually present in /Applications/MATLAB/MATLAB_Runtime/.... I am not sure why I didn't find it here.
Thanks for your help.

More Answers (1)

Woongji Kim
Woongji Kim on 7 Jan 2026 at 11:31
Dear Professor Thompson,
I saw your question regarding the libmwtommfile.dylib error. While I am not a macOS user myself and cannot test this directly, I wanted to help, so I consulted Gemini to get a detailed breakdown of what this specific library does and how to resolve the error.
What the file is:libmwtommfile.dylib is a Dynamically Linked Library for macOS (the equivalent of a .dll on Windows or a .so on Linux).
  • Location: Within a MATLAB installation, it is usually found in a path similar to: matlabroot/bin/maci64/ (for Intel Macs) or matlabroot/bin/maca64/ (for Apple Silicon). I am currently using Windows 10, and when I searched my own MATLAB directories, I could not find this file.
Why am I seeing an error for this file?
If you are seeing an error like Could not open library: libmwtommfile.dylib, it usually happens because:
  1. Missing Runtime: You are trying to run a program compiled with MATLAB on a machine that doesn't have the MATLAB Runtime installed.
  2. Path Issues: The system doesn't know where to find the file. On macOS, you may need to ensure the library path is set correctly or that the .dylib is packaged within the application bundle.
  3. Architecture Mismatch: You might be trying to run an Intel-based (maci64) version of the library on an Apple Silicon (maca64) Mac without Rosetta 2, or vice versa.
How to Fix
  • If you are the developer: Ensure that you are distributing the library along with your application or that the user has the correct version of the MATLAB Runtime. Use the mclmcrrt.dylib and related libraries as specified in the MathWorks deployment documentation.
  • If you are a user: Try installing the MATLAB Runtime (it's free) that matches the version of the software you are trying to run.
I hope this information points you in the right direction.

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products


Release

R2025b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!