How to Set Up the MTUSDK Libraries
How to Install Dependencies
Install libjsoncpp-dev for json api
sudo apt install libjsoncpp-devInstall libcurl for http/https access.
sudo apt install libcurl4-openssl-devInstall restclient-cpp.
git clone https://github.com/mrtazz/restclient-cpp sudo apt install libtoolcd restclient-cpp./autogen.sh(installs to usr/local/lib)
sudo make installInstall libusb.
sudo apt-get install libusb-1.0-0-devInstall lissl-dev for base64 encoding/decoding.
sudo apt-get install libusb-1.0-0-devCryptopp from https://github.com/weidai11/cryptopp. Cryptopp is automatically downloaded during the make build of mtusdk static library. Cryptopp is a static library to implement hash sha256.
How to Build
Build libraries
To build libraries:
Extract mtusdk_linux.zip.
Run the make command.
The libraries are built and sent to the mtusdk_test folder.
libmtmms.so (shared object)
libmtscra.so (shared object)
libmtusdk.a (static library)
Rebuild MTUSDK Test Console
To rebuild the MTUSDK Test app after any modifications to main.cpp.
Navigate to mtusdk_test folder.
Modify main.cpp.
Run the make command for DynaFlex devices.
Run the make command for DynaFlex devices.
Run the MTUSDK Test Console
To run the MTUSDK Test app:
The response is similar as below:
If the command is not successful but is similar to:
then send the following command to link the shared object file. Retry after this.
For details on running and modifying the test console see UNIVERSAL SDK FOR MMS DEVICES TEST CONSOLE MANUAL ( LINUX )
Last updated

