How to create EXE file from GUI using Matlab coder?

1 visualizzazione (ultimi 30 giorni)
ceeri
ceeri il 9 Ott 2015
Modificato: Adam il 9 Ott 2015
I have built exe file using deploytool in Matlab Compiler and it is working fine. But i need exe file to be totally standalone in which no additional runtime compiler is required. I am trying to build exe file using Matlab Coder but it fails saying "variable arguments" in the main function block of GUI. Tell me any way to build exe from GUI which is free from any runtime compiler (like MCR) or any other software dependency. Thanks.

Risposte (1)

Adam
Adam il 9 Ott 2015
Modificato: Adam il 9 Ott 2015
Matlab Coder does not support GUI code as far as I am aware. It wouldn't really make sense since the GUI is Matlab-based and C++ code would require additional libraries and whatnot to reproduce a UI anywhere close to Matlab.
I don't really understand what you are trying to do. Matlab Compiler creates a standalone deployable executable, Matlab Coder converts supported code to C++ (and some other languages I forget probably) code for use either externally or via mex within your Matlab application.
The standalone GUI created by Compiler will always need the Matlab Compiler runtime though. If you don't want that then you'll have to write a GUI in some other language to support code ported by Matlab Coder.

Categorie

Scopri di più su MATLAB Coder in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by