This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Cross compilation of MADPLAY -- for AM335x -- for mp3 decoding

Hi ,   

we tried for mp3 decoder --with ffmpeg -- which requires "ffplay" and again it depend on "SDL and X"    there we are not able to fix. Then we tried with gstreamer -- there we are not abe to add plugins -- "gst-launch playbin" -- not able to add and to able to play -- with other commands in gstream and ffmpeg -- saying decoder is missing -- then finally came to madplay.

Madplay  :

we tried with madplay -- with zlib,libidtg,limad and mad  -- while cross compiling we got these error.

error:

/tmp/ccJaUp5j.s: Assembler messages:
/tmp/ccJaUp5j.s:2691: Error: selected processor does not support Thumb mode `rsc r0,r0,#0'
/tmp/ccJaUp5j.s:2893: Error: selected processor does not support Thumb mode `rsc r8,r8,#0'
/tmp/ccJaUp5j.s:3554: Error: selected processor does not support Thumb mode `rsc r0,r0,#0'
/tmp/ccJaUp5j.s:3756: Error: selected processor does not support Thumb mode `rsc r8,r8,#0'
make[2]: *** [synth.lo] Error 1
make[2]: Leaving directory `/home/cyient/Audio/madplay/src-arm/libmad-0.15.1b'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/cyient/Audio/madplay/src-arm/libmad-0.15.1b'
make: *** [install] Error 2
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c

------------------   install script ---------------------

please correct me if i am doing any thing wrong:

#!/bin/sh

mkdir src-arm
mkdir target-arm

MADPLAY_DIR=$PWD
SRC_DIR=src-arm
TARGET_DIR=$MADPLAY_DIR/target-arm


tar xvzf libid3tag-0.15.1b.tar.gz -C $SRC_DIR
tar xvzf libmad-0.15.1b.tar.gz -C $SRC_DIR
tar xvzf madplay-0.15.2b.tar.gz -C $SRC_DIR
tar xvzf zlib-1.1.4.tar.gz -C $SRC_DIR

export PATH=/home/vk29835/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin:$PATH

export CC=arm-linux-gnueabihf-gcc

cd $SRC_DIR/zlib-1.1.4
./configure --prefix=$TARGET_DIR
make && make install
cd ../..

cd $SRC_DIR/libid3tag-0.15.1b
./configure --host=arm --prefix=$TARGET_DIR CPPFLAGS=-I$TARGET_DIR/include LDFLAGS=-L$TARGET_DIR/lib
make;make install
cd ../../

cd $SRC_DIR/libmad-0.15.1b
sed -i -e '/fforce-mem/d' configure    //-- if not this line -- unknown command throwing by compiler.
./configure --host=arm --prefix=$TARGET_DIR CPPFLAGS=-I$TARGET_DIR/include LDFLAGS=-L$TARGET_DIR/lib
make;make install
cd ../..

cd $SRC_DIR/madplay-0.15.2b
./configure --host=arm --prefix=$TARGET_DIR CPPFLAGS=-I$TARGET_DIR/include LDFLAGS=-L$TARGET_DIR/lib
make;make install
cd ../../

  • I will ask the SW team to look at this.
  • we are following this link -- 

    http://processors.wiki.ti.com/index.php/ARM_Open_Source_Codecs

    for maplay and mpg123 -- but both are not working.

    As the above link is for DM355, DM6446, or OMAP3.  same steps we are following but the cross toolchan only we changed. to arm-linux-gnueabihf- 

    commands: MPG123

    ./configure --enable-cross-compile CC=arm-linux-gnueabihf-gcc --host=arm-linux --target=arm-linux-gnueabihf- --prefix=/home/cyient/Audio/mpg123/

    commands: MADPLAY

    #!/bin/sh

    mkdir src-arm
    mkdir target-arm

    MADPLAY_DIR=$PWD
    SRC_DIR=src-arm
    TARGET_DIR=$MADPLAY_DIR/target-arm


    tar xvzf libid3tag-0.15.1b.tar.gz -C $SRC_DIR
    tar xvzf libmad-0.15.1b.tar.gz -C $SRC_DIR
    tar xvzf madplay-0.15.2b.tar.gz -C $SRC_DIR
    tar xvzf zlib-1.1.4.tar.gz -C $SRC_DIR

    export PATH=/home/vk29835/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin:$PATH

    export CC=arm-linux-gnueabihf-gcc

    cd $SRC_DIR/zlib-1.1.4
    ./configure --prefix=$TARGET_DIR
    make && make install
    cd ../..

    cd $SRC_DIR/libid3tag-0.15.1b
    ./configure --host=arm --prefix=$TARGET_DIR CPPFLAGS=-I$TARGET_DIR/include LDFLAGS=-L$TARGET_DIR/lib
    make;make install
    cd ../../

    cd $SRC_DIR/libmad-0.15.1b
    sed -i -e '/fforce-mem/d' configure
    ./configure --host=arm --prefix=$TARGET_DIR CPPFLAGS=-I$TARGET_DIR/include LDFLAGS=-L$TARGET_DIR/lib
    make;make install
    cd ../..

    cd $SRC_DIR/madplay-0.15.2b
    ./configure --host=arm --prefix=$TARGET_DIR CPPFLAGS=-I$TARGET_DIR/include LDFLAGS=-L$TARGET_DIR/lib
    make;make install
    cd ../../

    please correct us, if we doing anything wrong.

    regards,

    Viswanath K