locci
unread,Jul 1, 2010, 10:52:53 PM7/1/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-ndk
Hi all.
I'm test V8 javascript Engine.
I build V8 static library on ubuntu.
setting the environment like this:
export TOP=/mnt/ExtHdd/mydroid
export TOOL_CHAIN=$TOP/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0
export AR=$TOOL_CHAIN/bin/arm-eabi-ar
export CXX=$TOOL_CHAIN/bin/arm-eabi-g++
export CC=$TOOL_CHAIN/bin/arm-eabi-gcc
export RANLIB=$TOOL_CHAIN/bin/arm-eabi-ranlib
and, build V8 static library
# scons mode=debug sanpshot=off library=static importenv=TOP
arch=arm os=android.
it's quite good build, and built the 'libv8.a'.
And.. next, i'm using the NDK building libV8JSE-jni.so. 'Android.mk'
like this :
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_CPP_EXTENSION := .cc
LOCAL_MODULE := V8JSE-jni
LOCAL_SRC_FILES := shell.cc
LOCAL_STATIC_LIBRARIES := libv8
LOCAL_LDLIBS := -llog
include $(BUILD_SHARED_LIBRARY)
libV8JSE-jni.so is quite good builing.
And, I'm importing this library in my test app.
using this code : System.loadLibrary("V8JSE-jni");
But, libV8JSE-jni.so is not loading. loading fail. and, application is
exit.
So, i'm download full source android froyo, and full builing. It makes
libv8.a.
And, i changed the that libv8.a in my NDK.
Then, loadLibrary is suceed.
Why do this? Is any different? or, i missing something?
Do you have any idea??