How to convert a big project into .exe file

3 Ansichten (letzte 30 Tage)
Jinyang
Jinyang am 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?

Antworten (1)

Image Analyst
Image Analyst am 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 Kommentare
Image Analyst
Image Analyst am 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 am 24 Jul. 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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB Compiler finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by