Development environment

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
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]]
  
 
Place in e.g. /home/docker
 
Place in e.g. /home/docker
Line 11: Line 12:
  
 
Start the Docker container with ./start_builder.sh
 
Start the Docker container with ./start_builder.sh
 
Get source files with
 
git clone http://git.agocontrol.com/agocontrol/agocontrol.git \
 
  
 
=== Install Docker on Linux ===
 
=== Install Docker on Linux ===
Line 22: Line 20:
  
 
== Compiling from source ==
 
== Compiling from source ==
The docker container is build based on [[CompilingSource|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

Revision as of 15:19, 5 January 2017

Contents

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