Sunday, February 9, 2014

Please help analyze how the software needed to compile


            
After giving me the sdk manufacturers do not follow the life and death can not ask anything, only you can help the

My environment is
System: ubuntu13.10 x86
jdk: 6
ndk: android-ndk-r7b
Android source code is: The complete source code
2.3
 
# # Host system
HOST = linux-x86

# # Android root directory
ANDROID_BASE = / opt / droid

ANDROID_NDK_BASE = / opt/android-ndk-r7b

# # Android lib directory
ANDROID_LIBPATH = $ (ANDROID_BASE) / lib


ANDROID_INCLUDES = \
-I $ (ANDROID_BASE) / dalvik / libnativehelper / include \
-I $ (ANDROID_BASE) / frameworks / base / include \
-I $ (ANDROID_BASE) / frameworks / base / include / media / stagefright / openmax \
-I $ (ANDROID_BASE) / frameworks / base / media / libstagefright / include \
-I $ (ANDROID_BASE) / hardware / libhardware / include \
-I $ (ANDROID_BASE) / system / core / include \
-I/home/libp2papi_jni/ffmpeginclude

ANDROID = android-9

# Pthreads forced define for inline stuff from threads.h
CFLAGS_EXTRA + =-Werror-Wall-Wno-multichar-DHAVE_PTHREADS-DLOG_MASK = 0x0f-DENABLE_DEBUG

ANDROID_TOOL_PREFIX = $ (ANDROID_NDK_BASE) / toolchains/arm-linux-androideabi-4.4.3/prebuilt / $ (HOST) / bin/arm-linux-androideabi-

ANDROID_CFLAGS =-msoft-float-fpic-mthumb-interwork \
-Funwind-tables-fstack-protector-fno-short-enums \
-Fno-exceptions-fno-rtti \
-DANDROID-O0-g-fno-omit-frame-pointer \
$ (CFLAGS_EXTRA) \
-I $ (ANDROID_NDK_BASE) / platforms / $ (ANDROID) / arch-arm/usr/include / \
-I $ (ANDROID_NDK_BASE) / sources / cxx-stl / gnu-libstdc + + / include \
-I $ (ANDROID_NDK_BASE) / sources / cxx-stl / gnu-libstdc + + / libs / armeabi / include \
$ (ANDROID_INCLUDES)

# Android link flags
ANDROID_LDFLAGS =-shared-nostdlib - no-undefined-Bsymbolic-L $ (ANDROID_LIBPATH)


ANDROID_LIBS =-L $ (ANDROID_NDK_BASE) / platforms / $ (ANDROID) / arch-arm/usr/lib \
-Lc-lstdc + +-lm-llog \
. / Libffmpeg.so ./libP2PAPI.a \
$ (ANDROID_NDK_BASE) / toolchains/arm-linux-androideabi-4.4.3/prebuilt / $ (HOST) / lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a \
-G-lutils-lnativehelper

libp2papi_jni.so: p2papi_jni.o Adpcm.o
$ (ANDROID_TOOL_PREFIX) ld $ (ANDROID_LDFLAGS)-o libp2papi_jni.so p2papi_jni.o Adpcm.o $ (ANDROID_LIBS)


p2papi_jni.o: p2papi_jni.cpp
$ (ANDROID_TOOL_PREFIX) g+ + $ (ANDROID_CFLAGS)-c p2papi_jni.cpp-o p2papi_jni.o

Adpcm.o: Adpcm.cpp
$ (ANDROID_TOOL_PREFIX) g+ + $ (ANDROID_CFLAGS)-c Adpcm.cpp-o Adpcm.o


# Clean by deleting all the objs and the lib
clean:
rm-fr *. o libp2papi_jni.so


The above document is make file
ANDROID_LIBPATH = $ (ANDROID_BASE) / lib The lib folder is not in the Android 2.3 source code found inside


Will need to compile under what circumstances this? 2.3.x just seen the official website says you need to compile the source code in 64-bit systems ... need at least 100G disk ... tangled ....

Resources here
http://download.csdn.net/detail/l848347/6631033


Seeking help how to compile
Reply:
csdn too many people their top
Reply:
Yes, 2.3 and above must be compiled in 64

No comments:

Post a Comment