Mex Function inside a ctf package cant find MatlabEngine

조회 수: 9 (최근 30일)
Jasper Lammering
Jasper Lammering 2020년 10월 21일
답변: Jasper Lammering 2021년 5월 19일
Software: Linux with Matlab and Matlab Runtime version 2019a.
Goal: Compiling ctf package with the "Production Server Compiler" to run the package on a machine with only the runtime
Problem: The files inside the Package are using a c++ mexfunction. This is compiled by linking the shared library "MatlabEngine". When I try to use this package with the matlab runtime it states that it can't find the "MatlabEngine" library, which makes sense because it is not included in the Runtime.
Question: How should I compile the mexfunction so that it can be used inside a package and on machine with only the runtime?
P.S: I had the idea that I could use the static version of the MatlabEngine library but I didn't found it in the linux version ob Matlab.

채택된 답변

Jasper Lammering
Jasper Lammering 2021년 5월 19일
The solution was just to not use the MatlabEngine in the compilation of a mex function. The library is not needed for this.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Call MATLAB from C++에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by