Clear Filters
Clear Filters

AppDesigner Standalone Desktop App Error permission denied

5 views (last 30 days)
Hi everyone!
this Question might be esay to solve but i am a totaly beginner in Matlab.
I want to create a standalone App with the Matlab Compiler but i get the following Error Message every time i try.
That mlapp file itself runs perfectly fine, when i start it with matlab.
pls help
Preparing Runtime...
mcc -o APP_Makro -W 'main:APP_Makro,version=1.5' -T link:exe -d 'C:\Users\Philipp Günthner\Documents\MATLAB\APP_16_01_2021\for_testing' -v 'C:\Users\Philipp Günthner\Documents\MATLAB\APP_16_01_2021.mlapp' -r 'C:\Program Files\MATLAB\R2020b\toolbox\compiler\resources\default_icon.ico'
Compiler version: 8.1 (R2020b)
Analyzing file dependencies.
Warning: In "C:\Users\Philipp Günthner\Documents\MATLAB\APP_16_01_2021.mlapp", "solve, syms, vpasolve" are excluded from packaging for the MATLAB Runtime environment according to the MATLAB Compiler license. Either remove the file or function from your code, or use the MATLAB function "isdeployed" to ensure the function is not invoked in the deployed component.
Parsing file "C:\Users\Philipp G�nthner\Documents\MATLAB\APP_16_01_2021.mlapp"
(referenced from command line).
Error: Unable to open file "C:\Users\Philipp G�nthner\Documents\MATLAB\APP_16_01_2021\for_testing\requiredMCRProducts.txt": Permission denied.
  1 Comment
Mario Malic
Mario Malic on 28 Jan 2021
Hi,
you can't compile the toolbox that these functions are in "solve, syms, vpasolve". You should see this warning when you compile the app.

Sign in to comment.

Accepted Answer

Shubham Khatri
Shubham Khatri on 3 Feb 2021
Hello,
To my understanding the error for permission occurs when you try to access a file for which you do not have permission to access or modify. I would recommand to check the file access settings from administrator.
Also, it looks like you are trying to complie a toolbox, which can not be done.
Please refer to the this answer for more insight.
Hope it helps.
  1 Comment
Philipp Guenthner
Philipp Guenthner on 3 Feb 2021
Thanks for the anwser! Indeed the problem was that my folders are write-protected and so MATLAB compiler couldn't work properly.
To change the wirte protected properties of your folder didn't work for me somehow, dispite i am the administrator. Must be a new "feature" of win10...
The Solution is pretty simpel. Move the folder with your App to your Main drive root (C:) and the compiler will work.
Thanks for your repely! You saved me a lot of work !!

Sign in to comment.

More Answers (0)

Categories

Find more on C Shared Library Integration 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!