How to switch from using .dll to .so file with loadlibrary?
13 views (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
Shreeya
on 8 May 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.
0 Comments
See Also
Categories
Find more on C Shared Library Integration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!