Development environment

From ago control wiki
Jump to: navigation, search

Contents

Development environment

Docker container

Get Docker container description and scripts from ago files The docker container is a Debian Jessie, built based on Compiling from source

Place in e.g. /home/docker

Build your Docker development container with ./build_container.sh - 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 ./start_builder.sh

Install Docker on Linux

curl -sSL get.docker.com | 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 http://git.agocontrol.com/agocontrol/agocontrol.git

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 ..
make

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