[embedded]Port madplay to embedded system

2017-5-16 写技术

1.Prepare tar packages:
libid3tag-0.15.1b.tar.gz
libmad-0.15.1b.tar.gz
madplay-0.15.2b.tar.gz
zlib-1.2.3.tar.bz2

2.Install zlib
cd zlib-1.2.3
./configure -shared --prefix=/usr/local/madplay/zlib-1.2.3
vi Makefile
CC=arm-Linux-gcc
LDSHARED=arm-linux-gcc -shared -W1,-soname,libz.so.1
CPP=arm-linux-gcc -E
AR=arm-linux-ar rc
RANLIB=arm-linux-ranlib

make
sudo make install


3.Install libid3tag
cd libid3tag
./configure --prefix=/usr/local/madplay/libid3tag CC=arm-linux-gcc --host arm-linux CPPFLAGS=-I/usr/local/madplay/zlib-1.2.3/include/ LDFLAGS=-L/usr/local/madplay/zlib-1.2.3/lib/
make
sudo su
make install


4.Install libmad
cd libmad
./configure --prefix=/usr/local/madplay/libmad  CC=arm-linux-gcc --host arm-linux CPPFLAGS=-I/usr/local/madplay/libid3tag/include/ LDFLAGS=-L/usr/local/madplay/libid3tag/lib/
make
sudo su
make install
If errors shows "err:unrecognized command line option -fforce-mem", then delete "-fforce-mem" in Makefile.


5.Install madplay
cd madplay-0.15.2b/
./configure --prefix=/usr/local/madplay/libmad CC=arm-linux-gcc --host arm-linux CPPFLAGS="-I/usr/local/madplay/libid3tag/include/ -I/usr/local/madplay/libmad/" LDFLAGS="-L/usr/local/madplay/libmad/lib/ -L/usr/local/madplay/zlib/zlib-

1.2.3/lib/ -L/usr/local/madplay/libid3tag/lib/"
make
sudo make install

标签: embedded

发表评论:

Powered by anycle 湘ICP备15001973号-1