Unable to run compiled Matlab app on Windows 10 with Runtime installed- the app looks like a FOLDER to windows 10.
Mostrar comentarios más antiguos
Apologies if this is a basic question.
I created a small app on my mac using Matlab_r2022a
I have Matlab Compiler and compiled the app so it can be run on a device without Matlab.
I wanted to test this on a Windows 10 computer that I just installed Matlab Runtime onto.
The app is recognized as an app on my Mac, and opens fine, works fine, etc . . On the windows 10 device, it is seen as a FOLDER, which I cannot run. When you double click on it the folder just opens . . .
Why is it doing this?
I've tried to upload two screen shots but I dont think its working.
Many kind regard,
Dan Cornfeld
1 comentario
Rik
el 8 de Abr. de 2022
Did you explicitly target Windows with your compilation?
Just a side note: it is a folder on Mac as well. You can right click and use the see contents option to open the folder in finder.
Respuestas (1)
Karanjot
el 26 de Sept. de 2023
Hi Daniel,
I understand that you want to compile a standalone application to both Windows & macOS using MATLAB.
A standalone application can be created as follows:
appFile = "test.m";
buildResults = compiler.build.standaloneApplication(appFile);
The above command generates an executable file ‘test.exe’ or ‘test’ within a folder named ‘teststandaloneApplication’ in your current working directory. The executable has the .exe extension if compiled on a Windows system, or no extension if compiled on Linux or macOS systems.
Please note that executables will run on the respective operating systems for which they were compiled.
To learn more about creating standalone apps using MATLAB functions, please refer to the below documentation:
I hope this helps!
Categorías
Más información sobre MATLAB Compiler en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!