Azzera filtri
Azzera filtri

How to switch from using .dll to .so file with loadlibrary?

16 visualizzazioni (ultimi 30 giorni)
I am trying to interface with a Signal Hound SM200C. Our entire development up to this point has been in Windows but for deployment of this software, we need to run Linux. Attached is the copy of the classdef provided by Signal Hound that is the interlayer between the C++ API and MATLAB. The classdef currently only works for windows because it imports a .dll with the loadlibrary function. How would I switch to using the provided shared object file given by simulink to run on Linux?

Risposte (1)

Shreeya
Shreeya il 8 Mag 2024
Hello
From your question I infer that you are using the "loadlibrary" function to load a shared library. A quick look at the documentation suggests that the input to the loadlibrary is a .dll file in windows and a .so file in linux. So if the problem is that you are not able to load the .so file, it may be due to a path issue. You can take a look at the input argument type and example usage in the link below:
Let me know if my understanding of your question is correct or if you need further help.

Categorie

Scopri di più su C Shared Library Integration in Help Center e File Exchange

Prodotti


Release

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by