How do you specify api:matlab-data when using the Library Compiler for .NET Assembly? 2023b
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Nolin Borrero Jr
am 3 Apr. 2024
Beantwortet: Kojiro Saito
am 8 Apr. 2024
I'm trying to compile using the matlab-data api with MATLAB 2023b but I cannot figure out how to add it.
I've tried adding -W 'dotnet:api=matlab-data' to the "Additional parameters passed to mcc" field in Settings. The result is:
mcc -W dotnet:api=matlab-data -W 'dotnet:MLI,Class1,5.0,private,version=1.0'........
with the error message of:
Invalid placement of "api=" in -W option. "api=" must be specified immediately after component name.
If I cleanup the command that's in the log and run it to be the below value then it works correctly.
mcc -W 'dotnet:MLI,Class1,api=matlab-data,5.0,private,version=1.0'........
How do I add the parameter in a way that I can use the Library Compiler to create this?
0 Kommentare
Akzeptierte Antwort
Kojiro Saito
am 8 Apr. 2024
As written in this document, "-W" option cannot be specified in Library Compiler App (deploytool app).
-W 'target[:options]'
Cannot be used in a deploytool app.
compiler.build.dotNETAssembly(Files, 'Interface','matlab-data')
mcc -W 'dotnet:MLI,Class1,api=matlab-data,5.0,private,version=1.0'
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB Compiler SDK 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!