Compiling for stand alone

I just started playing around with making Matlab programs with a GUI, but I can't figure out how to compile them so they work at computers without Matlab (if that is even possible?).
I'm using MATLAB R2011b on Windows 7, and I'm fairly new at making GUI's, compiling and stuff like that.

 Respuesta aceptada

Titus Edelhofer
Titus Edelhofer el 10 de Dic. de 2011

0 votos

Hi,
you need to run the MCRInstaller on the computer without MATLAB, see documentation for "deploying standalone applications". It's in matlabroot\toolbox\compiler\deployment\win32(or64)
Titus

5 comentarios

Jakob Sørensen
Jakob Sørensen el 10 de Dic. de 2011
Hi,
thanks for the quick response. Isn't there anyway to make .exe files that can run on any computer, without requirements for installing other programs/environments/codecs etc.?
Image Analyst
Image Analyst el 10 de Dic. de 2011
No there is not. You will need at the minimum the MCR since it is the MATLAB runtime library, along with your app. Without MCR, you're dead in the water. Is there any particular reason why you don't want your users to run MCRInstaller.exe?
Jakob Sørensen
Jakob Sørensen el 10 de Dic. de 2011
Matlab seems awesome for making prototypes of programs, but it would be nice if everyone could see them, without having to install anything extra :)
Image Analyst
Image Analyst el 10 de Dic. de 2011
You could bundle both installers together with a regular install program and the user would see just one install program instead of two. The master install program would just install each individual installer one after the other so to the user it looks like just one installer. The reason I won't do that is because the MCR installer is huge (>400 MB) and needs to be installed just once while mine is small (3-7 MB) and I may need to install it many times as I make changes in response to user requests. I wouldn't want to install the MCR every time I made a small change to my program.
Titus Edelhofer
Titus Edelhofer el 11 de Dic. de 2011
Hi Jakob,
it's somewhat similar to deploying java programs or .NET programs. The only difference is, that the runtime environment for those are often pre-installed, whereas the MCR not.
Titus

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by