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

**URL:** https://forums.synfig.org/t/tips-how-to-build-synfig-from-git-fedora-18/1420
**Category:** Building synfig
**Created:** [June 4, 2011, 3:24pm UTC](https://forums.synfig.org/t/tips-how-to-build-synfig-from-git-fedora-18/1420 "2011-06-04T15:24:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jcome](https://forums.synfig.org/user_avatar/forums.synfig.org/jcome/32/3512_2.png) [@jcome](https://forums.synfig.org/u/jcome)
#### Post date: [June 4, 2011, 3:24pm UTC](https://forums.synfig.org/t/tips-how-to-build-synfig-from-git-fedora-18/1420/1 "2011-06-04T15:24:26Z")

</div>

0 pre-build

the essential tools and libs

```auto
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](http://rpmfusion.org/Configuration)

```auto
pkcon install ImageMagick-devel ffmpeg
```

1 clone the source

```auto
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](http://synfig.org/wiki/Dev:Build_Instructions#Automatic_build_script) and modify it if needed (I changed install path to “~/Apps/Synfig/”), save as synfig-build.sh:

```auto
#!/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

```auto
sh synfig-build.sh
```

3 test your build

```auto
~/Apps/Synfig/bin/synfigstudio
```

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

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

rebuild

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

---

<div class="post-metadata">

### Author: ![Genete](https://forums.synfig.org/user_avatar/forums.synfig.org/genete/32/8_2.png) [@Genete](https://forums.synfig.org/u/Genete)
#### Post date: [June 4, 2011, 3:40pm UTC](https://forums.synfig.org/t/tips-how-to-build-synfig-from-git-fedora-18/1420/2 "2011-06-04T15:40:18Z")

</div>

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

---

<div class="post-metadata">

### Author: ![DaveJ](https://forums.synfig.org/user_avatar/forums.synfig.org/davej/32/93_2.png) [@DaveJ](https://forums.synfig.org/u/DaveJ)
#### Post date: [July 31, 2012, 9:20am UTC](https://forums.synfig.org/t/tips-how-to-build-synfig-from-git-fedora-18/1420/3 "2012-07-31T09:20:42Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![Genete](https://forums.synfig.org/user_avatar/forums.synfig.org/genete/32/8_2.png) [@Genete](https://forums.synfig.org/u/Genete)
#### Post date: [July 31, 2012, 1:20pm UTC](https://forums.synfig.org/t/tips-how-to-build-synfig-from-git-fedora-18/1420/4 "2012-07-31T13:20:11Z")

</div>

> [@](#):
>
> 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.

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
