[What about linux] porting Madplay to embedded

Source: Internet
Author: User

Today, to test the audio of the EVB board, I transplanted Madplay to the Embedded Development Board. PC: Linux-2.6.18 SourceCode: libid3tag-0.15.1b.tar.gz zlib-1.1.4.tar.gz libmad-0.15.1b.tar.gz madplay-0.15.2b.tar.gz statement: 1. The working directory of this porting job is/home/mad/(any directory can be selected ). 2. The arm development platform for this migration has been set up, that is, the arm-linux cross-compilation tool has been installed, and the directory of the Cross-compilation tool is/usr/local/arm/2.95.3/bin. Step: 1. decompress the above sourcecode in the working directory and create a folder lib to put the compiled file. 2. Enter the zlib decompressed directory. to port to the arm platform, you need to modify the configure file line 24th: 650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php?refimg= "+ This. src) 'align =" top "src =" http://www.bkjia.com/uploads/allimg/131228/1R0495J6-0.gif "Onclick =" window. open (" http://blog.51cto.com/viewpic.php?refimg= "+ This. src) "alt =" "/> AR =$ {AR-" ar rc "} is changed to 650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php?refimg= "+ This. src) 'align =" top "src =" http://www.bkjia.com/uploads/allimg/131228/1R0495J6-0.gif "Onclick =" window. open (" http://blog.51cto.com/viewpic.php?refimg= "+ This. src) "alt =" "/> AR =$ {AR-"/usr/local/arm/2.95.3/bin/arm-linux-ar rcs "} 25th rows 650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php?refimg= "+ This. src) 'align =" top "src =" http://www.bkjia.com/uploads/allimg/131228/1R0495J6-0.gif "Onclick =" window. open (" http://blog.51cto.com/viewpic.php?refimg= "+ This. src) "alt =" "/> RANLIB =$ {RANLIB-" ranlib "} changed to 650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php?refimg= "+ This. src) 'align =" top "src =" http://www.bkjia.com/uploads/allimg/131228/1R0495J6-0.gif "Onclick =" window. open (" http://blog.51cto.com/viewpic.php?refimg= "+ This. src) "alt =" "/> RANLIB =$ {RANLIB-"/usr/local/arm/2.95.3/bin/arm-linux-ranlib "} 63rd rows 650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php?refimg= "+ This. src) 'align =" top "src =" http://www.bkjia.com/uploads/allimg/131228/1R0495J6-0.gif "Onclick =" window. open (" http://blog.51cto.com/viewpic.php?refimg= "+ This. src)" alt = ""/> cc =$ {CC-gcc} changed to 650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php?refimg= "+ This. src) 'align =" top "src =" http://www.bkjia.com/uploads/allimg/131228/1R0495J6-0.gif "Onclick =" window. open (" http://blog.51cto.com/viewpic.php?refimg= "+ This. src) "alt =" "/> cc =$ {CC-/usr/local/arm/2.95.3/bin/arm-linux-gcc} 3. perform the following operations: 650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php?refimg= "+ This. src) 'align =" top "src =" http://www.bkjia.com/uploads/allimg/131228/1R0495J6-0.gif "Onclick =" window. open (" http://blog.51cto.com/viewpic.php?refimg= "+ This. src)" alt = ""/>./configure -- prefix =/home/mad/lib
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'align =" top "src =" http://www.bkjia.com/uploads/allimg/131228/1R0495J6-0.gif "onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" alt = ""/> make
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'align =" top "src =" http://www.bkjia.com/uploads/allimg/131228/1R0495J6-0.gif "onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "alt =" "/> make install 4. go to the libid3tag decompressed directory and run the following operations to perform cross-compilation 650) this. width = 650; "onclick = 'window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'align =" top "src =" http://www.bkjia.com/uploads/allimg/131228/1R0495J6-0.gif "onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "alt =" "/>. /configure -- host = arm-linux -- prefix =/home/mad/lib -- disable-shared CPPFLAGS =-I/home/mad/lib/include LDFLAGS =-L/home/ mad/lib
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'align =" top "src =" http://www.bkjia.com/uploads/allimg/131228/1R0495J6-0.gif "onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" alt = ""/> make
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'align =" top "src =" http://www.bkjia.com/uploads/allimg/131228/1R0495J6-0.gif "onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "alt =" "/> make install 5. go to the libmad decompressed directory and run the following operations to perform cross-compilation 650) this. width = 650; "onclick = 'window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'align =" top "src =" http://www.bkjia.com/uploads/allimg/131228/1R0495J6-0.gif "onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" alt = ""/>./configure -- host = arm-linux -- prefix =/home/mad/lib -- disable-shared
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'align =" top "src =" http://www.bkjia.com/uploads/allimg/131228/1R0495J6-0.gif "onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" alt = ""/> make
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'align =" top "src =" http://www.bkjia.com/uploads/allimg/131228/1R0495J6-0.gif "onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "alt =" "/> make install 6. go to the directory after madplay decompression, and run the following operations to perform cross-compilation 650) this. width = 650; "onclick = 'window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'align =" top "src =" http://www.bkjia.com/uploads/allimg/131228/1R0495J6-0.gif "onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "alt =" "/>. /configure -- host = arm-linux -- prefix =/home/mad/lib -- disable-shared -- enable-static CPPFLAGS =-I/home/mad/lib/include LDFLAGS =- l/home/mad/lib
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'align =" top "src =" http://www.bkjia.com/uploads/allimg/131228/1R0495J6-0.gif "onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "alt =" "/> make 7. copy the generated madplay to the Development Board for running. /madplay nobody, you can hear the music. Note: madplay uses the/dev/dsp audio device by default, you can modify the link of row 78th of audio_oss.c in the madplay Directory: 1. madplay http://www.underbit.com/products/mad/

This article is from the Scalpel00 blog, please be sure to keep this source http://scalpel00.blog.51cto.com/1071749/251278

Related Article

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.