Today, it took me half a day to learn how to transplant madplay. Thanks to the rich network resources, I was able to solve one problem after another. When I came back from the mall, I immediately transplanted madplay to mini2440 under Ubuntu11.10. Thanks to the experience of porting madplay in the morning, the night porting work was quite smooth. 1. decompress the source code package # cdtarball # forfin $ (ls * .tar.gz); dota
Today, it took me half a day to learn how to transplant madplay. Thanks to the rich network resources, I was able to solve one problem after another.
When I came back from the mall, I immediately transplanted madplay to mini2440 in Ubuntu 11.10. Thanks to the experience of porting madplay in the morning, the night porting work was quite smooth.
1. decompress the source code package
# Cd tarball
# For f in $ (ls * .tar.gz); do tar-zxvf $ f-C ../src-arm; done
2. Compile madplay and its dependent library files
(1) set compiler environment variables
Enter
# Export CC = arm-linux-gcc
(2) Compile zlib because libid3tag depends on this library file.
# Cd ../src-arm/zlib-1.2.3
#./Configure -- prefix =/opt/FriendlyARM/mini2440/madplay/target-arm
# Make
# Make install
After compilation, the libz. a library under the lib directory of target-arm.
(3) Compile libid3tag
# Cd ../libid3tag-0.15.1b
#. /Configure -- host = arm-linux -- prefix =/opt/FriendlyARM/mini2440/madplay/target-arm -- disable-debugging -- disable-shared -- enable-static CPPFLAGS =-I/ opt/FriendlyARM/mini2440/madplay/target-arm/include LDFLAGS =-L/opt/FriendlyARM/mini2440/madplay/target-arm/lib
# Make
# Make install
(4) Compile libmad
# Cd ../libmad-0.15.1b
#. /Configure -- host = arm-linux -- prefix =/opt/FriendlyARM/mini2440/madplay/target-arm -- disable-debugging -- disable-shared -- enable-static CPPFLAGS =-I/ opt/FriendlyARM/mini2440/madplay/target-arm/include LDFLAGS =-L/opt/FriendlyARM/mini2440/madplay/target-arm/lib
# Make
# Make install
(5) Compile madplay
# Cd ../madplay-0.15.2b
#. /Configure -- host = arm-linux -- prefix =/opt/FriendlyARM/mini2440/madplay/target-arm -- disable-debugging -- disable-shared -- enable-static CPPFLAGS =-I/ opt/FriendlyARM/mini2440/madplay/target-arm/include LDFLAGS =-L/opt/FriendlyARM/mini2440/madplay/target-arm/lib
# Make
# Make install
After the above installation is successful, you will get
# Ls target-arm/bin
Abxtest madplay
Abxtest is an additional test program generated.
3. Download madplay to the Development Board to run the test.
Now you can hear the sound of your voice.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2