@Yue Chen Were you able to solve the issue?
Linux Matlab .NET runtime error
11 次查看(过去 30 天)
显示 更早的评论
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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!