1. MPlayer/MEncoder向けライブラリのビルド/インストール
libpngのインストール
- libpngのダウンロード(libpng Home Pageからlibpng-1.2.35.tar.bz2)
- ダウンロードしたファイルをc:\msys\srcへ置く
- MSYSのシェルにて以下のコマンドを実行
cd /usr/src
tar xfvj libpng-1.2.35.tar.bz2
cd libpng-1.2.35
./configure --prefix=/mingw --enable-static --disable-shared
make
make install
tar xfvj libpng-1.2.35.tar.bz2
cd libpng-1.2.35
./configure --prefix=/mingw --enable-static --disable-shared
make
make install
以上でインストールは完了。
libmadのインストール
- libmadのダウンロード(libmadからlibmad-0.15.1b.tar.gz)
- ダウンロードしたファイルをc:\msys\srcへ置く
- MSYSのシェルにて以下のコマンドを実行
cd /usr/src
tar xfvz libmad-0.15.1b.tar.gz
cd libmad-0.15.1b
./configure --prefix=/mingw --enable-static --disable-shared
tar xfvz libmad-0.15.1b.tar.gz
cd libmad-0.15.1b
./configure --prefix=/mingw --enable-static --disable-shared
ここでMakefileを修正する。(-fforce-memを削除)ただし、gccのバージョンによっては修正の必要はない。(129行目)
CFLAGS = -Wall -march=i486 -g -O -fforce-mem -fforce-addr -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -fexpensive-optimizations -fregmove -fschedule-insns2 -fstrength-reduce
↓
CFLAGS = -Wall -march=i486 -g -O -fforce-addr -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -fexpensive-optimizations -fregmove -fschedule-insns2 -fstrength-reduce
続いて以下のコマンドを実行する。
make
make install
make install
以上でインストールは完了。
libmngのインストール
- libmngのダウンロード(libmng-develからlibmng-1.0.10.tar.bz2)
- ダウンロードしたファイルをc:\msys\srcへ置く
- MSYSのシェルにて以下のコマンドを実行
cd /usr/src
tar xfvj libmng-1.0.10.tar.bz2
cd libmng-1.0.10
cp makefiles/makefile.mingw Makefile
tar xfvj libmng-1.0.10.tar.bz2
cd libmng-1.0.10
cp makefiles/makefile.mingw Makefile
ここで、Makefileを以下のように書き換える。(16行目)
INSTALL_PREFIX = C:/MinGW/
↓
INSTALL_PREFIX = /mingw/
続けて以下のコマンドを実行。
make
make install
make install
以上でインストールは完了。
giflibのインストール
- giflibのダウンロード(giflib 4.xからgiflib-4.1.6.tar.bz2)
- ダウンロードしたファイルをc:\msys\srcへ置く
- MSYSのシェルにて以下のコマンドを実行
cd /usr/src
tar xfvj giflib-4.1.6.tar.bz2
cd giflib-4.1.6
./configure --prefix=/mingw --enable-static --disable-shared
make
make install
tar xfvj giflib-4.1.6.tar.bz2
cd giflib-4.1.6
./configure --prefix=/mingw --enable-static --disable-shared
make
make install
以上でインストールは完了。
libtgaのインストール
- libtgaのダウンロード(libtgaからlibtga-1.0.1.tar.bz2)
- ダウンロードしたファイルをc:\msys\srcへ置く
- MSYSのシェルにて以下のコマンドを実行
cd /usr/src
tar xfvj libtga-1.0.1.tar.bz2
cd libtga-1.0.1
./configure --prefix=/mingw --enable-static --disable-shared
make
make install
tar xfvj libtga-1.0.1.tar.bz2
cd libtga-1.0.1
./configure --prefix=/mingw --enable-static --disable-shared
make
make install
以上でインストールは完了。
libdvdnavのインストール
- libdvdnavのダウンロード(libdvdnavからlibdvdnav-0.1.10.tar.gz)
- ダウンロードしたファイルをc:\msys\srcへ置く
- MSYSのシェルにて以下のコマンドを実行
cd /usr/src
tar xfvz libdvdnav-0.1.10.tar.gz
cd libdvdnav-0.1.10
./configure --prefix=/mingw --enable-static --disable-shared
tar xfvz libdvdnav-0.1.10.tar.gz
cd libdvdnav-0.1.10
./configure --prefix=/mingw --enable-static --disable-shared
ここで、src/dvdread/dvd_reader.cを修正する。ただし、gcc 4.xを使っている場合に限る。(39行目)
static inline int gettimeofday( struct timeval *tv, void *tz )
↓
inline int gettimeofday( struct timeval *tv, void *tz )
続いて以下のコマンドを実行する。
make
make install
make install
以上でインストールは完了。
libdvdreadのインストール
- TortoiseSVNで「svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread」からソースを取得する。
- MSYSのシェルにて以下のコマンドを実行
cd /usr/src
cd libdvdread
sh autogen.sh --prefix=/mingw --enable-static --disable-shared
make
make install
cd libdvdread
sh autogen.sh --prefix=/mingw --enable-static --disable-shared
make
make install
以上でインストールは完了。
freetypeのインストール
- freetypeのダウンロード(User Contributed: mingwPORTからfreetype-2.1.9-mingwPORT.tar.bz2)
- ダウンロードしたファイルをc:\msys\srcへ置く
- MSYSのシェルにて以下のコマンドを実行
cd /usr/src
tar xvfj freetype-2.1.9-mingwPORT.tar.bz2
cd freetype-2.1.9/mingwPORT
./mingwPORT.sh
Download file? (Yes) [Enter]
SF Mirror (Yes) [Enter]
Which mirror from the list do you wish to use?
0) none (Oops, I wish to cancel)
1) jaist (JP)
2) puzzle (CH)
3) nchc (TW)
4) easynews (US)
5) ovh (FR)
6) belnet (BE)
7) citkit (RU)
8) cogent (US)
9) voxel (US)
10) kent (UK)
11) heanet (IE)
12) switch (CH)
13) mesh (DE)
14) optusnet (AU)
Select a numeric value: (0) 9 [Enter]
Archive file type?
0) unknown
1) tar.gz
2) tgz
3) tar.bz2
4) tbz2
5) zip
Select a numeric value: (3) [Enter]
Archive file? (freetype-2.1.9.tar.bz2) [Enter]
Download to path? (/tmp) [Enter]
Source path? (/usr/src/freetype-2.1.9) [Enter]
Installation directory? (/mingw) [Enter]
CFLAGS (-O3 -s -mms-bitfields -march=i686) [Enter]
tar xvfj freetype-2.1.9-mingwPORT.tar.bz2
cd freetype-2.1.9/mingwPORT
./mingwPORT.sh
Download file? (Yes) [Enter]
SF Mirror (Yes) [Enter]
Which mirror from the list do you wish to use?
0) none (Oops, I wish to cancel)
1) jaist (JP)
2) puzzle (CH)
3) nchc (TW)
4) easynews (US)
5) ovh (FR)
6) belnet (BE)
7) citkit (RU)
8) cogent (US)
9) voxel (US)
10) kent (UK)
11) heanet (IE)
12) switch (CH)
13) mesh (DE)
14) optusnet (AU)
Select a numeric value: (0) 9 [Enter]
Archive file type?
0) unknown
1) tar.gz
2) tgz
3) tar.bz2
4) tbz2
5) zip
Select a numeric value: (3) [Enter]
Archive file? (freetype-2.1.9.tar.bz2) [Enter]
Download to path? (/tmp) [Enter]
Source path? (/usr/src/freetype-2.1.9) [Enter]
Installation directory? (/mingw) [Enter]
CFLAGS (-O3 -s -mms-bitfields -march=i686) [Enter]
以上でインストールは完了。
live555のビルド
- live555のダウンロード(liveMedia Sourceからlive555-latest.tar.gz)
- ダウンロードしたファイルをc:\msys\srcへ置く
- MSYSのシェルにて以下のコマンドを実行
cd /usr/src
tar xfvz live555-latest.tar.gz
cd live
./genMakefiles mingw
CC=gcc make
tar xfvz live555-latest.tar.gz
cd live
./genMakefiles mingw
CC=gcc make
以上で、準備完了。
トップページへ戻る