some issues with the matlab runtime

63 vues (au cours des 30 derniers jours)
nathan blanc
nathan blanc le 13 Sep 2021
Commenté : Image Analyst le 25 Sep 2022
I have an app that runs smoothly when run through the app designer or compiled to a matlab app. I am now trying to turn it into a standalone desktop app, and a few issues and questions came up.
  1. I have a runtime installer that was downloaded two months ago. howver matlab cannot find it, neither automatically in the aplication compiler nor when I type "mcrinstaller". I tried to give the location of the zip file but got the message "The file is not a valid runtime installer for this version of matlab". both the installer and my matlab are 2020b. do I have to download the installer every time I want to package my app?
  2. The compiled app doesn't work. i tried to ask about it here but didn't get an answer. I now suspect it has something to do with path clashes between matlab and matlab runtime. in the page about matlab runtime under "Install MATLAB and MATLAB Runtime on Same Machine" they wrote "If you install MATLAB Runtime on a machine that already has MATLAB on it, you must adjust the system library path according to your needs". what does this mean? is the system path the matlab path? what does "according to your needs" mean?
  3. following 2- will all users of my app who have matlab on their computer have to adjust their paths as well?
thanks in advance to anyone brave enough to read this long question
Nathan

Réponse acceptée

Image Analyst
Image Analyst le 13 Sep 2021
You don't give the location of the zip file. You download and install the MCR and you should have a folder (if using Windows) like C:\Program Files\MATLAB\runtime\r2020b. What folders do you have under C:\Program Files\MATLAB on your computer where it does not run?
What is the name of your program and what folder did you install in to?
I use Gammadyne Centurion Setup as my installation package builder. It's far, far superior to MATLAB's deploytool. No contest.
You do not have to download the installer every time you want to run your program or change it. You just need to do it once and it should continue to work. You'll only have to download and install a new release if you compiled your program in the new release.
You do not need to install the runtime library on your development computer. I don't have it installed and I can install and run the deployable standalone program just fine on my computer.
End users will have to install the MCR for the same release you compiled in. The installation process should adjust any paths automatically - they don't need to do anything manually. On rare occasions I've seen them need to reboot but usually they don't.
Don't double click on the icon if you have trouble because the console window will vanish. Get a console window and change directory there and then type the name of your program. Any error messages should remain as long as you compiled with the -m option instead of the -e option of mcc.
See the FAQ:
  8 commentaires
Muhammad
Muhammad le 25 Sep 2022
Modifié(e) : Image Analyst le 25 Sep 2022
@Image Analyst Can you guide me to what is the error for my app? Works fine in matlab, errors out in standalone. All ticks during packaging, packaging log also seems fine. I am doing all this on development computer. Just one runtime, visible in system - wide PATH environment variable. I fail to pinpoint why it isn't working?
Image Analyst
Image Analyst le 25 Sep 2022
No, sorry. You tagged it with "Simulink" and I don't have Simulink. All I can suggest is to see the FAQ:
or call tech support.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by