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.

building mplayer on android for beaglebone

Hello all,

I am new on both of android and beaglebone.

I use TI android SDK.  And I want to build mplayer for beaglebone(I need to change of source code of mplayer for some reasons). Where can I found source code of mplayer and doc. of how to build?

And before this I want to build helloworld project on android with java and c, googled, tried founded topics and got build error like below.

android create project -t 1 -n Hello -a HelloActivity -k ca.crashcourse.android -p .

Error: Error parsing the sdk.
Error: /PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/out/host/linux-x86/platforms is missing.
Error: Unable to parse SDK content.

Thanks

Mehmet Kurnaz

  • Hi Mehmet,

    You may want to look at this https://github.com/ajeet17181/mplayer-android

    Regards,

    Pankaj Bharadiya

  • Pankaj,

    So thanks, I will look.

    Mehmet

  • Pankaj,

    I downloaded mplayer and did issues in README(export NDKHOME=/PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/linux-x86).

    Then I run conf1.sh script, but I got below errors

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    sed: can't read ffmpeg/libavcodec/allcodecs.c: No such file or directory
    sed: can't read ffmpeg/libavcodec/allcodecs.c: No such file or directory
    sed: can't read ffmpeg/libavcodec/allcodecs.c: No such file or directory
    sed: can't read ffmpeg/libavcodec/allcodecs.c: No such file or directory
    sed: can't read ffmpeg/libavcodec/allcodecs.c: No such file or directory
    sed: can't read ffmpeg/libavformat/allformats.c: No such file or directory
    sed: can't read ffmpeg/libavformat/allformats.c: No such file or directory
    sed: can't read ffmpeg/libavformat/allformats.c: No such file or directory
    Checking for gcc version ... 4.4.3
    Checking for working compiler ...
    Error: Compiler is not functioning correctly. Check your installation and custom CFLAGS -O9 -DANDROID -march=armv6 -ffast-math -fomit-frame-pointer -nostdlib -lc -lm -L /android/android-ndk-r5b/platforms/android-8/arch-arm/usr/lib/ -I /android/android-ndk-r5b/platforms/android-8/arch-arm/usr/include/ -mandroid -march=armv6 -mtune=xscale -funroll-loops -Isdl -ldl .
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    
    
    CONFIG.LOG
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    configuration: --cc=/android/android-ndk-r5b/arm-eabi-4.4.3/bin/arm-eabi-gcc --ar=/android/android-ndk-r5b/arm-eabi-4.4.3/bin/arm-eabi-ar --as=/android/android-ndk-r5b/arm-eabi-4.4.3/bin/arm-eabi-as --ranlib=/arm-eabi-4.4.3/bin/arm-eabi-ranlib --host-cc=gcc --target=arm-linux-eabi --disable-dvdnav --disable-dvdread --disable-dvdread-internal --disable-vcd --disable-real --disable-xanim --disable-mencoder --disable-mp3lib --disable-tremor-internal --disable-fbdev --disable-tga --disable-md5sum --disable-yuv4mpeg --disable-pnm --disable-dvb --disable-tv --disable-ftp --disable-select --disable-armv6t2 --enable-mpg123 --disable-gif --disable-jpeg --enable-faad --disable-libmpeg2-internal --disable-mencoder --datadir=/sdcard/mplayer --confdir=/sdcard/mplayer --libdir=/sdcard/mplayer --disable-armvfp --disable-inet6

    ============ Checking for gcc version ============
    Result is: 4.4.3
    ##########################################

    ============ Checking for working compiler ============

    int main(void) { return 0; }

    gcc -O9 -DANDROID -march=armv6 -ffast-math -fomit-frame-pointer -nostdlib -lc -lm -L /android/android-ndk-r5b/platforms/android-8/arch-arm/usr/lib/ -I /android/android-ndk-r5b/platforms/android-8/arch-arm/usr/include/ -mandroid -march=armv6 -mtune=xscale -funroll-loops -Isdl -ldl /tmp/mplayer-configure-28399-11715/tmp.c -I. -Iffmpeg -o /tmp/mplayer-configure-28399-11715/tmp
    cc1: error: unrecognized command line option "-mandroid"
    /tmp/mplayer-configure-28399-11715/tmp.c:1: error: bad value (armv6) for -march= switch
    /tmp/mplayer-configure-28399-11715/tmp.c:1: error: bad value (xscale) for -mtune= switch
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    
    
    I think it is for a different platform. I think I have to chance some configure parameters.
    And another thing I saw, ffmpeg is not exist, what can I do for this issue?
    
    
    Thanks.
    Mehmet Kurnaz
  • It looks like the paths are not setup correctly. You may need to edit the configuration files to make it compatible with AOSP/DevKit sources directory structure.

    NOTE: We recommend that you contact the original developer for further support.

  • Vishveshwar,
    
    
    I have changed below files.
    
    
    conf1.sh
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    export NDKHOME=/PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/linux-x86

    . ./confn.sh
    ./configure --cc=$NDKHOME/arm-eabi-4.4.3/bin/arm-eabi-gcc --ar=$NDKHOME/arm-eabi-4.4.3/bin/arm-eabi-ar --as=$NDKHOME/arm-eabi-4.4.3/bin/arm-eabi-as 
    --ranlib=$NDK_HOME/arm-eabi-4.4.3/bin/arm-eabi-ranlib --host-cc=gcc  --target=arm-linux-eabi  --disable-dvdnav --disable-dvdread --disable-dvdread-internal 
    --disable-vcd --disable-real --disable-xanim --disable-mencoder  --disable-mp3lib  --disable-tremor-internal  --disable-fbdev --disable-tga --disable-md5sum 
    --disable-yuv4mpeg --disable-pnm --disable-dvb --disable-tv --disable-ftp --disable-select --disable-armv6t2  --enable-mpg123 --disable-gif --disable-jpeg 
    --enable-faad --disable-libmpeg2-internal --disable-mencoder --datadir="/sdcard/mplayer" --confdir="/sdcard/mplayer" --libdir="/sdcard/mplayer" --disable-armvfp 
    --disable-inet6
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    
    
    confn.sh
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    NDK_PALTFORMS=/PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/ndk/android-ndk-r4
    export CFLAGS="-O9 -DANDROID -march=armv7 -ffast-math -fomit-frame-pointer -nostdlib -lc -lm -L $NDK_PALTFORMS/platforms/android-8/arch-arm/usr/lib/  
    -I $NDK_PALTFORMS/platforms/android-8/arch-arm/usr/include/ -mandroid  -march=armv7 -mtune=cortex-a8 -funroll-loops -Isdl -ldl"
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    
    
    Is there anyone who built mplayer for any cortex-a8?
    
    
    Thanks.
    Mehmet Lurnaz
  • It should be easy problem. It can't build test.c basic c file. 

    config.log file is below. 

    2514.config.log

    Thanks

    Mehmet