Hi,

They are not broken, they are meant to be run from within the unpacked
structure that you get from the download mirror. You're running them from
somewhere else which explains why it works on pre-built binaries and not on
your custom build. Running them from where you did doesn't work and it's
not meant to work.

First make sure to build with ninja -C out/Release xwalk_builder which will
build the entire set of targets.

Then you can go in src/out/Release and you will get an identical state as
if you were unzipping a pre-built binary. You can just go in
out/Release/xwalk_app_template where you will find make_apk. Then use it
the same way as with the prebuild binary.

Thanks.



On Tue, Jun 3, 2014 at 4:07 PM, Roger Stringer <
[email protected]> wrote:

>  [Changing subject since nature of this tread has changed...]
>
> Even after fixing up its broken links,  'make_apk.py'  still isn't capable
> of completely building an APK for install on Android.
>
> Should I expect this very critical Python script to be currently broken on
> Crosswalk-7?
>
> Since I built my own Crosswalk, this evening I will download a pre-built
> version of Crosswalk-7 and see if the problem persists.
>
> I was successful with a pre-built version of Crosswalk-6.
>
> The script currently fails on the big final build:
>
> Command "python scripts/gyp/ant.py
> -DAAPT_PATH=/home/roger/adt-bundle-linux-x86_64-20130917/sdk/build-tools/19.1.0/aapt
> -DADDITIONAL_RES_DIRS=gen/ui_java/res_crunched
> gen/ui_java/res_v14_compatibility gen/ui_java/res_grit libs_res/ui
> gen/content_java/res_crunched gen/content_java/res_v14_compatibility
> libs_res/content gen/content_java/res_grit gen/xwalk_core_java/res_crunched
> gen/xwalk_core_java/res_v14_compatibility libs_res/runtime
> gen/xwalk_core_java/res_grit -DADDITIONAL_RES_PACKAGES=org.chromium.ui
> org.xwalk.core org.chromium.content
> -DADDITIONAL_R_TEXT_FILES=gen/ui_java/java_R/R.txt
> gen/xwalk_core_java/java_R/R.txt gen/content_java/java_R/R.txt
> -DANDROID_MANIFEST=HTML5Test/AndroidManifest.xml
> -DANDROID_SDK_JAR=/home/roger/adt-bundle-linux-x86_64-20130917/sdk/platforms/android-19/android.jar
> -DANDROID_SDK_ROOT=/home/roger/adt-bundle-linux-x86_64-20130917/sdk
> -DANDROID_SDK_VERSION=19
> -DANT_TASKS_JAR=/home/roger/adt-bundle-linux-x86_64-20130917/sdk/tools/lib/ant-tasks.jar
> -DLIBRARY_MANIFEST_PATHS=  -DOUT_DIR=out -DRESOURCE_DIR=HTML5Test/res
> -DSTAMP=codegen.stamp -Dbasedir=. -buildfile scripts/ant/apk-codegen.xml
> -v" exited with non-zero exit code 2
>
>
>    Subject:
> Re: [Crosswalk-dev] Build problem with Crosswalk for Android on Linux
> From:
> Roger Stringer <[email protected]>
> <[email protected]>
> Date:
> 06/02/2014 05:17 PM
> To:
> Alexis Menard <[email protected]> <[email protected]>
> CC:
> "[email protected]"
> <[email protected]>
> <[email protected]>
> <[email protected]>
> I wiped out my Crosswalk folder, then re-sync'ed and successfully
> completed the build process, or at least it appeared to complete.
>
> The problem I now have is the 'make_apk.py' python script doesn't complete
> because of missing files and folders.
>
> This file is in "~/git/crosswalk/src/xwalk/app/tools/android/"
>
>
> Some of these are just in the wrong place, which can be handled by soft
> links:
>
> For example the shared library 'libxwalkcore.so' is in:
>
> $/git/crosswalk/src/out/Release/xwalk_core_shell_apk/libs/armeabi-v7a
> instead of:
> ~/git/crosswalk/src/xwalk/app/tools/android/native_libs/armeabi-v7a/libs/armeabi-v7a
>
> There's no 'app_src' folder at the same level as 'make_apk.py', but that
> can be solved by a softlink to:
>              $/git/crosswalk/src/xwalk/app/android/app_templates
>
>
> Some are just plain missing, so the folder "scripts/gyp" doesn't work, but
> simply "gyp" does, because there is no 'scripts' folder at the same level
> as 'make_apk.py'.
>
> Even then some can't be resolved.  For example there is no direct
> equivalent to the 'jsapi' folder expected
> '~/git/crosswalk/src/xwalk/app/tools/android/native_libs_res', even though
> the individual JavaScript files exist, but are scattered under subfolders
> of '$git/crosswalk/src/xwalk'
>
> Unless there's a significant change to folder structure in crosswalk-7
> (compared to crosswalk-6), I fear there's some step missed out
>  on the build process.
>
> Note: I was able to build my HTML5 application under the standard
> crosswalk-6 download (6.35.131.4).    I'm trying to build a simple extended
> version of crosswalk-7 to include the extended media formats (ex: H-264)
> since my project requires these extended formats.
>
>
> _______________________________________________
> Crosswalk-dev mailing list
> [email protected]
> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev
>
>


-- 
Alexis Menard
_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to