Development environment

From ago control wiki
Revision as of 15:19, 5 January 2017 by JoakimL (Talk | contribs)

Jump to: navigation, search


Development environment

Docker container

Get Docker container description and scripts from ago files The docker container is build based on Compiling from source

Place in e.g. /home/docker

Build your Docker development container with ./ - this will take more than an hour.

Create a directory for storing the build files permanently, e.g. /home/dev/

Start the Docker container with ./

Install Docker on Linux

curl -sSL | sh
sudo systemctl enable docker
sudo systemctl start docker
sudo usermod -aG docker pi       # Or another user of your choice

Compiling from source

Get the source

git clone

Select the proper branch

Stable releases are tagged on master. Development happens on the "develop" branch. More details are here: Git

cd agocontrol
git checkout develop

Manual Compilation

For an out of tree build, do this:

mkdir build
cd build
cmake ..

If you want to specify build options (e.g. to remove a package from the build), run cmake-gui or ccmake for an interactive dialog.

If you want to compile with debug info (-g option) run "cmake -DCMAKE_BUILD_TYPE=Debug .." instead of "cmake .."

Building debian packages

Change into the git dir and run:

dpkg-buildpackage -b -uc -us

Cleaning built stuff

To clean everything execute:

dpkg-buildpackage -tc
Personal tools