This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| app-notes:cumulocity-agent-in-lxc-container [2017/02/10 10:19] – [Build the agent] shasha | app-notes:cumulocity-agent-in-lxc-container [2017/02/10 12:03] (current) – [Build the agent] shasha | ||
|---|---|---|---|
| Line 28: | Line 28: | ||
| cd m2m-cumulocity-sdk-c-d627781f3afa | cd m2m-cumulocity-sdk-c-d627781f3afa | ||
| </ | </ | ||
| - | Create an init.mk file, and define specific macros CPPFLAGS, CXXFLAGS and LDFLAGS, LDLIBS and CXX for cross-compiling. | + | Create an init.mk file, and define specific macros CPPFLAGS, CXXFLAGS and LDFLAGS, LDLIBS and CXX for compiling. |
| <code bash> | <code bash> | ||
| CXX: | CXX: | ||
| Line 40: | Line 40: | ||
| cp Makefile.template Makefile | cp Makefile.template Makefile | ||
| </ | </ | ||
| - | Add the Cumulocity agent to the SDK: | + | Add the Cumulocity agent to the SDK:{{: |
| <code bash> | <code bash> | ||
| - | tar xvf netmoduleCumulocityAgent.tar | + | tar -xvzf netmodulecumulocityagentlxc.tar.gz |
| - | cd netmoduleCumulocityAgent | + | cd netmoduleCumulocityAgentLXC |
| </ | </ | ||
| Move the content of **src** folder to the **src** folders of the SDK. | Move the content of **src** folder to the **src** folders of the SDK. | ||
| <code bash> | <code bash> | ||
| cp src/* sdk_folder/ | cp src/* sdk_folder/ | ||
| - | cp include/* sdk_folder/ | ||
| #Copy also the srtemplate.txt | #Copy also the srtemplate.txt | ||
| cp srtemplate.txt sdk_folder/ | cp srtemplate.txt sdk_folder/ | ||