Synfig Project Forum

Forums for Synfig Project
It is currently Sat May 25, 2013 2:31 pm

All times are UTC - 4 hours [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Fri Jan 01, 2010 8:44 pm 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4141
Location: Spain
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
Code:
$ sudo apt-get install git

Clone the source code. This will create a folder called 'synfig'.
Code:
$ git clone git://synfig.git.sourceforge.net/gitroot/synfig/synfig


2) Create the building script:
Code:
$ nano build.sh

Then copy and paste this text into the editor:
Code:
#!/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. Alernatively download this file
Attachment:
File comment: Build script. Modify the CPUS value according to your hardware.
build.txt [635 Bytes]
Downloaded 206 times
and save it as build.sh.

3) Install the needed libraries. Copy the entire line and hit ENTER. Accept all the suggestions.
Code:
$ sudo apt-get install build-essential autoconf automake libtool

Code:
$ 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

Code:
$ 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

Code:
$ sudo apt-get install ccache

4) Run the script to build the binaries:
Code:
$ 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:
Code:
$ cd synfig/install/bin
&./synfigstudio


KNOWN ISSUES:
a) For some reason the default configuration of the input devices produces bad coordinates when input with the mouse. To solve this go to ToolBox->Device Settings and disable all the devices (for a non tablet computer they are usually USB Optical Mouse and Macintosh mouse button emulation). <<< SOLVED IN THE CURRENT GIT VERSION
b) To properly use the new Transform Tool (Rotate, Translate and Scale all in one) you have to modify the default window settings in Gnome. In Ubuntu, go to System>Preferences>Windows and change the "ALT" key by "Super (or Windows Logo)" for the key to move a window. This would allow to use the ALT key to Scale the ducks in Synfig Studio.

Enjoy! :)

_________________
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D


Last edited by Genete on Sun Apr 04, 2010 6:19 pm, edited 1 time in total.
add comment for the known issue a)


Top
 Profile  
 
PostPosted: Sun Jan 17, 2010 1:45 am 
Offline

Joined: Sun Jan 17, 2010 1:42 am
Posts: 1
It built in a smidge under 15 minutes on my machine :)


Top
 Profile  
 
PostPosted: Mon Mar 15, 2010 11:11 am 
Offline
User avatar

Joined: Fri Feb 12, 2010 11:09 am
Posts: 93
Location: Italia
Hi Genete,

I've a "virtual" Kubuntu 9.10 under a VirtualBox machine and when i try the step 3 I get an error :

I can't find the build-essential pack

<see image>
reading packs Done
generating tree of depend....
reading info status done
I can't find the build-essential pack

Where I'm falling...?!
Maybe a network error?
Maybe because I try to launch it from a terminal in the path of a desktop subfolder?

Thanx

BottyE


Attachments:
File comment: Sorry, in Italian...
ScreenHunter_04 Mar. 15 14.57.jpg
ScreenHunter_04 Mar. 15 14.57.jpg [ 22.2 KiB | Viewed 2136 times ]
Top
 Profile  
 
PostPosted: Mon Mar 15, 2010 2:41 pm 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4141
Location: Spain
BottyE wrote:
Hi Genete,

I've a "virtual" Kubuntu 9.10 under a VirtualBox machine and when i try the step 3 I get an error :

I can't find the build-essential pack

<see image>
reading packs Done
generating tree of depend....
reading info status done
I can't find the build-essential pack

Where I'm falling...?!
Maybe a network error?
Maybe because I try to launch it from a terminal in the path of a desktop subfolder?

Thanx

BottyE

It is weird because this package is in all debian derived distributions:
http://packages.ubuntu.com/karmic/build-essential
are you sure that you have all the repositories enabled?
You should enable the proper repositories entries in your Sources Manager.
Maybe this thread can help: http://ubuntuforums.org/archive/index.php/t-867794.html
-G

_________________
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D


Top
 Profile  
 
PostPosted: Thu Jul 01, 2010 4:48 am 
Offline
User avatar

Joined: Thu May 20, 2010 8:43 pm
Posts: 11
Clean install of Ubuntu 10.04 LTS (w/ netbook packages).

Followed instructions. It builds a working copy of synfig, although there is a problem:

Somewhere synfig-studio is compiled with absolute resource linking, rather than relative. This means that I cannot move the compiled program, even if I move the entire git folder.

Example error:
Code:
...

(synfigstudio:12784): Gtk-WARNING **: Error loading icon: Failed to open file '/home/<UserName>/synfig/install/share/pixmaps/synfigstudio/string_icon.png': No such file or directory

...

Segmentation fault



This is after moving
Code:
 /home/<UserName>/synfig/*
to
Code:
/home/<UserName>/GIT/synfig/*

Likewise, renaming the folder to
Code:
 /home/<UserName>/synfigtest/*
fails.
Any ideas?

(Note: I see a loading bar show as synfig-studio cycles through its checks. Then the toolbox shows up for a fraction of a second. Finally it crashes.)


Top
 Profile  
 
PostPosted: Thu Jul 01, 2010 5:42 am 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4141
Location: Spain
It is normal. The icons locations are hardcoded with full path. Maybe it is possible to change the code to use relative path for the icon search. Only quick solution is to configure and make install again. The other solution is to change the code and make the icon search relative to ... relative to what?, the
Code:
prefix=$(pwd)/install

is set to absolute... hmmm.
-G

_________________
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D


Top
 Profile  
 
PostPosted: Fri Aug 19, 2011 11:01 am 
Offline
User avatar

Joined: Thu Aug 18, 2011 8:09 pm
Posts: 13
Just did install from git on Ubuntu 10.04 LTS

The package "git" seems to have been renamed "git-core" in step number one.

Other than that all steps worked correctly. Built in <13 minutes.

I like the Advanced Outlines. Thanks!


Top
 Profile  
 
PostPosted: Mon Mar 19, 2012 6:15 am 
Offline
User avatar

Joined: Sun Aug 16, 2009 12:09 pm
Posts: 213
Location: Belgium
fyi I had to add package autopoint, as per Gettext requisite; simply run the following line after installing ccache (end of 3)
Code:
sudo apt-get install autopoint


(compiled in ~10 minutes on lenovo T500 laptop: IntelCore2Duo 2.5Ghz with 3G Ram, ubuntu 11.04)
B.


Top
 Profile  
 
PostPosted: Fri Apr 19, 2013 8:23 pm 
Offline

Joined: Fri Apr 27, 2012 4:35 am
Posts: 342
Genete : Seems you put libtoolooz in wrong place editing original post
I meen by that, is it normal you say me to change it in studio, but you have done change in core ?

see(ya;

_________________
Code:
for each doc in [wiki] ;; if not doc.lang.your ;; then translate(doc, lang.your) ;;

--------<<<<<<<<<<Synfig documentation Getting started>>>>>>>>>>>>----------


Top
 Profile  
 
PostPosted: Sat Apr 20, 2013 2:57 am 
Offline
Site Admin
User avatar

Joined: Sat Dec 01, 2007 6:26 am
Posts: 4141
Location: Spain
d.j.a.y wrote:
Genete : Seems you put libtoolooz in wrong place editing original post
I meen by that, is it normal you say me to change it in studio, but you have done change in core ?

see(ya;

AFAIK original post is not edited since 2010.
-G

_________________
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 4 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group