How to connect client application with Matlab Production Server.

조회 수: 2 (최근 30일)
Hi, i´m building an application to connect with Production Server instance, the server is running well, the problem is that i don´t know how to use the library provided by Matlab "mpsclient.lib" with my App. I´m using C++ with Visual Studio 2017, please can someone help me, thanks.

채택된 답변

Kojiro Saito
Kojiro Saito 2019년 2월 12일
Here is a documentation of MPS client samples for C++.
In Visual Studio a few more things are needed.
  • Change Solution Platforms from "x86" to "x64".
  • Add C/C++ include directories
From Project Properties, go to "C/C++ General" -> "Additional Include Directories" and add $MPS\client\c\include
where $MPS is installation folder of MATLAB Production Server,
for example, C:\Program Files\MATLAB\MATLAB Production Server\R2018b
  • Add Linker library directroies
From Project Properties, go to "Linker" -> "General" -> "Additional Library Directories"
and add $MPS\client\c\win64\lib
  • Add mpsclient.lib to linker
From Project Properties, go to "Linker" -> "Input" -> "Adiitional Dependencies" and add mpsclient.lib
  • Build the cpp and create an exe.
  • Copy libcurl.dll, mpsclient.dll and libprotobuf.dll from $MPS\client\c\win64\lib to the same folder of your exe file, then run the exe.
Hope this help.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Production Server에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by