[tips]how to build synfig from git (Fedora 18)


#1

0 pre-build

the essential tools and libs

pkcon install git autoconf automake gcc-c++ ccache libtool libtool-ltdl-devel gettext-devel libxml++-devel gtkmm24-devel 

optional packs for rendering targets with rpmfusion enabled

pkcon install ImageMagick-devel ffmpeg


1 clone the source

mkdir ~/Source && cd ~/Source/ &&  git clone git://synfig.git.sourceforge.net/gitroot/synfig/synfig 

2 build

download the build script from synfig.org/wiki/Dev:Build_Instru … ild_script and modify it if needed (I changed install path to “~/Apps/Synfig/”), save as synfig-build.sh:

#!/bin/sh
CPUS=1
prefix=~/Apps/Synfig
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 synfig/ETL &&
autoreconf --install --force  &&
./configure --prefix $prefix &&
make --debug=b install  &&
				   \
cd ../synfig-core	  &&
libtoolize --copy --force  &&
autoreconf --install --force  &&
./configure --prefix $prefix --enable-optimization=0 --enable-debug	&&
make --debug=b -j $CPUS install	  &&
     	  								\
cd ../synfig-studio  &&
autoreconf --install --force	&&
./configure --prefix $prefix --enable-optimization=0 --enable-debug	&&
make --debug=b -j $CPUS install

and then start to build

sh synfig-build.sh

3 test your build

~/Apps/Synfig/bin/synfigstudio

4 to get updated with the latest changes
moving code base you regularly do

cd ~/Source/synfig && git pull --rebase  

rebuild

 cd ~/Soruce/ && sh synfig-build.sh

[SOLVED] Running Synfig after building
#2

Very straightforward! I’ll make this post sticky.
Thanks jcome!
-G


#3

I just tried this on a Fedora 17 Virtual Machine and it works perfectly. The only thing I found is you have to install Synfig from a binary (RPM) first because otherwise the install fails at the end when it tries to use synfig to create the Synfig icon as it doesn’t try to use the synfig you just compiled to do this.

Many thanks for these instructions - I found them really, really helpful. It would have taken me weeks to work out how to compile Synfig without them!


#4

It means that something went wrong in the build process because the build script should add to your PATH the location of the just build synfig CLI (that is used to render the icons at synfigstudio build phase)
-G