How to convert a big project into .exe file

조회 수: 3 (최근 30일)
Jinyang
Jinyang 2014년 9월 21일
댓글: Bachtiar Muhammad Lubis 2019년 7월 24일
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 CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by