경고 : 포팅시 에러 발생시 본인과는 무관함
이로 인한 모든 책임은 사용자에게 있음...
테러금지... (삽질시 책임 못짐)


MPlayer를 EmposⅡ 보드에 포팅하기로했다.

1. cross complier를 설치한다.
(2.9.5으로도 된다.)
ftp://ftp.handheld.org
여기서 3.3.2를 다운 받는다.

2. [ mad library ]
./configure --host=arm-linux --prefix=/usr/cross/arm-liunx
make
make install


[ libogg ]
ogg.pc 파일을 열고 다음과 같이 추가해 준다.
PKG_CONFIG_PATH=/usr/lib
./configure --target=arm-linux --enable-static
make
make install


[ libvorbis ]
./configure --target=arm-linux --host=arm-linux --enable-static=/usr/lib --with-ogg=/usr/lib
make
make install


3. mplayer 1.0을 다운 받는다.


4. 다음과 같이 수행한다.

./configure --target=arm-linux --cc=arm-linux-gcc --as=arm-linux-as --enable-static --disable-win32 --disable-gui --disable-dvdread --enable-mad --enable-fbdev --disable-mencoder --disable-mpdvdkit --disable-x11 --disable-sdl --disable-libavcodec --enable-vorbis --disable-tv --enable-tremor-low --disable-libavformat


make
make install


경고 : make중 에러 발생시... 245번 라인근처에서
$(HOST_CC) 를 gcc로 바꿔준다.

'Coding > 리눅스 삽질기' 카테고리의 다른 글

Virtual Box를 이용한 Ubuntu 설치  (0) 2008.05.13
SIGBUS  (0) 2005.09.21
프로그래머를 위한 vi 명령어  (1) 2005.03.26
Posted by chobocho