How to reference ubuntu MATLAB runtime libraries in C#? - c#

I have a C# program that uses the MWARRAY.dll from MATLAB. I am trying to run this program on Ubuntu with mono. But, it keeps saying the MWArray.dll was not found. I have install Matlab runtime on my Ubuntu machine. I wanted to know how to reference Matlab ubuntu libraries in C# code. Is it even possible?

You can use DLLmaps to map library names for specific operating systems. For example, you can put a line like <dllmap dll="some.dll" target="libsome.so" os="!windows"/> in your /etc/mono/config file and it will be mapped for every project.

Related

Call .dll files in ElectronJS on linux

I have a problem with using c# .dll files into my ElectronJS app on linux. I know that Electron-Edge helps to run .NET in Node.js on Electron. But if it`s possible to use c# .dll on linux in this case?
Depends. Check out compatibility table at https://github.com/tjanczuk/edge - if dll is targeted coreCLR and if linux system has core.net installed, those might work for some. If you're dll isn't targeted to coreCLR, then it's pretty much impossible.

Why does IL2CPP run with no error and no output

My unity version is 5.3.4f, and I hava C# script as a.cs and compiled a.exe and it runs OK. Then I use IL2CPP to translate a.exe into C++ compiled exe a_il2cpp.exe with command:
il2cpp.exe --outputpath=a_il2cpp.exe --cachedirectory="obj_cache" generatedcppdir="generated_cpp" a.exe
But it shows no error and no output, do I miss something? I have C++ compiler installed.
Unity does not support using IL2CPP as a general mechanism for translating C# assemblies to native binaries. In theory this is possible (indeed some of the internal testing tools at Unity do this), but I don't think the command line you mention here will allow it to work.

Can I use MONO to create a program that runs without the .NET framework being installed?

I need to write something for a Windows XP embedded computer, which does not have .NET installed.
I already have written the program in .NET, so I'm wondering if there's a way to make it run without .NET?
Perhaps using MONO to create some all-in-one .exe?
Thanks for any thoughts / ideas!
Take a look at mkbundle from Mono:
The resulting executable is self contained and does not need the Mono
runtime installed to run.
When running managed code - .NET/Mono assemblies, a framework is required to be installed. Depending on your dependencies, you may be able to run under mono without modification. Mono is compatible with Windows XP. Parts of .NET are not compatible with Mono such as WPF.
Firstly make it run without .NET is an error concept. .net program must run at .net Environment. You can say without .netframework.
If you want to use .netframework, may these can help you:
http://blogs.msdn.com/b/embedded/archive/2007/03/23/deploying-net-framework-3-0-desktop-distribution-package-on-windows-xp-embedded-sp2-runtime.aspx
http://social.msdn.microsoft.com/Forums/en-US/93e39489-2c61-439d-aa3f-865195fb79d7/net-framework-35-on-windows-xp-embedded?forum=embeddedwindowscomponents
Or you can setup monoruntime on this os

Using MATLAB functions in C#

I want to use a function in C# (2010) generated by a MATLAB Builder for .NET component (R2009a). The system doesn't have MATLAB on it. So, I want to know how can I do this work?
I have installed MCR 7.1 on this machine, But when I want to add .Net MWArray API in my references I can't find it in the .Net DLL list in C#.
I don't think you can extend the C# program you originally produced with MATLAB Builder. The output of MATLAB Compiler is a complete program or library intended to be run on its own, and the EXE is digitally signed to prevent modification. The MCR only allows signed programs to run; it does not include anything but the bare minimum of libraries.

How to include third Party dll files in Mono 2.10?

I have developed an windows desktop Application using C# .NET 4 framwork.Now, we are going to using MONO2.10 for cross platform.For sample, I have downloaded the mono 2.10 on windows version and able to run my .net exe.While doing so, Its Working fine and it says error the below mentioned error msg. As per my understanding, I think the DLL Reference is not included properly...
i am using 2 third party dll files in application.
Ionic.dll for .net zip library
DocumentFormat.OpenXml.dll for XML file management.
Please guide me to how to include these dll reference in Mono on windows?
Thanks & Regards,
Saravanan.P
This library is not part of Microsoft .NET or Mono Framework.
Therefore, you just need to either put it in GAC or in the same folder with your application, just like you normally do with third-party components.

Categories