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.
2 Comments:
To build with ffmpeg support i had to export LDFLAGS="-lavcodec" before configure. But make fails:
video.cpp: In function `video_ffmpeg* video_open(char*)':
video.cpp:216: error: cannot convert `AVCodecContext**' to `AVCodecContext*' in initialization
video.cpp:230: error: cannot convert `AVCodecContext**' to `AVCodecContext*' in assignment
video.cpp: In function `int video_get_picture(video_ffmpeg*, AVPicture*)':
video.cpp:296: error: cannot convert `AVCodecContext**' to `AVCodecContext*' for argument `1' to `int avcodec_deo(AVCodecContext*, AVFrame*, int*, uint8_t*, int)'
... and so on
same errors as for syaochan.
Post a Comment
<< Home