Why is MEX function not defined when run in a Docker microservice container?
I would like to deploy my MATLAB R2024b function to a Docker microservice using the "compiler.package.microserviceDockerImage" workflow. I am compiling on Windows, and the resulting container is running Ubuntu. The function works as intended on Windows and Ubuntu machines, but throws the following error when run in the container:
Method '<METHOD_NAME>' is not defined for class '<NAMESPACE_NAME>' or is removed from MATLAB's search path.
For context, "<METHOD_NAME>" is a custom MEX function within a namespace called "<NAMESPACE_NAME>". I have compiled MEX files for Windows and Linux, and they are both on my MATLAB path at the appropriate namespace location. I have also manually included the Linux MEX file in the container using the "AdditionalFiles" argument, as I realize the Windows MEX file will not work on Linux. How can I resolve this?
Risposta accettata
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!