Dev:Building Documentation

From Synfig Studio :: Documentation
Revision as of 21:23, 2 April 2012 by Berteh (Talk | contribs) (Building on Ubuntu: typo)

Jump to: navigation, search

Purpose

The purpose of this web page is to gather information about the current build system in order to migrate cmake setup.


Building on Ubuntu

The forum post How to Build Synfig Studio in Ubuntu Karmic Koala 9.10 is pretty self explaining, and works great to build synfig from GIT source under ubuntu 11.04 (tested March 19, 2012), provided a minor addition for an additional package required for the compilation to succeed, as explained in [1]

Those instructions would allow you install Synfig Studio in your system using the latest development version. The default installation path is in your home directory but it can be changed to any place just modifying the script. As development version it is not recommended to install using sudo unless you know what you're doing. The following instructions would allow you install it in a folder in your home directory and can be easily deleted.

1) Prepare to dowload the source code. Install git

$ sudo apt-get install git

Clone the source code. This will create a folder called 'synfig'.

$ git clone git://synfig.git.sourceforge.net/gitroot/synfig/synfig


2) Create the building script:

$ nano build.sh

Then copy and paste this text into the editor:

#!/bin/sh
cd synfig
CPUS=4
prefix=$(pwd)/install
export PKG_CONFIG_PATH="$prefix/lib/pkgconfig"
export PATH=$(pwd)/synfig-core/src/tool/.libs:$PATH
export CXX="/usr/bin/ccache /usr/bin/g++"

cd ETL &&
autoreconf --install --force &&
./configure --prefix $prefix &&
make install &&
\
cd ../synfig-core &&
libtoolize --ltdl --copy --force &&
autoreconf --install --force &&
./configure --prefix $prefix &&
make -j $CPUS install &&
\
cd ../synfig-studio &&
autoreconf --install --force &&
./configure --prefix $prefix &&
make -j $CPUS install

Then press CTRL+O (ENTER) and CTRL+X. This will save the script in the folder where you created the cloned repository... and save it as build.sh.

3) Install the needed libraries. Copy the entire line and hit ENTER. Accept all the suggestions.

$ sudo apt-get install build-essential autoconf automake libtool
$ sudo apt-get install libxml++2.6-dev libsigc++-2.0-dev libltdl3-dev libtool gettext cvs libpng12-dev libmng-dev libjpeg62-dev libfreetype6-dev libfontconfig1-dev libopenexr-dev libavcodec-dev libavformat-dev libmagick++9-dev libdv-bin ffmpeg imagemagick
$ sudo apt-get install libgtkmm-2.4-dev libgtk2.0-dev libglibmm-2.4-dev libsigc++-2.0-dev libltdl3-dev libtool gettext cvs ttf-freefont ttf-dejavu ttf-dustin
$ sudo apt-get install ccache autopoint

4) Run the script to build the binaries:

$ sh build.sh

Depending on your computer speed you may want to go to prepare some cofee ;). Verify that there are not error messages when the script ends.

5) Run synfigstudio and enjoy:

$ cd synfig/install/bin
&./synfigstudio