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
조회 수: 5 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 C Shared Library Integration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!