How to convert a big project into .exe file

3 ビュー (過去 30 日間)
Jinyang
Jinyang 2014 年 9 月 21 日
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?

回答 (1 件)

Image Analyst
Image Analyst 2014 年 9 月 21 日
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 件のコメント
Image Analyst
Image Analyst 2014 年 9 月 22 日
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 2019 年 7 月 24 日
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

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by