« debian(etch)でmythtvを試してみました。(その7) | メイン | mythdora4.0 »

2008年01月11日

●debian(etch)でmythtvを試してみました。(その8)

ここまいろいろとやってみたのですが、Vineの時に挫折してしまったmythstreamtvに再度挑戦してみることにしました。
(mythstreamtvはvlcを使用するのですが、このvlcが依存関係がものすごく強烈なんです。
Vineのときはなんとかコンパイルして映像までは出たのですが音が出ませんでした。)


■svnのインストール
debian:/usr/src# apt-get install subversion
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
libneon26 libsvn1
Suggested packages:
subversion-tools db4.4-util
The following NEW packages will be installed:
libneon26 libsvn1 subversion
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 1739kB of archives.
After unpacking 5014kB of additional disk space will be used.
Do you want to continue [Y/n]?


■ffmpegとvlcのダウンロード
debian:~# cd /usr/src/
debian:/usr/src# ls
ivtv.tar.bz2 linux linux-headers-2.6.18-5 linux-headers-2.6.18-5-686 linux-kbuild-2.6.18 modules

debian:/usr/src# svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

debian:/usr/src# wget "http://download.videolan.org/pub/videolan/vlc/0.8.6d/vlc-0.8.6d.tar.gz"

debian:/usr/src# tar zxvf vlc-0.8.6d.tar.gz

以下いろんなものが必要ですのでひたすら作業します。

debian:/usr/src# wget "http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz"
debian:/usr/src# tar zxvf a52dec-0.7.4.tar.gz

debian:/usr/src# cd a52dec-0.7.4
debian:/usr/src/a52dec-0.7.4# ls
AUTHORS COPYING ChangeLog HISTORY INSTALL Makefile.am Makefile.in NEWS README TODO acinclude.m4 aclocal.m4 autotools bootstrap configure configure.in doc include liba52 libao src test vc++
debian:/usr/src/a52dec-0.7.4# ./configure
debian:/usr/src/a52dec-0.7.4# make
debian:/usr/src/a52dec-0.7.4# make install


debian:/usr/src# wget "http://downloads.sourceforge.net/faac/faac-1.25.tar.gz"
debian:/usr/src# tar zxvf faac-1.25.tar.gz
debian:/usr/src# cd faac
debian:/usr/src/faac# nkf -d bootstrap > bootstrap2
debian:/usr/src/faac# mv configure.in configure.in_orig
debian:/usr/src/faac# nkf -d configure.in_orig > configure.in
debian:/usr/src/faac# chmod +x bootstrap2
debian:/usr/src/faac# ./bootstrap2
./bootstrap2: line 3: aclocal: command not found
./bootstrap2: line 4: autoheader: command not found
./bootstrap2: line 8: libtoolize: command not found
./bootstrap2: line 10: automake: command not found
./bootstrap2: line 11: autoconf: command not found

エラー発生
■automakeを入れる
debian:/usr/src/faac# apt-get install automake

debian:/usr/src/faac# ./bootstrap2
configure.in:10: warning: underquoted definition of MY_DEFINE
configure.in:10: run info '(automake)Extending aclocal'
configure.in:10: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
configure.in:16: warning: macro `AM_PROG_LIBTOOL' not found in library
./bootstrap2: line 8: libtoolize: command not found
configure.in:4: installing `./missing'
configure.in:4: installing `./install-sh'
common/mp4v2/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined
common/mp4v2/Makefile.am:5: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
common/mp4v2/Makefile.am:5: to `configure.in' and run `aclocal' and `autoconf' again.
common/mp4v2/Makefile.am:5: If `AC_PROG_LIBTOOL' is in `configure.in', make sure
common/mp4v2/Makefile.am:5: its definition is in aclocal's search path.
common/mp4v2/Makefile.am: installing `./depcomp'
libfaac/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libfaac/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libfaac/Makefile.am:1: to `configure.in' and run `aclocal' and `autoconf' again.
libfaac/Makefile.am:1: If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libfaac/Makefile.am:1: its definition is in aclocal's search path.
configure.in:16: error: possibly undefined macro: AM_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.


debian:/usr/src/faac# ./configure

configure: creating ./config.status
config.status: creating common/Makefile
config.status: error: cannot find input file: common/mp4v2/Makefile.in

またもやエラー発生とおもったらconfigureの前ですでにエラーが・・・
いろいろさまよった挙句、先人のお知恵を拝借させて頂きました。

MY_DEFINEをかぎ括弧で括るといいようです。
debian:/usr/src/faac# vi configure.in

AC_DEFUN([MY_DEFINE], [ AC_DEFINE($1, 1, [define if needed]) ])


debian:/usr/src/faac# ./bootstrap2
configure.in:16: warning: macro `AM_PROG_LIBTOOL' not found in library
./bootstrap2: line 8: libtoolize: command not found
common/mp4v2/Makefile.am:5: Libtool library used but `LIBTOOL' is undefined
common/mp4v2/Makefile.am:5: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
common/mp4v2/Makefile.am:5: to `configure.in' and run `aclocal' and `autoconf' again.
common/mp4v2/Makefile.am:5: If `AC_PROG_LIBTOOL' is in `configure.in', make sure
common/mp4v2/Makefile.am:5: its definition is in aclocal's search path.
libfaac/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libfaac/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libfaac/Makefile.am:1: to `configure.in' and run `aclocal' and `autoconf' again.
libfaac/Makefile.am:1: If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libfaac/Makefile.am:1: its definition is in aclocal's search path.
configure.in:16: error: possibly undefined macro: AM_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.

再びエラーが・・・

■libtoolのインストール
apt-get install libtool

やっとエラーがなくなった。


debian:/usr/src/faac# ./configure
debian:/usr/src/faac# make
debian:/usr/src/faac# make install

■lameのインストール
http://downloads.sourceforge.net/lame/lame-3.97.tar.gz?modtime=1159107882&big_mirror=0

debian:/usr/src# tar zxvf lame-3.97.tar.gz
debian:/usr/src# cd lame-3.97
debian:/usr/src/lame-3.97# ./configure
debian:/usr/src/lame-3.97# make
debian:/usr/src/lame-3.97# make install

■libtheoraのインストール
debian:/usr/src# wget "http://downloads.xiph.org/releases/theora/libtheora-1.0beta2.tar.gz"
debian:/usr/src# tar zxvf libtheora-1.0beta2.tar.gz
debian:/usr/src# cd libtheora-1.0beta2

debian:/usr/src/libtheora-1.0beta2# ./configure

エラー発生

configure: WARNING: *** doxygen not found, API documentation will not be built
checking for python... true
checking for ld used by gcc... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for pkg-config... no
checking for Ogg... no
*** Could not run Ogg test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means Ogg was incorrectly installed
*** or that you have moved Ogg since it was installed.
configure: error:
libogg is required to build this package!
please see http://www.xiph.org/ for how to
obtain a copy.

■liboggのインストール
debian:/usr/src# wget "http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz"
debian:/usr/src# tar zxvf libogg-1.1.3.tar.gz
debian:/usr/src# cd libogg-1.1.3
debian:/usr/src/libogg-1.1.3# ./configure
debian:/usr/src/libogg-1.1.3# make
debian:/usr/src/libogg-1.1.3# make install

■再び挑戦
debian:/usr/src/libtheora-1.0beta2# ./configure
------------------------------------------------------------------------
libtheora 1.0beta2: Automatic configuration OK.

General configuration:

Encoding support: ........... yes
Floating point support: ..... yes
Assembly optimization: ...... 32 bit x86
API Documentation: .......... no
Build example code: ......... yes

Installation paths:

libtheora: ................... /usr/local/lib
C header files: .............. /usr/local/include/theora
Documentation: ............... /usr/local/share/doc/libtheora

Building:

Type 'make' to compile libtheora.

Type 'make install' to install libtheora.

Type 'make check' to run test suite (Valgrind testing not enabled)

Example programs will be built but not installed.
------------------------------------------------------------------------


debian:/usr/src/libtheora-1.0beta2# make
debian:/usr/src/libtheora-1.0beta2# make install

■libvorbisのインストール
debian:/usr/src# wget "http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz"
debian:/usr/src# tar zxvf libvorbis-1.2.0.tar.gz
debian:/usr/src# cd libvorbis-1.2.0

debian:/usr/src/libvorbis-1.2.0# ./configure
debian:/usr/src/libvorbis-1.2.0# make
debian:/usr/src/libvorbis-1.2.0# make install


■ffmpegのインストール

./configure --enable-ffmpeg --enable-libmp3lame --enable-libfaac --enable-zlib --enable-liba52 --enable-libvorbis --enable-libtheora --enable-debug --enable-gpl --enable-pp

debian:/usr/src/ffmpeg# make
debian:/usr/src/ffmpeg# make install


■vlcのインストール

debian:/usr/src# cd vlc-0.8.6d

debian:/usr/src# ./configure --disable-x11 --disable-xvideo --disable-gtk --disable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-zlib --enable-mad --enable-libdvbpsi --enable-a52 --disable-dvdplay --enable-dvdnav --enable-vorbis --enable-ogg --enable-theora --enable-mkv --enable-freetype --disable-cddax --disable-vcdx --enable-speex --enable-flac --enable-goom --enable-livedotcom --enable-caca --disable-skins2 --enable-modplug --enable-debug --enable-gpl --enable-mp3lame --enable-pp --with-ffmpeg-tree=/usr/src/ffmpeg


■libmadが不足していたのでインストール
debian:/usr/src# wget "ftp://ftp.mars.org/pub/mpeg/libmad-0.15.1b.tar.gz"
debian:/usr/src# tar zxvf libmad-0.15.1b.tar.gz
debian:/usr/src# cd libmad-0.15.1b
debian:/usr/src/libmad-0.15.1b# ./configure
debian:/usr/src/libmad-0.15.1b# make
debian:/usr/src/libmad-0.15.1b# make install

■libmpeg2が不足していたのでインストール
debian:/usr/src# wget "http://libmpeg2.sourceforge.net/files/mpeg2dec-0.4.1.tar.gz"
debian:/usr/src# tar zxvf mpeg2dec-0.4.1.tar.gz
debian:/usr/src# cd mpeg2dec-0.4.1

debian:/usr/src/mpeg2dec-0.4.1# ./configure
debian:/usr/src/mpeg2dec-0.4.1# make
debian:/usr/src/mpeg2dec-0.4.1# make install

■freetypeが不足していたのでインストール
debian:/usr/src# wget "http://download.savannah.gnu.org/releases/freetype/freetype-2.3.5.tar.gz"
debian:/usr/src# tar zxvf freetype-2.3.5.tar.gz
debian:/usr/src# cd freetype-2.3.5
debian:/usr/src/freetype-2.3.5# ./configure
debian:/usr/src/freetype-2.3.5# make
debian:/usr/src/freetype-2.3.5# make install

これでconfigureは通過するようになった。

しかし、makeでエラーが発生したのでしかたなくflacをいれてみた。

debian:/usr/src# wget "http://downloads.sourceforge.net/flac/flac-1.2.1.tar.gz?modtime=1189961849&big_mirror=0"
debian:/usr/src# tar zxvf flac-1.2.1.tar.gz
debian:/usr/src# cd flac-1.2.1
debian:/usr/src/flac-1.2.1# ./configure
debian:/usr/src/flac-1.2.1# make
debian:/usr/src/flac-1.2.1# make install

make失敗。→原因さっぱりわからず。→ソースを修正したがそれでも次にエラーが発生
ソースの修正は、以下を参照してください。(外国の方が修正していました。)

I got it work in this way "p_sys->oc->pb = &p_sys->io;"

で、このあとvlcのバージョンを色々と変えてみるも全くうまくいきませんでした。
(aptだとすんなりはいりますけどね。汗。)


ところが、思わぬ事態が・・・
なんと、以下のページによると自分のいれたmythtvではmythstreamtvは既にサポートされていないとのことです。

http://www.mythtv.org/wiki/index.php/MythStreamTV

とほほ・・・

トラックバックURL

このエントリーのトラックバックURL:
http://kororin.com/cgi-bin/mt32/mt-tb.cgi/336

コメントする

(初めてのコメントの時は、コメントが表示されるためにこのブログのオーナーの承認が必要になることがあります。承認されるまでコメントは表示されませんのでしばらくお待ちください)