Build Carrier NDK

Follow the steps included in Carrier NDK README.md to build Carrier NDK distribution:

Build, Deploy and Run Owncloud Agent

Set environment variable $CARRIER_DIST_PATH

$ export CARRIER_DIST_PATH=YOUR-CARRIER-DIST-PATH

In my case YOUR-CARRIER-DIST-PATH is:

~/Elastos.NET.Carrier.Native.SDK/build/_dist

cd ElaTutorial/Elastos.PersonalCloudDrive.Service/build

Please be aware that my dev directory is called ElaTutorial! Use your own directory name instead of ElaTutorial in case you have a different one.

Then run:

./linux_build.sh dist

After you’ve successfully built that, find elaoc-agentd.deb under _dist/Linux-x86_64/debug/

Run the following command to install Owncloud service agent daemon:

sudo dpkg -i /path/to/elaoc-agentd.deb

Now agent daemon is up and running:

sudo systemctl status elaoc-agentd

or