My Suse

What I have learn so far about Linux and Suse

Friday, July 21, 2006

How to build Sabbu in Linux

I'm writting this post becouse I had a few 'difficulties' trying to build the sabbu 0.3.0 in linux.

I'm not an expert in Linux, but I knew that it isn't easy to find the solution in the web. And please, you're welcome to comment or writte betters solutions. Here it goes.

1. My first error: missing gthread


edu@nami:~/programas/media/subtitle/sabbu3/sabbu-0.3.0> ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
(...)
checking for GTK+ - version >= 2.0.0... yes (version 2.8.10)
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GTK+ - version >= 2.6.0... yes (version 2.8.10)
checking for g_thread_init in -lgthread-2.0... no
configure: error: gthread is required to build sabbu.

The solution:


export LDFLAGS="-L/opt/gnome/lib64 -L/opt/gnome/lib -L/lib64 -L/usr/lib64"
./configure

2. Second error: ffmpeg


checking for GTK+ - version >= 2.6.0... yes (version 2.8.10)
checking for g_thread_init in -lgthread-2.0... yes
checking for avcodec_open in -lavcodec... no
configure: error: ffmpeg >= 0.4.9-pre1 is required for video features. You may specify --without-ffmpeg to disable video features.

Solution.


Even I having it installed I don't know how to build with it:
edu@nami:~/dvds/albuns-da-memoria/Legendas> rpm -q ffmpeg
ffmpeg-0.4.9-6.pm.svn20060701

But a ./configure --without-ffmpeg will pass without it.

3. The last error: libsndfile


checking for GTK+ - version >= 2.6.0... yes (version 2.8.10)
checking for g_thread_init in -lgthread-2.0... yes
checking whether the second parameter to iconv() must be const... no
checking for sf_open in -lsndfile... no

Solution


Again, I had the libsndfile installed:

edu@nami:~/programas/media/subtitle/sabbu3/sabbu-0.3.0> rpm -q libsndfile
libsndfile-1.0.12-13

But the error remained. So I downloaded the libsndfile. And ./configure and make install it. After that I was able to compile and install sabbu:
./configure --without-ffmpeg
make
su
make install
exit
sabbu


Tip: if you are running it in other language other then english, and the ALT_KEY + Underlined Menu Letter is replacing the defaults keyboard shutcut, you can execute it in english.
export LANG="en_US-UFT-8"
sabbu


I hope you enjoyed this post. Feel free to comment it.