Porting madplay to mini2440 under Ubuntu 8.10

Publisher:PeacefulOasisLatest update time:2024-07-02 Source: elecfansKeywords:Ubuntu  madplay  mini2440 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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.


Keywords:Ubuntu  madplay  mini2440 Reference address:Porting madplay to mini2440 under Ubuntu 8.10

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

8 yuan 8 yuan exchange for OPPO Reno4 leading benefits are coming
The first O Fan Festival on August 8th is a festival for OPPO fans, so preferential benefits are definitely indispensable. At present, the preferential policies of the O Fan Festival have been officially announced, including 8.8 yuan for flash charging to exchange for super flash, sharing of 10,000 yuan red envelopes,
[Mobile phone portable]
Modification of the library for adjusting the external crystal oscillator of stm32f105 from 8MHz to 12MHz
1. First, HSE_VALUE in stm32f10x.h #if !defined  HSE_VALUE  #ifdef STM32F10X_CL  #define HSE_VALUE ((uint32_t)12000000) //Change to 12MHz here //  #define HSE_VALUE    ((uint32_t)25000000) /*! Value of the External oscillator in Hz */注释掉  #else    #define HSE_VALUE    ((uint32_t)8000000) /*! Value of the External os
[Microcontroller]
STM32F103 PB port is used as an independent button
Some time ago, I drew a minimum system board for STM32F103 due to the project needs. The project requires a lot of hardware resources, so I used the PB port as an independent key input port. After the board was proofed, everything else was fine, but there was a problem when testing the independent key. The scanning mod
[Microcontroller]
LabVIEW 8.2 Settings Pane Background Image
  In LabVIEW 8.2, you can set and import background images for panes. The pane is actually the background interface of the LabVIEW front panel editing environment. Click the right mouse button on the scroll bar of the pane, and the system will pop up a shortcut menu, as shown in Figure 1.   Select the "Properties" men
[Test Measurement]
LabVIEW 8.2 Settings Pane Background Image
Redmi's strongest rival: Realme Snapdragon 8 + flagship-ready large battery + 100W fast charging
      With the release of the Snapdragon 8+ mobile platform, many mobile phone manufacturers have begun preparing for their flagship phones in the second half of the year, and Realme is no exception.   The realme GT Master Explorer Edition series was launched in July last year in collaboration between realme and famou
[Mobile phone portable]
Redmi's strongest rival: Realme Snapdragon 8 + flagship-ready large battery + 100W fast charging
Rising! 10%, 25%, 84%, how can domestic automotive chips break through the biggest weakness?
According to the latest news, NIO's self-developed smart driving chip "Shenji NX9031" has been taped out and is currently being tested. At the same time, Xpeng Motors' self-developed smart driving chip has also been sent out for tape-out and is expected to be returned in August. This means that the chip has moved fr
[Automotive Electronics]
18b20 temperature display program of stm8
The microcontroller source program is as follows: #include "stm8s.h" #include "Cry12864.h" #include "temp.h" #include "tim1.h" void LcdDisplay(int temp); uint a; void main( void ) { CLK_HSIPrescalerConfig(CLK_PRESCALER_HSIDIV1); //Internal clock divided by 16m   Ini_Lcd(); //LCD initialization   Ti
[Microcontroller]
100 billion burned in 7 years! Europe's largest battery company went bankrupt, Zeng Yuqun's words came true
Zeng Yuqun, founder of CATL , said that European battery companies have huge problems in design, technology and equipment. As soon as he finished speaking, Europe's largest battery company, which had burned through hundreds of billions of yuan in the past seven years, could no longer hold on
[Automotive Electronics]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号