Why two same Apps compiled from the same Project File in MATLAB Compiler can not be run?

2 views (last 30 days)
I have an app A compiled by someone else and I need to make a copy of app A and produce an app B. Also, I have all the necessary matlab files, external files necessary for compilation of that app A. And lastly, I have the project file from Matlab compiler that was actually used to compile app A. I don't have any issues in running app A, it can be executed on my machine without any problems.
Now, I want to compile app B using the same Project file from Matlab compiler that was used to compile app A. Basically I want to make a copy of app A. So, in the MAtlab compiler I am using the same files necessary for app B to run as I have used for app A.
However, after compiling app B and trying to execute it on my machine, I get an error No matching files were found.
Can anyone give a tip on where the issue might be?
Thank you

Answers (1)

Kojiro Saito
Kojiro Saito on 12 Feb 2020
Open .prj file of app B and please check the full path of "Files required for your application to run" panel is actually existing. You can check the path by mouse hovering on the files.
  2 Comments
EB
EB on 12 Feb 2020
Edited: EB on 12 Feb 2020
All the files in the "Files required for your application to run" for .prj file of app B are the same as files in "Files required for your application to run" for .prj file of app A.
However, when trying to run app B I get the message at the start "No matching files were found".
EB
EB on 12 Feb 2020
Edited: EB on 12 Feb 2020
I have checked the files in the folder for_testing of the compiled app B. In the log file mccExcludedFiles I have a list of 4 excluded files. I have copied and pasted the contents of the log file below.
Excluded files
D:/Program Files/MATLAB/R2015b/toolbox/local/+matlab/+internal/+toolboxes/addInstalledToolboxesToPath.m
D:/Program Files/MATLAB/R2015b/toolbox/local/+matlab/+internal/+zipAddOns/addInstalledZipAddOnsToPath.m
D:/Program Files/MATLAB/R2015b/toolbox/local/pathdef.m
D:/Program Files/MATLAB/R2015b/toolbox/matlab/codetools/initdesktoputils.m
Exclusion Message ID
MATLAB:Completion:ExcludedBy
MATLAB:Completion:ExcludedBy
MATLAB:Completion:ExcludedBy
MATLAB:Completion:ExcludedBy
Reason For Exclusion
Cannot be packaged for use in the target environment MCR. Removed from the parts list by license Compiler.
Cannot be packaged for use in the target environment MCR. Removed from the parts list by license Compiler.
Cannot be packaged for use in the target environment MCR. Removed from the parts list by license Compiler.
Cannot be packaged for use in the target environment MCR. Removed from the parts list by license Compiler.
Exclusion Rule
[Dd]:/Program Files/MATLAB/R2015b/toolbox/local/[+]matlab/[+]internal/[+]toolboxes/addInstalledToolboxesToPath[.]m
[Dd]:/Program Files/MATLAB/R2015b/toolbox/local/[+]matlab/[+]internal/[+]zipAddOns/addInstalledZipAddOnsToPath[.]m
[Dd]:/Program Files/MATLAB/R2015b/toolbox/local/pathdef[.]m
[Dd]:/Program Files/MATLAB/R2015b/toolbox/matlab/codetools
When I do the same check for compield app A, there are no files in the log file mccExcludedFiles.
I suspect that because of the excluded files as shown in the mccExcludedFiles of app B I have an issue in running it in the first place. Now, my question is how can I get track of these files that were excluded and also how these can be included in the compiled version?
Thank you!

Sign in to comment.

Categories

Find more on Manage Products in Help Center and File Exchange

Products


Release

R2015b

Community Treasure Hunt

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

Start Hunting!