Page 1 of 1

andriod-vlc for ARMv6

Posted: 03 Jun 2012 08:25
by kick_2012
hello everyone.I have compiled source code(git clone git://git.videolan.org/vlc/vlc-android.git) on linux.it works fine on android 2.1+(CPU ARMv7),But one of my device is android 2.2 (CPU ARMv6),when i run it on this device,there is some proplems:
06-01 17:50:03.277: V/VLC/LibVLC(10895): Initializing LibVLC
06-01 17:50:03.277: D/dalvikvm(10895): +++ not scanning '/system/lib/libwebcore.so' for 'nativeInit' (wrong CL)
06-01 17:50:03.277: D/dalvikvm(10895): +++ not scanning '/system/lib/libmedia_jni.so' for 'nativeInit' (wrong CL)
06-01 17:50:03.287: D/dalvikvm(10895): +++ not scanning '/system/lib/libexif.so' for 'nativeInit' (wrong CL)
06-01 17:50:03.367: I/DEBUG(9458): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-01 17:50:03.367: I/DEBUG(9458): Build fingerprint: 'chunghwa/htc_hero/hero/hero:2.1- update1/ERE27/183682:user/release-keys'
06-01 17:50:03.377: I/DEBUG(9458): pid: 10895, tid: 10895 >>> org.videolan.vlc <<<
06-01 17:50:03.377: I/DEBUG(9458): signal 4 (SIGILL), fault addr 823862ec
06-01 17:50:03.377: I/DEBUG(9458): r0 8236e720 r1 be9ea6cc r2 82d4a6bc r3 823862e8
06-01 17:50:03.377: I/DEBUG(9458): r4 00000000 r5 82d4a6bc r6 0016a1a0 r7 0016c4b8
06-01 17:50:03.377: I/DEBUG(9458): r8 be9ea808 r9 4104ec80 10 0000000b fp be9ea85c
06-01 17:50:03.377: I/DEBUG(9458): ip 00002c80 sp be9ea6a4 lr 8236f964 pc 823862ec cpsr 60000010
06-01 17:50:03.957: I/DEBUG(9458): #00 pc 823862ec /data/data/org.videolan.vlc/lib/libvlcjni.so
06-01 17:50:03.967: I/DEBUG(9458): #01 lr 8236f964 /data/data/org.videolan.vlc/lib/libvlcjni.so

Some key arguments in configure.sh as follow:
ANDROID_API=android-9
VLC_SOURCEDIR=..

CFLAGS="-g -O2 -mlong-calls -fstrict-aliasing -mfloat-abi=softfp -funsafe-math- optimizations"
LDFLAGS="-Wl,-Bdynamic,-dynamic-linker=/system/bin/linker -Wl,--no-undefined"

if [ -z "$NO_NEON" ]; then
CXX_TARGET="armeabi-v7a"
CFLAGS="$CFLAGS -mfpu=neon -mcpu=cortex-a8 -mthumb"
LDFLAGS="$LDFLAGS -Wl,--fix-cortex-a8"
EXTRA_PARAMS=" --enable-neon"
elif [ -n "$TEGRA2" ]; then
CXX_TARGET="armeabi-v7a"
CFLAGS="$CFLAGS -mfpu=vfpv3-d16 -mcpu=cortex-a9 -mthumb"
EXTRA_PARAMS=" --disable-neon"
else // i compile the project with this part of configure information for android 2.2( CPU ARMv6)
CXX_TARGET="armeabi"
CFLAGS="$CFLAGS -mcpu=arm1136jf-s -mfpu=vfp"
EXTRA_PARAMS=" --disable-neon"

fi
can i do some modification to fix this problem?
thanks.

Re: andriod-vlc for ARMv6

Posted: 03 Jun 2012 22:30
by Jean-Baptiste Kempf
Read the wiki and follow the instructions.

Re: andriod-vlc for ARMv6

Posted: 04 Jun 2012 10:28
by kick_2012
i follow this page (http://wiki.videolan.org/AndroidCompile)to compile the project,but i didn`t find any solution for my problem,i really don`t know what should i do.
did you test this project on armv6? if so can you give me some advice?
my ndk is r7b.
thank you.

Re: andriod-vlc for ARMv6

Posted: 06 Jun 2012 00:10
by Jean-Baptiste Kempf
Yes, it does work and yes; we did test it. Look at the exports.

Re: andriod-vlc for ARMv6

Posted: 25 Jun 2012 04:19
by edwardw
Fixed in VLC android master git as of June 24, 2012.