Hi. all

I'm testing V8 JSE on Android.

My idea is  that V8 build static library using the NDK toolchain, and
connecting JNI building shared library.
So, i proceed next: (my build environment is ubuntu.)

First, setting the buiding environment.
  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

then, i building V8 using scons :
 scons mode=debug sanpshot=off library=static importenv=TOP arch=arm
os=android.

it's quite good built libv8.a.

Second, i building JNI shared library using NDK.
Android.mk like this:
  LOCAL_PATH := $(call my-dir)
  include $(CLEAR_VARS)
  LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
  LOCAL_CPP_EXTENSION := .cc
  LOCAL_MODULE    := v8-jni
  LOCAL_SRC_FILES := shell.cc
  LOCAL_STATIC_LIBRARIES := libv8
  LOCAL_LDLIBS := -llog
  include $(BUILD_SHARED_LIBRARY)

it's also good built libv8-jni.so.

And, I'm importing this library in my test app.
using this code : System.loadLibrary("v8-jni");
But, libv8-jni.so is not loading. Loading fail. and, application is
crashed.

So, i'm download full source android froyo, and full builing. It
makes
libv8.a.
And, i just changed the that libv8.a in my NDK.
Then, loadLibrary is suceed.
But, calling JNI function fail. -_-;

Why do this? Is any different? or, i missing something?
Do you have any idea??

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to