AiTown - Building

Home

We are developing aitown on two platforms: Ubuntu and Windows XP. The workflow on this page may be used to build the package on different platforms. CMake is used to generate platform-specific builds.

Building on Ubuntu

A binary package is not provided, so you will have to build from source.

Prerequisites

Some libraries are embedded in source code, others need to be retreived:
sudo apt-get install cmake-curses-gui cmake
sudo apt-get install git
sudo apt-get install libzmq-dev
sudo apt-get install libargtable2-dev
sudo apt-get install libprotobuf-lite7 libprotoc7 libprotobuf7
sudo apt-get install protobuf-compiler libprotobuf-dev
sudo apt-get install protobuf-c-compiler libprotobuf-c0 libprotobuf-c0-dev
sudo apt-get install libkyotocabinet-dev
Make sure zerom

The zeromq package that ships with Ubuntu is old. Make sure it is not installed by running:

sudo apt-get remove libzmq-dev

Download source files for one of the 4 series. Here is zeromq page and this is a direct link to 4.0.3. Follow directions on zeromq page to build and install.

Gettng the source

Following script will create a directory for aitown and will get the source in src subdirectory.
mkdir aitown
cd aitown
git clone https://github.com/TNick/aitown.git src

Building and instaling

Simply type:
mkdir build
cd build
cmake ../build
make
make install

Building on Windows XP

An installer is not provided at this time, so you will have to build from source. Only MinGW builds have been tested.

Prerequisites

Download source files for one of the zeromq 4 series. Here is zeromq page and this is a direct link to 4.0.3. Follow directions on zeromq page to build and install.

Building and instaling

Simply type:
mkdir build
cd build
cmake ../build -G "MinGW Makefiles"
make
make install

Common notes

To direct the installed files toward a specific directory invoke cmake as follows:
cmake ../build -DCMAKE_INSTALL_PREFIX:PATH=/a/b/c/d
To create a debug build (by default it creates a Release build) use:
cmake ../build -DCMAKE_BUILD_TYPE=Debug
Home