How to add different folders while generating standalone exe using mcc command

6 次查看(过去 30 天)
Hi,
I am using MATLAB2013b, I want to generate standalone exe using mcc command.
Let us assume I have folder structure below:
folder1
folder2
folder3
folder2 is having my main file.m. Generally using mcc command would be,
mcc -m folder\file.m
and I have tried another command to include folder
mcc -m folder\file.m -a .\folder2
but I want to add all the above mentioned folders (1,2, and 3) while generating the exe, so I have added all the folders to mcc command and am getting "path not found" errors.
mcc -m folder\file.m -a .\folder2, -a.\folder3
Can you please suggest the command to generate an exe using the mcc command with all the folders and subfolders?
Thanks

回答(1 个)

Image Analyst
Image Analyst 2017-9-5
Genrally the command would not be
mcc -m folder\file.m
because your file is in folder2, NOT folder, according to you. So you should have folder 2 be the current folder and then say
mcc -m file.m -a *.* -a ../folder1 -a ../folder3
This should include all the files in the current folder (folder2), then all the files in folder1 and folder3. I use the .. to go up a level to the parent folder where all 3 folders reside. You used a single dot which meant that folder1 was a subfolder of the current folder, and if you were in folder2 (where your .m file is), that would give the file not found error because folder1 is not a subfolder of folder2.
  1 个评论
jyothi mullapudi
jyothi mullapudi 2017-9-6
Hi, Thank you for your quick response, Command mcc -m file.m -a . -a ../folder1 -a ../folder3 is applicable only when folder 1 and folder 3 are in same working directory of folder2.
but folder2 is my current working directory and folder1 and folder3 are outside of folder1. How we can use mcc command in this scenario.
Thanks

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Application Deployment 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by