Linux Matlab .NET runtime error
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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?
1 Kommentar
Antworten (0)
Siehe auch
Kategorien
Mehr zu Deploy to .NET Applications Using MWArray API finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!