Linux Matlab .NET runtime error

11 次查看(过去 30 天)
Yue Chen
Yue Chen 2022-2-3
I followed the instruction on https://www.mathworks.com/help/compiler_sdk/dotnet/create-a-dotnet-core-application-that-runs-on-linux-and-macos.html to create a .NET5 program on windows and create an linux application by using dotnet publish --configuration Release --framework net5.0 -o ./app --runtime ubuntu.20.04-x64 --self-contained true Matlab.csproj. I used Matlab 2019b compiler tool to generate the .dll library. And the application I generated from .Net 5 get deployed in ubuntu20.04 with Matlab 2019b runtime.
But When I run the .NET 5 program, it comes up a error :
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]
An unhandled exception has occurred while executing the request.
System.EntryPointNotFoundException: Unable to find an entry point named 'memcpy_proxy' in shared library 'mclmcrrt9_7.dll'.
at MathWorks.MATLAB.NET.Utility.MWMarshal.memcpy(IntPtr source, IntPtr destination, IntPtr size)
at MathWorks.MATLAB.NET.Utility.MWMarshal.MarshalManagedColumnMajorToUnmanagedColumnMajor(Array managedSrc, Double* destPtr)
at MathWorks.MATLAB.NET.Arrays.MWNumericArray.FastBuildNumericArray(Array realData, Array imaginaryData, Boolean makeDouble, Boolean rowMajorData)
at MathWorks.MATLAB.NET.Arrays.MWNumericArray..ctor(Array array)
Looks like there is missing function(memcpy) in Linux mclmcrrt9_7.dll.
May I know how can I sovle the issue?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Deploy to .NET Applications Using MWArray API 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by