andriod-vlc for ARMv6

VLC for Android and Chrome OS specific usage questions
kick_2012
Blank Cone
Blank Cone
Posts: 13
Joined: 15 May 2012 14:42

andriod-vlc for ARMv6

Postby kick_2012 » 03 Jun 2012 08:25

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: andriod-vlc for ARMv6

Postby Jean-Baptiste Kempf » 03 Jun 2012 22:30

Read the wiki and follow the instructions.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

kick_2012
Blank Cone
Blank Cone
Posts: 13
Joined: 15 May 2012 14:42

Re: andriod-vlc for ARMv6

Postby kick_2012 » 04 Jun 2012 10:28

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: andriod-vlc for ARMv6

Postby Jean-Baptiste Kempf » 06 Jun 2012 00:10

Yes, it does work and yes; we did test it. Look at the exports.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: andriod-vlc for ARMv6

Postby edwardw » 25 Jun 2012 04:19

Fixed in VLC android master git as of June 24, 2012.


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 65 guests