Skip to content

Build prerequisites

albanmartel edited this page May 7, 2014 · 3 revisions

Build prerequisites on Windows
h1. Build prerequisites on Debian

3rd party software

You need the MySQL and Python development packages. Run :

apt-get install libmysqlclient-dev python-dev libcurl4-openssl-dev

It is also recommended to install ccache:

apt-get install ccache

Boost

You need to have boost installed. If it is not in the default location, you can use the --boost-dir build option to specify its path (see next section).

On Ubuntu 11.10

Run :

apt-get update
apt-get install libboost-date-time1.42-dev libboost-filesystem1.42-dev libboost-iostreams1.42-dev libboost-program-options1.42-dev libboost-regex1.42-dev libboost-system1.42-dev libboost-test1.42-dev libboost-thread1.42-dev libboost1.42-dev

On Ubuntu 12.04

  • add the 11.10 source list into /etc/apt/sources.list :
    deb http://fr.archive.ubuntu.com/ubuntu/ oneiric main restricted universe multiverse
  • run following commands :
    apt-get update
    apt-get install libboost-date-time1.42-dev libboost-filesystem1.42-dev libboost-iostreams1.42-dev libboost-program-options1.42-dev libboost-regex1.42-dev libboost-system1.42-dev libboost-test1.42-dev libboost-thread1.42-dev libboost1.42-dev
  • remove the source from /etc/apt/sources.list
  • run
    apt-get update

SYNTHESE build script alias

Follow the Synthesepy script alias instructions.

SLES 11 Build (Suse Linux platform)

* The SDK is required for some packages used while building:

SLES 11 SDK:
http://download.novell.com/protected/Summary.jsp?buildid=fQKpDcAhPVY

disc 1 required for subversion.

# Install packages for building synthese:

# optional, to rebuild faster
sudo zypper in ccache

sudo zypper in subversion
sudo zypper in gcc gcc-c++
# for boost:
sudo zypper in libbz2-devel zlib-devel python-devel
# mysql
sudo zypper in libmysqlclient-devel libcurl-devel

* boost (system boost is too old (1.35))

# login with user "build"
cd ~/source

wget http://switch.dl.sourceforge.net/project/boost/boost/1.42.0/boost_1_42_0.tar.bz2
tar jxf boost_*
cd boost_*
./bootstrap.sh --with-libraries=date_time,filesystem,iostreams,program_options,regex,system,test,thread --prefix=/opt/rcs/boost
sudo mkdir -p /opt/rcs/boost
sudo chown build. /opt/rcs/boost
./bjam install


* Building:

cd rcs
svn co https://extranet.rcsmobility.com/svn/synthese3/trunk synthese3

cd synthese3

# Now, configure the @~/.synthese/config.py@ with your build options.

python tools/synthese.py -m release build
Clone this wiki locally