AppDesigner Standalone Desktop App Error permission denied

12 visualizaciones (últimos 30 días)
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 comentario
Mario Malic
Mario Malic el 28 de En. de 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.

Iniciar sesión para comentar.

Respuesta aceptada

Shubham Khatri
Shubham Khatri el 3 de Feb. de 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 comentario
Philipp Guenthner
Philipp Guenthner el 3 de Feb. de 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 !!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre C Shared Library Integration en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by