datamodel-aml-c is a wrapper library which is written on the top of datamodel-aml-cpp, that provides the way to present raw data(key/value based) to AutomationML(AML) standard format.
- Transform raw data to AML data(XML).
- Serialization / Deserialization AML data using protobuf.
-
SCons
- Version : 2.3.0 or above
- How to install
-
datamodel-aml-cpp
- Since datamodel-aml-cpp will be downloaded and built when datamodel-aml-c is built, check the prerequisites of it.
- Prerequisites
-
Goto: ~/datamodel-aml-c/
-
Run the script:
./build.sh <options> : Native build for x86_64 ./build_32.sh <options> : Native build for x86 ./build_arm.sh <options> : Native build for armhf [Raspberry pi board]) ./build_arm64.sh <options> : Native build for arm64 [Raspberry pi board])
Notes
For getting help about script option: $ ./build.sh --help
Built datamodel-aml-c library
- Goto: ~/datamodel-aml-c/out/linux/{ARCH}/{MODE}/samples/
- Set library paths:
- datamodel-aml-c library
export LD_LIBRARY_PATH=../
- datamodel-aml-cpp library
export LD_LIBRARY_PATH=../../../../../dependencies/datamodel-aml-cpp/out/linux/{ARCH}/{MODE}/
- datamodel-aml-c library
- Run the sample:
./sample
- The microservice which wants to use aml APIs has to link following libraries:
(A) If microservice wants to link aml dynamically following are the libraries it needs to link:
- aml.so
- caml.so
(B) If microservice wants to link aml statically following are the libraries it needs to link:
- aml.a
- caml.a - Reference aml library APIs : docs/docs/html/index.html