How to convert a big project into .exe file

3 vues (au cours des 30 derniers jours)
Jinyang
Jinyang le 21 Sep 2014
Hello, everyone: Our team just finished a big project using matlab, we also created a GUI for it. Now we want to convert the GUI to a .exe file. But the problem is this project contains almost 50 .m files and they are located in different folders. If we use mcc -m filename to convert the GUI and we run the executable file, we will just get the error "Undefined function..." since those functions are in different folders , the matlab cannot find them. But it is also impossible to put all those functions in one folder/main file. So is there any way to convert it into .exe file?

Réponses (1)

Image Analyst
Image Analyst le 21 Sep 2014
If it runs in the MATLAB IDE, then the mcc command should find them. I do it all the time - have functions in different folders and it never has trouble finding them. If your executable doesn't find them then mcc wouldn't have found them and you would not have been able to run your code in the IDE without getting the same "Undefined function" error.
  3 commentaires
Image Analyst
Image Analyst le 22 Sep 2014
You can use the -a command but it's really not necessary. Look in the CTF subfolders for the unpacked files and see if they're there. Copies of all the m-files are there in encrypted form.
Bachtiar Muhammad Lubis
Bachtiar Muhammad Lubis le 24 Juil 2019
Hi Image Analyst.
i encounter this error:
"
Error: No source files were specified (-? for help).
"
while trying to run "
mcc
" command.
how's this happened ? and how can i fix this ?
this is the complete error:
Error: No source files were specified (-? for help).
Error using mcc
Error executing mcc, return status = 1 (0x1).
thanks in advance

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB Compiler dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by