Transplant madplay to mini2440 in Ubuntu11.10

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.