필터 지우기
필터 지우기

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

조회 수: 21 (최근 30일)
John
John 2024년 1월 29일
답변: Shreeya 2024년 5월 8일
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?

답변 (1개)

Shreeya
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.

카테고리

Help CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by