How to switch from using .dll to .so file with loadlibrary?
21 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Shreeya
2024-5-8
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 C Shared Library Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!