How to connect client application with Matlab Production Server.

1 visualización (últimos 30 días)
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.

Respuesta aceptada

Kojiro Saito
Kojiro Saito el 12 de Feb. de 2019
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.

Más respuestas (0)

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by