I also referred to a post on the Internet when porting madplay to mini2440 under Ubuntu 8.10. Since I didn't think of putting the process here at that time, I didn't record the URL of that post. I would like to express my gratitude here!
Madplay transplant record:
1. PC version of MadPlay
The compilation of the PC version is basically the same as that in the mini2440 manual.
2. ARM version of madplay
1. Compile zlib-1.2.3
Unzip zlib-1.2.3.tar.gz to /opt/FriendlyARM/mini2440/madplay/src-arm/zlib-1.2.3
Enter the zlib-1.2.3 directory
Configureconfigure:
sudo gedit configure
a. Change AR=${AR-"ar rc"} to:
AR=${AR-"/usr/local/arm/3.4.1/bin/arm-linux-ar rc"}
b. Change RANLIB=${RANLIB-"ranlib"} to
RANLIB=${RANLIB-"/usr/local/arm/3.4.1/bin/arm-linux-ranlib"}
c. Change cc=${CC-gcc} to
cc=${CC-/usr/local/arm/3.4.1/bin/arm-linux-gcc}
/usr/local/arm/3.4.1/bin is the installation path of the arm-linux-gcc compiler. Save and exit.
Execute the following command:
sudo ./configure --prefix=/opt/FriendlyARM/mini2440/madplay/target-arm
sudo make
sudo make install
The installation of zlib-1.2.3 is complete.
2. Compile libid3tag-0.15.1b
Unzip zlib-1.2.3.tar.gz to /opt/FriendlyARM/mini2440/madplay/src-arm/libid3tag-0.15.1b
Enter the libid3tag-0.15.1b directory
Execute the following command:
sudo ./configure CC=/usr/local/arm/3.4.1/bin/arm-linux-gcc --host=arm-linux --prefix=/opt/FriendlyARM/mini2440/madplay/target-arm --disabl
e-shared CPPFLAGS=-I/opt/FriendlyARM/mini2440/madplay/target-arm/include LDFLAGS=-L/opt/FriendlyARM/mini2440/madplay/target-arm/lib
sudo make
sudo make install
libid3tag-0.15.1b installation completed
3. Compile libmad-0.15.1b
Unzip zlib-1.2.3.tar.gz to /opt/FriendlyARM/mini2440/madplay/src-arm/libmad-0.15.1b
Enter the libmad-0.15.1b directory
Execute the following command:
sudo ./configure CC=/usr/local/arm/3.4.1/bin/arm-linux-gcc --host=arm-linux --prefix=/opt/FriendlyARM/mini2440/madplay/target-arm --disable -shared
sudo make
sudo make install
libmad-0.15.1b installation completed
4. Compile madplay-0.15.2b
Unzip madplay-0.15.2b.tar.gz to /opt/FriendlyARM/mini2440/madplay/src-arm/madplay-0.15.2b
Enter the madplay-0.15.2b directory
Execute the following command:
sudo ./configure CC=/usr/local/arm/3.4.1/bin/arm-linux-gcc --host=arm-linux --prefix=/opt/FriendlyARM/mini2440/madplay/target-arm --enable -static --disable-shared CPPFLAGS=-I/opt/FriendlyARM/mini2440/madplay/target-arm/include LDFLAGS=-L/opt/FriendlyARM/mini2440/madplay/target-arm/lib
sudo make
sudo make install
5. Related files after successful compilation
After successful compilation, the executable file madplay is generated in the /opt/FriendlyARM/mini2440/madplay/target-arm/bin directory
In order to distinguish it from the built-in madplay on the development board, rename madplay to mymadplay
Through the command sudo mv madplay mymadplay
After successful compilation, the madplay library files generated are in the /opt/FriendlyARM/mini2440/madplay/target-arm/lib directory
6. Transplantation
Put the executable file in the /usr/bin directory of the development board
Put the madplay library file in the /usr/lib directory of the development board
Implementation method: USB disk, nfs, ftp, etc.
7. Testing
There is an mp3 file in the root directory of the development board: shanghaitan.mp3
Direct command: mymadplay shanghaitan.mp3
The development board plays this music.
Previous article:Redboot mini2440 qemu adds LCD function
Next article:micro2440 first bare board program LED
Recommended ReadingLatest update time:2024-11-15 16:40
- Popular Resources
- Popular amplifiers
- Network Operating System (Edited by Li Zhixi)
- Microgrid Stability Analysis and Control Microgrid Modeling Stability Analysis and Control to Improve Power Distribution and Power Flow Control (
- MATLAB and FPGA implementation of wireless communication
- Introduction to Internet of Things Engineering 2nd Edition (Gongyi Wu)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- MicroPython DHT driver improvements
- Follow the post to win zongzi: Xinwangwei, which does not engage in domestic substitution, launches a new automotive product KF32A156
- Python creator Guido joins Microsoft
- Are there any microcontroller teaching videos that explain the principles and drivers of segment code screens? Please recommend one.
- [RVB2601 Creative Application Development]_2_Environment Construction_Drive GPIO
- Gather together, NXP will teach you how to play with the new generation of IoT applications. Watch the video and answer questions to get gifts! The event has begun~
-
Is there a corresponding library function for
in keil - Thank you, Electronic Engineering World, Live Network Manufacturer
- 【AT-START-F425 Review】 Review Summary
- 200ppi to Ethernet via 4Gwifi on medical device mobile platforms (tablets, mobile phones)