Linux Matlab .NET runtime error

11 Ansichten (letzte 30 Tage)
Yue Chen
Yue Chen am 3 Feb. 2022
Kommentiert: Anoop Pathak am 21 Sep. 2022
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?

Antworten (0)

Kategorien

Mehr zu Deploy to .NET Applications Using MWArray API finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by