How to run a .exe file in other computers without Matlab?

4 views (last 30 days)
Same old question, but what I want to know is if there is a way to include the necessary files in the same .exe so any computer (even if not having matlab or software needed) can run the program.
Maybe automatically putting necessary files temporary as the program is used and then remove them?. Otherwise I'm getting this error.

Answers (2)

Image Analyst
Image Analyst on 24 Jun 2022
I don't think so because the library is so huge. It's up to 3.6 GB now. I don't think a 3.6 GB executable would be good. So they just need to install the MCR once, and then you can deploy your app over and over again with new features without them having to install the MCR all the time (which can take a long time).
  5 Comments
Walter Roberson
Walter Roberson on 24 Jun 2022
If all you need is ocr(), then you might be interested in https://www.mathworks.com/discovery/matlab-opencv.html which provides an interface to OpenCV; see https://nanonets.com/blog/ocr-with-tesseract/ for a tutorial (Python based). That is, the idea would be to use MATLAB Compiler to generate code that called into OpenCV .
However... if you did that, you would probably have no support for graphics, other than possibly support for reading JPEG files ( specifically JPEG, not any other image type.)

Sign in to comment.


Walter Roberson
Walter Roberson on 24 Jun 2022
If you are using the Matlab Compiler App there is an option in the GUI in the top right as to whether to build with or without including the MCR, but it will still be an installer that you would create that will wrap these together.
  2 Comments
Image Analyst
Image Analyst on 24 Jun 2022
If you do that, I think it means using deploytool and it can build in the MCR installer into your installer that you deploy, along with your app's .exe and any other files you told it to include with the "-a" option. I could be wrong but I don't think it includes the whole GB+ installer -- I think it just installs a stub that checks if the correct version of MCR is already installed, and if not, then downloads the whole GB+ installer from the Mathworks web site. The stub is much smaller. But it still means that there will be over a GB of data that needs to be delivered to your end user. And the installer for your app will be many MB bigger because the MCR-checker stub will need to be attached to it.
What I prefer is to have the installers for MCR and for my app be separate. That way the MCR only needs to be delivered and installed once and I don't have this extra bits for the MCR-checker stub always there when I don't even need it for subsequent versions made with the same release of MATLAB.

Sign in to comment.

Products


Release

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by