Development environment

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
(Docker container)
 
Line 3: Line 3:
 
== Docker container ==
 
== Docker container ==
 
Get Docker container description and scripts from [https://github.com/JoakimLindbom/ago ago files]
 
Get Docker container description and scripts from [https://github.com/JoakimLindbom/ago ago files]
The docker container is build based on [[CompilingSource|Compiling from source]]
+
The docker container is a Debian Jessie, built based on [[CompilingSource|Compiling from source]]
  
 
Place in e.g. /home/docker
 
Place in e.g. /home/docker

Latest revision as of 17:27, 5 January 2017

Contents

[edit] Development environment

[edit] 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

[edit] 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

[edit] Compiling from source

[edit] Get the source

git clone http://git.agocontrol.com/agocontrol/agocontrol.git

[edit] 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

[edit] 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 .."

[edit] Building debian packages

Change into the git dir and run:

dpkg-buildpackage -b -uc -us

[edit] Cleaning built stuff

To clean everything execute:

dpkg-buildpackage -tc
Personal tools