forked from shaobin0604/faplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
50 lines (42 loc) · 2.2 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
VLC-1.2.0-git is on the road!
Any questions please contact [email protected].
Build steps:
1. Edit local.properties to fit your environment.
2. Run build.sh. (for some reason, you have to install ruby-1.9.2 first.)
Currently you can only build the source with one ABI choice, armeabi or armeabi-v7a.
If you want to disable NEON version of ffmpeg, open jni/Application.mk and change APP_ABI to armeabi.
Current NDK related build issues and solutions:
1. there is problem with NDK headers when compiling in ARM mode
diff -Nurp platforms/android-3/arch-arm/usr/include/asm/byteorder.h.org platforms/android-3/arch-arm/usr/include/asm/byteorder.h
--- platforms/android-3/arch-arm/usr/include/asm/byteorder.h.org 2010-11-13 07:53:10.000000000 +0800
+++ platforms/android-3/arch-arm/usr/include/asm/byteorder.h 2010-11-13 07:53:10.000000000 +0800
@@ -22,7 +22,7 @@ static inline __attribute_const__ __u32
#ifndef __thumb__
if (!__builtin_constant_p(x)) {
- asm ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x));
+ __asm__ ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x));
} else
#endif
t = x ^ ((x << 16) | (x >> 16));
2. LOCAL_WHOLE_STATIC_LIBRARIES does not work
diff -Nurp toolchains/arm-linux-androideabi-4.4.3/setup.mk.org toolchains/arm-linux-androideabi-4.4.3/setup.mk
--- toolchains/arm-linux-androideabi-4.4.3/setup.mk.org 2010-11-30 22:06:34.000000000 +0800
+++ toolchains/arm-linux-androideabi-4.4.3/setup.mk 2010-11-30 22:06:34.000000000 +0800
@@ -123,7 +123,7 @@ $(TARGET_CXX) \
-shared \
--sysroot=$(call host-path,$(SYSROOT)) \
$(call host-path, $(PRIVATE_OBJECTS)) \
- $(call whole-archive-list-flags,$(PRIVATE_WHOLE_STATIC_LIBRARIES)) \
+ $(call link-whole-archives,$(PRIVATE_WHOLE_STATIC_LIBRARIES)) \
$(call host-path,\
$(PRIVATE_STATIC_LIBRARIES) \
$(PRIVATE_SHARED_LIBRARIES)) \
@@ -139,7 +139,7 @@ $(TARGET_CXX) \
-Wl,-z,nocopyreloc \
--sysroot=$(call host-path,$(SYSROOT)) \
$(call host-path, $(PRIVATE_OBJECTS)) \
- $(call whole-archive-list-flags,$(PRIVATE_WHOLE_STATIC_LIBRARIES)) \
+ $(call link-whole-archives,$(PRIVATE_WHOLE_STATIC_LIBRARIES)) \
$(call host-path,\
$(PRIVATE_STATIC_LIBRARIES) \
$(PRIVATE_SHARED_LIBRARIES)) \