You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I'm interested in using the C# bindings to connect to libiio from dotnet. The thing that's throwing me off right now, conceptually, is that I want to do it from Linux. It throws me because I've never called into native code from Linux- I'm usually on Windows when I need to do it. I'm not at the point of writing code yet, but I think the process I need to go through is something like:
Build the C++ libraries as .lib or .so files, targeting Linux
Modify the code so it uses a .NET project file to build the bindings (the cmake file seems to target .NET Framework)
Change the DLLImportAttributes so that they import the non-dll libraries.
Build the C# bindings
Pack it all into a nuget and use it in projects.
Is that about right? SWIG and GIS have been suggested as alternatives, but I'd rather not use them if a solution already exists, or is very close to it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi! I'm interested in using the C# bindings to connect to libiio from dotnet. The thing that's throwing me off right now, conceptually, is that I want to do it from Linux. It throws me because I've never called into native code from Linux- I'm usually on Windows when I need to do it. I'm not at the point of writing code yet, but I think the process I need to go through is something like:
Is that about right? SWIG and GIS have been suggested as alternatives, but I'd rather not use them if a solution already exists, or is very close to it.
Thanks for any help you can offer,
Beta Was this translation helpful? Give feedback.
All reactions