Raphael,
Thanks for your response - we went back and checked the environment and found
that XWALK_OS_ANDROID was not set.
We tried the build ninja -C out/Release xwalk_app_template_apkand I used the
resulting jar xwalk_core_java.jar in the Android app
However, this resulted in an Assert()
05-27 15:54:56.643 7926-7926/com.zumobi.android.zbimsampleapp
E/AndroidRuntime﹕ FATAL EXCEPTION: main Process:
com.zumobi.android.zbimsampleapp, PID: 7926
junit.framework.AssertionFailedError: Please extend XWalkActivity for shared
mode at junit.framework.Assert.fail(Assert.java:50) at
org.xwalk.core.XWalkCoreWrapper.initEmbeddedMode(XWalkCoreWrapper.java:111)
at org.xwalk.core.XWalkView.reflectionInit(XWalkView.java:680)
at org.xwalk.core.XWalkView.<init>(XWalkView.java:209) at
com.zumobi.zbim.ContentHub.onCreate(ContentHub.java:132) at
com.zumobi.zbim.ContentHubActivity.onCreate(ContentHubActivity.java:51)
at android.app.Activity.performCreate(Activity.java:5933)
It seems that findEmbeddedCore() returns false
We then tried to build with ninja -C out/Release xwalk_runtime_lib_apkHowever,
this resulted in a compile failure (we are configured to build for "arm")
[alex@ip-10-101-188-39 src]$ ninja -C out/Release xwalk_runtime_lib_apkninja:
Entering directory `out/Release'[5323/9156] CXX
obj/third_party/WebKit/Source/core/html/webcore_html.ImageData.oFAILED:
/home/alex/crosswalk-src/src/third_party/android_tools/ndk//toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++
-MMD -MF obj/third_party/WebKit/Source/core/html/webcore_html.ImageData.o.d
-DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DDISABLE_NACL
-DENABLE_WEBCL=1 -DCHROMIUM_BUILD -DCR_CLANG_REVISION=233105-1
-DUSE_LIBJPEG_TURBO=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS
-DENABLE_BROWSER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS
-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE -DDONT_EMBED_BUILD_METADATA
-DENABLE_AUTOFILL_DIALOG=1 -DCLD_VERSION=1 -DENABLE_PRINTING=1
-DENABLE_BASIC_PRINTING=1 -DENABLE_SUPERVISED_USERS=1 -DVIDEO_HOLE=1
-DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DENABLE_LAYOUT_UNIT_IN_INLINE_BOXES=0
-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1 -DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1
-DENABLE_WEB_AUDIO=1 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0
-DU_STATIC_IMPLEMENTATION -DSK_SUPPORT_GPU=1 -DSK_LEGACY_DRAWPICTURECALLBACK
-DSK_SUPPORT_LEGACY_OPTIONLESS_GET_PIXELS -DSK_BUILD_FOR_ANDROID
-DCHROME_PNG_WRITE_SUPPORT -DPNG_USER_CONFIG -DCHROME_PNG_READ_PACK_SUPPORT
-DLIBXML_STATIC -DLIBXSLT_STATIC -DUSE_LIBPCI=1 -DUSE_OPENSSL=1
-DUSE_OPENSSL_CERTS=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DANDROID
-D__GNU_SOURCE=1 -DUSE_STLPORT=1 -D_STLP_USE_PTR_SPECIALIZATIONS=1
'-DCHROME_BUILD_ID=""' -DHAVE_SYS_UIO_H -DNDEBUG -DNO_UNWIND_TABLES -DNVALGRIND
-DDYNAMIC_ANNOTATIONS_ENABLED=0 -D_FORTIFY_SOURCE=2 -Igen
-I../../third_party/WebKit/Source -I../.. -I../../skia/config
-I../../third_party/khronos -I../../gpu -Igen/blink
-I../../third_party/openmax_dl -I../../third_party/angle/include
-I../../third_party/icu/source/i18n -I../../third_party/icu/source/common
-I../../third_party/WebKit -I../../third_party/skia/include/core
-I../../third_party/skia/include/effects -I../../third_party/skia/include/pdf
-I../../third_party/skia/include/gpu -I../../third_party/skia/include/lazy
-I../../third_party/skia/include/pathops -I../../third_party/skia/include/pipe
-I../../third_party/skia/include/ports -I../../third_party/skia/include/utils
-I../../skia/ext -I../../third_party/iccjpeg -I../../third_party/libpng
-I../../third_party/libwebp -I../../third_party/libxml/linux/include
-I../../third_party/libxml/src/include -I../../third_party/libxslt
-I../../third_party/npapi -I../../third_party/npapi/bindings
-I../../third_party/ots/include -I../../third_party/qcms/src
-I../../third_party/sqlite -I../../third_party/zlib -I../../v8/include
-fstack-protector --param=ssp-buffer-size=4 -Werror -fno-strict-aliasing -Wall
-Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe
-fPIC -Wno-unused-local-typedefs -march=armv7-a -mtune=generic-armv7-a
-mfpu=vfpv3-d16 -mfloat-abi=softfp -mthumb -fno-tree-sra -fno-caller-saves
-Wno-psabi -mthumb-interwork -ffunction-sections -funwind-tables -g
-fstack-protector -fno-short-enums -finline-limit=64 -Wa,--noexecstack
--sysroot=../../third_party/android_tools/ndk//platforms/android-14/arch-arm
-isystem../../third_party/android_tools/ndk//sources/cxx-stl/stlport/stlport
-Os -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer
-fno-unwind-tables -fno-asynchronous-unwind-tables -fno-exceptions -fno-rtti
-fno-threadsafe-statics -fvisibility-inlines-hidden -Wsign-compare
-Wno-c++0x-compat -Wno-abi -std=gnu++11 -Wno-narrowing -Wno-literal-suffix -c
../../third_party/WebKit/Source/core/html/ImageData.cpp -o
obj/third_party/WebKit/Source/core/html/webcore_html.ImageData.o../../third_party/WebKit/Source/core/html/ImageData.cpp:
In member function 'virtual v8::Handle<v8::Object>
blink::ImageData::associateWithWrapper(v8::Isolate*, const
blink::WrapperTypeInfo*,
v8::Handle<v8::Object>)':../../third_party/WebKit/Source/core/html/ImageData.cpp:153:79:
error: 'toV8' was not declared in this scope v8::Handle<v8::Value>
pixelArray = toV8(m_data.get(), wrapper, isolate);
^../../third_party/WebKit/Source/core/html/ImageData.cpp:158:61: error:
'v8AtomicString' was not declared in this scope
wrapper->ForceSet(v8AtomicString(isolate, "data"), pixelArray, v8::ReadOnly);
^[5323/9156] CXX
obj/third_party/WebKit/Source/core/html/webcore_html.HTMLTextFormControlElement.oninja:
build stopped: subcommand failed.
The branch we have checked out is "main".
What is the build statement to get an equivalent jar to replace
'org.xwalk:xwalk_core_library:13.42.319.11' ?Then finally, we can modify the
code, rebuild, and test.
Regards,
Alexander
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> Subject: Re: [Crosswalk-help] Building from source - ambiguity in wiki
> Date: Wed, 27 May 2015 13:41:00 +0300
>
> Alexander Biemann <[email protected]> writes:
>
> > I am all setup on Redhat with Crosswalk and Chromium, however, the
> > following fails :
> >
> > [alex@ip-10-228-68-101 crosswalk-src]$ cd ./src
> >
> > [alex@ip-10-228-68-101 src]$ ninja -C out/Release
> > xwalk_runtime_lib_apk
> >
> > ninja: Entering directory `out/Release'
> >
> > ninja: error: unknown target 'xwalk_runtime_lib_apk'
>
> To answer that, I'd need to know what commands you followed before
> calling ninja. Do you have the XWALK_OS_ANDROID environment variable set
> to 1 so that .gclient and .gclient-xwalk have 'target_os=["android"]' in
> them? Do you have a chromium.gyp_env file file with the right
> GYP_DEFINES, or, alternatively, do you have GYP_DEFINES set as an
> environment variable.
>
> I believe this is all correctly described in the "Building Crosswalk"
> page, but from the error you got it is possible that you overlooked some
> of the instructions and configured a regular Linux build instead.
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help