Warning: Requirements cannot analyze .p unless the user provides a corresponding M-code along with it in the same folder. Its dependencies may not be included in the completion because its corresponding M-code found by REQUIREMENTS either is empty or

3 views (last 30 days)
We have a commercial MATLAB Toolbox licensed per installation of MATLAB. After the Toolbox is installed on a user computer running MATLAB, files required for the Toolbox are copied to the user directory. User can then run these function as needed.
C:\Users\username\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\ToolBoxName\ToolBoxFunction.p
In the same directory above, we have .m files with only the commented lines for documentation purposes. We want the user to be able to compile an application that uses the commercial Toolbox function and run that from a computer with MATLAB runtime installed.
During compilation, following warning is generated.
Warning: Requirements cannot analyze C:\Users\username\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\ToolBoxName\ToolBoxFunction.p unless the user provides a corresponding M-code along with it in the same folder. Its dependencies may not be included in the completion because its corresponding M-code found by REQUIREMENTS either is empty or contains nothing but comments.
As stated earlier, the .m files has only comments and that is probably why we get the warning message above.
1) How do we make compiler find the dependency without sharing the proprietary .m files?
2) Does the compiled executable require the Toolbox function be present at the same exact location as above on a different computer with MATLAB runtime installed?
3) Can we change that path to a generic one so that it can be used by any user?

Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!