How to build Synfig in Ubuntu Intrepid 8.10

Question and answers on how to build Synfig. We encourage you to document your findings on the build instructions page of the website
User avatar
Genete
Site Admin
Posts: 5155
Joined: Sat Dec 01, 2007 6:26 am
Location: Spain

How to build Synfig in Ubuntu Intrepid 8.10

Postby Genete » Sun Nov 09, 2008 5:29 am

UPDATE: Zelgadis provides packages with minimal dependences here.
UPDATE: There is a repository with the binaries ready to install for Ubuntu Intrepid. See this post.

-----------------------------------------------
Ubuntu 8.10 Intrepid has the following version installed:
0.61.08-1build1
The source code of this version was released on march 2008 and at this time it worked perfectly with the current version at that time (Ubuntu 8.04 Hardy).
We have been working on the release of synfig 0.61.09 and solved the bug you have before release it. Simplifying, the bug is due to a change at the GTK/GTKmm version from 2.12 to 2.14 that produced a crash due to a null pointer dereference after a bad instantiation of the spin button class (which deliver a bad value in other place of the code):

Code: Select all

(synfigstudio:16935): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(synfigstudio:16935): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
Segmentation fault


Unfortunately we didn't were so quick to introduce 0.61.09 to ubuntu 8.10. Maybe they admit a backport to 8.04 as well as 8.04 is LTS.

So the only way to have synfigstudio working on ubuntu 8.10 is to build it from your self.

SPECIFIC UBUNTU INTREPID 8.10 INSTALLATION INSTRUCTIONS


0) MAKE UBUNTU BE ABLE TO BUILD DEBIAN PACKAGES.
Not all the people has the needed tools to build executable binaries from source code. To be sure you have them installed run this command:

Code: Select all

$ sudo apt-get install build-essential


1) UNINSTALL SYNFIG AND SYNFIGSTUDIO SHIPPED BY UBNUTU:
Be sure that you uninstall synfig and synfigstudio if they are already installed.

Code: Select all

$sudo apt-get remove libsynfig0

This will remove libsynfig0, libsynfigapp0, synfigstudio and synfig if were installed

2) DOWNLOAD THE TARBALLS FROM SOURCEFORGE & UNTAR THEM:
I strongly recommend to use the shortest way if you're not used to work with subversion:
Visit this link and download the tarballs from sourceforge, (etl, synfig and synfigstudio) untar them,

Code: Select all

$tar -xvzf ETL-0.04.12.tar.gz
$tar -xvzf synfig-0.61.09.tar.gz
$tar -xvzf synfigstudio-0.61.09.tar.gz

and do the following building instructions in the order they are shown:

3) BUILD AND INSTALL ETL
etl: no development package needed, just:

Code: Select all

$ cd ETL-0.04.12
$./configure
$sudo make install
$ cd ..


4) BUILD AND INSTALL SYNFIG
Note 1: Do this before ./configure: the 'configure.ac' file in the synfig-core directory doesn't work with libtool version 2, as shipped with ubuntu 8.10. To work around the problem until a proper fix is found, comment out line 622 (it says "AC_CONFIG_SUBDIRS(libltdl)") by putting a "#" at the front of the line. The line is required for older versions of libtool, as shipped with other distributions.
Note 2: Maybe some of the packages have a newer version in ubuntu 8.10. Just install the suggested. I've recently upgraded to 8.10 and the libraries were automatically updated without problems to build the code.

synfig: it needs some development libraries to be build:

Code: Select all

$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
$ cd synfig-0.61.09
$./configure
$make
$sudo make install
$ cd ..


5) BUILD AND INSTALL SYNFIGSTUDIO
synfigstudio: it needs some development libraries to be build

Code: Select all

$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
$ cd synfigstudio-0.61.09
$./configure
$ make
$ sudo make install
$ cd ..


6) ALLOW APPLICATION TO FIND THE LIBRARIES

Code: Select all

$sudo ldconfig


Please let us know if you have success or not.
Greetings
-G
Last edited by Genete on Sun Feb 08, 2009 11:05 am, edited 13 times in total.
Reason: Updated 2. Added Zelgadis unified package, now yes!
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D

Advertisement

Gaijin
Posts: 4
Joined: Sun Nov 09, 2008 7:09 pm

Re: How to build Synfig in Ubuntu Intrepid 8.10

Postby Gaijin » Sun Nov 09, 2008 7:31 pm

I've just registered to say:

Thank you very much, Genete!
I've built Synfig 0.61.09 successfully on Ubuntu Intrepid (8.10).
However, I needed to run

Code: Select all

sudo ldconfig

just after the Synfig part. Synfig didn't find libsynfig.so.0 and the synfigstudio compiling threw an error at the icon creation phase otherwise.
checkinstall didn't work for anything other than ETL, and I wound up make install'ing them all. So no debs for now. :?

bungleman
Posts: 1
Joined: Tue Nov 11, 2008 8:02 am

Re: How to build Synfig in Ubuntu Intrepid 8.10

Postby bungleman » Tue Nov 11, 2008 10:06 am

Well, I just registered so I could also say thank you!

I now have a working Synfig 0.61.09 on intrepid 8.10.

Genete, your clear instructions worked. Perhaps I am too much of a noob, but it took me a few attempts before I realised I needed to install G++ from the package manager.

Gaijin, I have no idea what "ldconfig" does, but that also worked. Initially I had errors with libsynfig.so.0, and using the command fixed it on my third or fourth install attempt.

I have never compiled an app. from source before, but I really needed synfig to make some projections for a play to be performed in less than 3 weeks. I am extremely pleased that I can continue my work.

Thanks again

eyecolor
Posts: 2
Joined: Wed Nov 12, 2008 1:23 pm

Re: How to build Synfig in Ubuntu Intrepid 8.10

Postby eyecolor » Wed Nov 12, 2008 1:36 pm

thank you a lot for the instructions.

i have ubuntu studio intrepid newly installed and i had to do these additional installs:

Code: Select all

sudo apt-get install libgtkmm-2.4-dev

preinstalled on intrepid ubuntu studio is ETL 0.4.11
so i needed the package ETL 0.4.12 from here:
http://sf.net/project/showfiles.php?group_id=144022&package_id=198849
also

Code: Select all

sudo ldconfig

after both installing synfig and synfig studio

now it works :D

User avatar
Genete
Site Admin
Posts: 5155
Joined: Sat Dec 01, 2007 6:26 am
Location: Spain

Re: How to build Synfig in Ubuntu Intrepid 8.10

Postby Genete » Wed Nov 12, 2008 2:36 pm

eyecolor wrote:thank you a lot for the instructions.

i have ubuntu studio intrepid newly installed and i had to do these additional installs:

Code: Select all

sudo apt-get install libgtkmm-2.4-dev

preinstalled on intrepid ubuntu studio is ETL 0.4.11
so i needed the package ETL 0.4.12 from here:
http://sf.net/project/showfiles.php?group_id=144022&package_id=198849
also

Code: Select all

sudo ldconfig

after both installing synfig and synfig studio

now it works :D

Hey eyecolor! I'm glad you suscesfully installed etl, synfig and synfigstudio!
Isn't libgtkmm-2.4-dev already listed in the 1st post? and when I say "download the packages from this link" is not obvious that you have to download all them? :roll:
And yes, I have to add the 'ldconfig' thing to it.
Enjoy! :D
-G
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D

User avatar
Genete
Site Admin
Posts: 5155
Joined: Sat Dec 01, 2007 6:26 am
Location: Spain

Re: How to build Synfig in Ubuntu Intrepid 8.10

Postby Genete » Wed Nov 12, 2008 2:46 pm

Hey Gaijin and bungleman!
Thanks to you too for your clarifications and your encouragement!
Enjoy synfig! ;)
-G
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D

eyecolor
Posts: 2
Joined: Wed Nov 12, 2008 1:23 pm

Re: How to build Synfig in Ubuntu Intrepid 8.10

Postby eyecolor » Wed Nov 12, 2008 3:51 pm

Isn't libgtkmm-2.4-dev already listed in the 1st post?

:oops: true - seems i have been working in circles :wink:

thanx anyway

Sinkestistie
Posts: 31
Joined: Thu Nov 13, 2008 8:20 am

Re: How to build Synfig in Ubuntu Intrepid 8.10

Postby Sinkestistie » Thu Nov 13, 2008 8:35 am

after following the steps what should I do to run synfig studio?

Gaijin
Posts: 4
Joined: Sun Nov 09, 2008 7:09 pm

Re: How to build Synfig in Ubuntu Intrepid 8.10

Postby Gaijin » Thu Nov 13, 2008 10:09 am

Sinkestistie wrote:after following the steps what should I do to run synfig studio?

You'll find it under Applications->Graphics->Synfig Studio (if you use Gnome), or you can execute

Code: Select all

synfigstudio
from a terminal.

Sinkestistie
Posts: 31
Joined: Thu Nov 13, 2008 8:20 am

Re: How to build Synfig in Ubuntu Intrepid 8.10

Postby Sinkestistie » Thu Nov 13, 2008 2:03 pm

I cannot open synfig by both method you mention... it seems that my installation has problem

User avatar
Genete
Site Admin
Posts: 5155
Joined: Sat Dec 01, 2007 6:26 am
Location: Spain

Re: How to build Synfig in Ubuntu Intrepid 8.10

Postby Genete » Thu Nov 13, 2008 7:05 pm

Sinkestistie wrote:I cannot open synfig by both method you mention... it seems that my installation has problem

Did you notice something strange when compiling?
can you type this in a terminal?

Code: Select all

$ type synfigstudio
synfigstudio is /usr/local/bin/synfigstudio
$

This would tell you where synfigstudio is located.

Did you un-install the shipped packages from ubuntu?

Try all the steps again but be sure you type this in the terminal before start doing anything:

Code: Select all

$export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

And run this command before you run the program (synfigstudio):

Code: Select all

$sudo ldconfig

Last thing, paste here the console output you obtain.
Good luck
-G
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D

User avatar
Coolname007
Posts: 150
Joined: Sun Nov 02, 2008 9:36 pm
Location: Another galaxy

Re: How to build Synfig in Ubuntu Intrepid 8.10

Postby Coolname007 » Fri Nov 14, 2008 2:35 pm

i too am having problems with building it, Genete! I just recently downloaded and installed Ubuntu 8.10, using Wubi installer, and attempted to build synfig on it, using your instructions, but i ran into a couple problems... :?

ok...first of all, after downloading etl, synfig, and synfigstudio, i ran the terminal, and tried typing in 'cd etl' like you said, but i got an error message in the terminal saying that there was no such file or directory. well...i finally got past that one, thanks to pixelgeek's help (turns out the problem was i had to first go to the dir containing etl, using the terminal, before the command worked), but then i ran into another problem at the place where i'm supposed to type in 'sudo make install', and then type in my user's password, but for some reason, ubuntu would not allow me to type in ANYTHING at that place! :? the flashing typing thing would not even move...although it would stop flashing when i typed!

not sure what the problem is...

So could you help with this, Genete?

Thanks, and much appreciation! :)

EDIT: oh, and another thing, Genete! my version of ubuntu, using wubi installer, didn't come with synfig pre-installed! :?: just wanted to clear that in case your wondering!
Last edited by Coolname007 on Wed Feb 04, 2009 1:53 pm, edited 2 times in total.

Sinkestistie
Posts: 31
Joined: Thu Nov 13, 2008 8:20 am

Re: How to build Synfig in Ubuntu Intrepid 8.10

Postby Sinkestistie » Fri Nov 14, 2008 2:41 pm

wow, after giving it another attempt, it works now!!! not sure what did I do wrong.

Thanks a lot!

User avatar
Genete
Site Admin
Posts: 5155
Joined: Sat Dec 01, 2007 6:26 am
Location: Spain

Re: How to build Synfig in Ubuntu Intrepid 8.10

Postby Genete » Fri Nov 14, 2008 8:53 pm

@ Sinkestistie: I'm glad it worked for you. Enjoy!

@ Coolname007: I've modified the instructions to help on unpackaging the tarball files.

go to the dir containing etl, using the terminal, before the command worked), but then i ran into another problem at the place where i'm supposed to type in 'sudo make install', and then type in my user's password!! for some reason, ubuntu would not allow me to type in ANYTHING at that place!! :? the flashing typing thing would not even move...although it would stop flashing when i typed!


once you have un-compressed the tar.gz files they should produce the following folders: etl, synfig-core, synfig-studio. To test that you have unpack all the files properly you should obtain more or less the same result than me:

After download the files form sourceforge and after run the 'ls' command ('ls' = 'dir' in MSDOS):
Image

After do:

Code: Select all

tar -xvzf ETL-0.04.12.tar.gz

and run 'ls' again:
Image

After do:

Code: Select all

tar -xvzf synfig-0.61.09.tar.gz

and run 'ls' again:
Image

After do:

Code: Select all

tar -xvzf synfigstudio-0.61.09.tar.gz

and run 'ls' again:
Image

once unpacked correctly you can continue with the following steps of the recipe.

Regarding the missing characters when typing your password it is just a security thing. 'sudo' means "super user do" what means that the following command that you type will be done by a "super user" with certain privileges. That 'sudo' must be used carefully because if you do a mistake in the command after it, you can eventually delete all the filesystem or damage them permanently (or very complicated to restore)... and you don't want to do that, right?
It is possible that someone else is watching your terminal at the same time than you (even with your permit; for example you could want that someone can help you remotely to do some tasks in the computer). If you type the super user password and the letters are shown he can copy them and enter in your computer!, do you want that? I guess no. So even the number of characters are hidden.
When you use 'sudo' in ubuntu you should type your password when it prompts for it. Type the password carefully and without visual feedback. If you make a mistake you can repeat; it is user friendly.

Try it again and have good luck!
-G
Synfig needs your help!
Developers, packagers, bug testers, translators, artists, web developers, wiki writers... you can contribute! :D

User avatar
Coolname007
Posts: 150
Joined: Sun Nov 02, 2008 9:36 pm
Location: Another galaxy

Re: How to build Synfig in Ubuntu Intrepid 8.10

Postby Coolname007 » Fri Nov 14, 2008 11:34 pm

Thanks, genete, for the new instructions!!! :D i'll get on it right away, to make sure that i've uncompressed them correctly!

as for the bit where you suggested that someone else had access to my terminal, such as a remote user, the answer is NO! :twisted:

i am the only user of ubuntu on my computer, and i have not lent out any privileges to ANYONE, nor have i allowed anyone remote access to my computer!

and about what you suggested concerning the sudo password thing...no, i don't think that's the case! :wink: i am QUITE sure that i typed in the correct password...its just that the terminal for some reason did not want to recognize it! it is, after all, a four-letter password... :lol: and pixelgeek suggested the same thing, that is, that the sudo password was invisible, and maybe i wasn't typing it correctly! but...i tried it again to make sure, and still got the message saying there was no such command...and the flashing typing thing did not even move to the right at ALL! :roll:

Looking forward to your reply...

-Coolname007

EDIT: And oh, and just for the record, i extracted the files after downloading them using the Archive Manager...just blame it! :lol:
Last edited by Coolname007 on Wed Feb 04, 2009 1:55 pm, edited 1 time in total.


Return to “Building synfig”

Who is online

Users browsing this forum: Google [Bot] and 3 guests