[webkit-dev] JavaScriptCore on Android

2011-07-04 Thread Ericsen Cioffi
Hi,

I am trying to use JavaScriptCore in my Android application.

I build JavaScriptCore as a static library and I developed a JNI layer to
access JSC methods.
All my classes compile fine, but at the end of the build process (i guess in
the linker action) i got some errors like undefined reference
to JSStringCreateWithUTF8CString.

I was not able to correctly link my code with the JavaScriptCore static
library.
As far as I know I only need to specify LOCAL_STATIC_LIBRARIES := libjs in
my Android.mk file. Is that correctly?
Besides that I´ve already tried to specify link flags through
the LOCAL_LDFLAGS and LOCAL_CPPFLAGS variables in my Android.mk file.

How can I use JavaScriptCore as a static library in my Android application?

Thanks
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] JavaScripCore on Android

2011-06-30 Thread Ericsen Cioffi
Hi,

I hope I make myself clear, but i am sorry for my poor English.

I am trying to build the JavaScriptCore (a piece of webkit) as a shared
object to use in my Android Application.
I got a lot of errors and i corrected them by configuring my Android.mk
file.

But, now i am getting the following error:

In file included from
/home/ecioffi/Spring/JavaScriptCore/runtime/JSGlobalData.h:48,
 from
/home/ecioffi/Spring/JavaScriptCore/interpreter/CallFrame.h:26,
 from
/home/ecioffi/Spring/JavaScriptCore/runtime/JSCell.h:27,
 from
/home/ecioffi/Spring/JavaScriptCore/runtime/JSAPIValueWrapper.h:26,
 from /home/ecioffi/Spring/JavaScriptCore/API/APICast.h:29,
 from
/home/ecioffi/Spring/JavaScriptCore/API/JSValueRef.cpp:29:
/home/ecioffi/Spring/JavaScriptCore/wtf/ThreadSpecific.h:208:2: error:
#error ThreadSpecific is not implemented for this platform.
/home/ecioffi/Spring/JavaScriptCore/wtf/ThreadSpecific.h:232:2: error:
#error ThreadSpecific is not implemented for this platform.


I believe the problem is in the beginning of the build because i am not able
to regenerate the correct config.h file (specific to Android platform).
Can you help me? How can I configure the build correctly? When I execute the
./configure script passing the Android NDK information i got some File not
found errors.

I appreciate any help...
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev