Why do I get an error "mclCopyDir failed: fl:filesystem:AccessDenied Failed to copy user-level MATLAB settings ..." during my call to mcc using MATLAB Compiler SDK R2020a?
Show older comments
Previously, I was able to compile my application, but today I receive access denied errors for my preference directory/temporary directory even if I can manually copy the mentioned files.
What could be the reason for this failure?
I am running another very time consuming MATLAB application in parallel which is why I want to avoid to restart MATLAB at this point (to avoid loosing these results).
Here is a copy of the log file I get:
mcc -o MyApp2020a_7p65 -W 'WinMain:MyApp2020a_7p65,version=7.65' -T link:exe -d E:\username\MATLAB_RA\username\Deployment\MyApp\MyApp2020\for_testing -v E:\username\MATLAB_RA\username\Applic\img\MyApp\MyApp.m -a E:\username\MATLAB_RA\username\Applic\img\MyApp\xyz_Diag_07.01.2021_1445.mat -a E:\username\MATLAB_RA\username\Applic\img\MyApp\abc.m -a E:\username\MATLAB_RA\username\Applic\img\MyApp\xyz2.xlsx -a E:\username\MATLAB_RA\common\Applic\toolbox\abc2.class -a E:\username\MATLAB_RA\common\Applic\toolbox\abc2.java -a E:\username\MATLAB_RA\username\Applic\img\MyApp\xyz3_Side_ver03.m -a E:\username\MATLAB_RA\common\Applic\toolbox\abc3.m -a E:\username\MATLAB_RA\username\Applic\img\MyApp\Sxyz.png -r E:\username\MATLAB_RA\username\Deployment\MyApp\MyApp2020_resources\icon.ico
Compiler version: 8.0 (R2020a)
Dependency analysis by REQUIREMENTS.
mclCopyDir failed: fl:filesystem:AccessDenied
Failed to copy user-level MATLAB settings from "C:\Users\username\AppData\Roaming\MathWorks\MATLAB\R2020a" into temporary directory "C:\Users\username\AppData\Local\Temp\mcc.149528_0\user". Cannot continue without risk of corrupting MATLAB settings.
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with MATLAB Compiler SDK in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!