[Android Q&A, Help & Troubleshooting] hmehmetk:
Hello all,

I am newbie on android development. I have beaglebone(TI AM335x Cortex-A8 about 720MHz with NEON) and want build mplayer. I use TI SDK.

I have modified conf1.sh to this:

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 -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/ -march=armv7-a -mtune=cortex-a8 -funroll-loops -Isdl -ldl"

And building has failed with the error below:

Current branch master is up to date.
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 -ffast-math -fomit-frame-pointer -nostdlib -lc -lm -L /PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/lib/ -I /PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/include/ -march=armv7-a -mtune=cortex-a8 -funroll-loops -Isdl -ldl .

Check "config.log" if you do not understand why it failed.

config.log is like below:

configuration: --cc=/PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/linux-x86/arm-eabi-4.4.3/bin/arm-eabi-gcc --ar=/PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/linux-x86/arm-eabi-4.4.3/bin/arm-eabi-ar --as=/PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/linux-x86/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 -ffast-math -fomit-frame-pointer -nostdlib -lc -lm -L /PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/lib/ -I /PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/include/ -march=armv7-a -mtune=cortex-a8 -funroll-loops -Isdl -ldl /tmp/mplayer-configure-30206-21317/tmp.c -I. -Iffmpeg -o /tmp/mplayer-configure-30206-21317/tmp
/tmp/mplayer-configure-30206-21317/tmp.c:1: error: bad value (armv7-a) for -march= switch
/tmp/mplayer-configure-30206-21317/tmp.c:1: error: bad value (cortex-a8) for -mtune= switch

What could be the problem ? Any help will be appreciated.

In fact I want to play udp video streams. Can you offer any open source player?

Thanks

Mehmet Kurnaz