Linux Matlab .NET runtime error

10 ビュー (過去 30 日間)
Yue Chen
Yue Chen 2022 年 2 月 3 日
コメント済み: Anoop Pathak 2022 年 9 月 21 日
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 件のコメント
Anoop Pathak
Anoop Pathak 2022 年 9 月 21 日
@Yue Chen Were you able to solve the issue?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDeploy 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