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!