User Tools

Site Tools


melanobot:build

Building From Source

Dependencies

List of Ubuntu packages

If you are on Ubuntu you can just apt-get these:

Tools

g++ cmake git

Libraries

libboost-all-dev libcurl4-openssl-dev libssl-dev

Getting the Sources

Available Git repos:

    • git@github.com:mbasaglia/Melanobot_v2.git (SSH)
    • https://github.com/mbasaglia/Melanobot_v2.git (HTTPS)
    • git@gitlab.com:mattia.basaglia/Melanobot_v2.git (SSH)
    • https://gitlab.com/mattia.basaglia/Melanobot_v2.git (HTTPS)

Building

Quick Build Commands

mkdir build
cd build
cmake ..
make

Modules

Modules contain sets of features which can be enabled or disabled at compile time.

Name Description Default
core Core module, should always be enabled ON
fun Possibly useless yet silly stuff ON
irc Internet Relay Chat support ON
posix Extra features for POSIX systems OFF
web Web stuff (HTTP and friends) ON
xonotic Xonotic integration ON
script Scripting interface ON
lists Manage lists OFF
file_storage Storage with a text file back end OFF

Modules can be toggled during the configuration phase.
Eg (Enabling the Posix module):

cmake -DMODULE_POSIX=ON ..

Running Tests

Tests can be run using ctest.

The make target coverage compiles and runs all the tests, then uses lcov to generate coverage information.

melanobot/build.txt · Last modified: 2015/12/20 20:23 by melanosuchus