'matlab.System' cannot be found in Signal Processing Toolbox Support Package for Linux IIO Devices

2 次查看(过去 30 天)
I am creating a standalone desktop app with Matlab compiler. My app utilizes the Signal Processing Toolbox Support Package for Linux IIO Devices with the matlabshared.libiio.sharedmem.read() function. When utilizing the compiler, it gives suggestions for files to be included and thus includes the read.p file. It gave a warning that dependencies for .p file cannot be scanned, which I think is relevant to the issue. When I try to launch the standalone app, I get the error: the specified superclass "matlab.System" contains a parse error, cannot be found on MATLAB's search path, or is shadowed by a file with the same name. I don't have much experience working with this package but my guess is that read.p references matlab.System. I am not sure how to resolve this. Thanks

回答(1 个)

Shivani
Shivani 2024-6-12
The error you're encountering with your standalone desktop application compiled with the MATLAB Compiler, particularly involving the 'matlab.System' superclass, suggests a potential issue with how the MATLAB Runtime finds and loads the necessary classes and packages.
This answer specifically addresses the scenario where the error message appears while executing a MATLAB standalone executable created with the MATLAB Compiler. It suggests ensuring that your system's path correctly points to the MATLAB Runtime version that matches the MATLAB release and update used for deployment. For more information on configuring your system path for MATLAB Runtime, refer to the documentation provided here: https://www.mathworks.com/help/compiler/mcr-path-settings-for-run-time-deployment.html"
  1 个评论
Thomas J Kelly
Thomas J Kelly 2024-6-12
Thanks for your reply,
It doesn't appear that there are any conflicting paths that are causing this issue (matlab.System only exists under root). Furthermore, my path variable is set correctly to my runtime. Still getting the same error. Any other ideas? Thanks

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Software Development Tools 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by