P files cannot be analyzed to find their dependencies. Please add P file dependencies manually
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Micah Mayne
el 20 de Feb. de 2016
Comentada: Gasem
el 13 de Oct. de 2023
Hello, I am making a standalone GUI application that uses the most recent Arduino support package. My GUI does not work because one certain file, as shown in the image is a .p file.
MATLAB advises me to 'P files cannot be analyzed to find their dependencies. Please add P file dependencies manually'.
To be exact, the file name is: 'C:\MATLAB\SupportPackages\R2015b\arduinoide\toolbox\realtime\targets\arduinoide \+ide\+internal\getArduinoIDERootDir.p'
I do not know how to work with .p files in such a manner and am unable to find any sources to solve the problem.
6 comentarios
Jan
el 11 de Jul. de 2019
You can call clear all at first and after calling the code, which contains the P-file, check the list of loaded functions:
[M,X,C] = inmem('-completenames');
Care for including these files.
Gasem
el 13 de Oct. de 2023
Hi. I have same error in my appdesigner code.
what have to do to solve it?
I know what is my app designer problem and requirement . but I don't know how can I add this pfiles to my app designer .
please guide me.
Respuesta aceptada
Jan
el 6 de Dic. de 2017
Editada: Jan
el 5 de Oct. de 2019
I'd start with a web search: Ask your favorite search engine for "Matlab get dependencies of P file". You will find e.g.:
- https://www.mathworks.com/matlabcentral/fileexchange/62367-protected-function--p-code--dependency-analysis-tool
- https://www.mathworks.com/help/matlab/ref/matlab.codetools.requiredfilesandproducts.html
- https://www.mathworks.com/help/matlab/matlab_prog/identify-dependencies.html
There is a chance, that getArduinoIDERootDir.p does not call any other functions, which have not been included from somewhere else. So you could simply try it: Ignore the warning and check, if the resulting executable works reliably. If not, the error message might reveal the required subfunctions. Or use one of the above mentioned methods to analyze the dependencies.
[EDITED] You can call clear all at first and after calling the code, which contains the P-file, check the list of loaded functions:
[M,X,C] = inmem('-completenames');
Care for including these files.
6 comentarios
Aiden Mitio
el 7 de Abr. de 2021
@Edwin Goh I was able to manually add mine from the compile window shown, if they are hidden perhaps in the code set the environment to look in that folder.
Más respuestas (0)
Ver también
Categorías
Más información sobre Instrument Control Toolbox 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!