Hi,
> On Sep 9, 2016, at 1:09 PM, Jason Boyd <[email protected]> wrote:
>
> I realize it is documented that building crosswalk apps from OS X is not yet
> documented, but since the crosswalk-app-tools README claims OS X is
> supported, I am wondering what if anything I have not set up to do this.
>
Packaging Crosswalk apps for macOS is not supported. Crosswalk does not run on
macOS.
Packaging Crosswalk apps for Android on macOS should work though it’s not
intensively tested.
> I get an error when doing crosswalk-pkg, details below. I am hoping for at
> least an explanation as to what might be broken, if not a solution, as I am
> trying to determine how feasible it will be to have OS X build setup while
> targeting Android devices.
>
> Any help is appreciated.
From the output you can see :
*** ERROR: Checking for lzma… null
have you tried to install it?
>
> I am running:
>
> OS X 10.11.3 (El Capitan)
> XCode Version 7.3.1 (7D1014)
> Apple LLVM version 7.3.0 (clang-703.0.31)
> JRE 1.8.0
> Ant 1.9.7
> crosswalk-app-tools 0.10.4 (crosswalk 21.51.546.6 downloaded)
> Android SDK with 21, 22, 23 (5.0, 5.1, 6.0)
>
> Have set environment vars for $JAVA_HOME, $ANDROID_HOME, $ANT_HOME, and set
> PATH accordingly.
> I've tried creating a simple manifest.json as described in online docs, and
> also tried crosswalk-app manifest . to generate one, and either way I get a
> build error possibly related to an Ant build step. The output also warns that
> this version of crosswalk-app-tools is not tested with crosswalk 21, but I
> have seen no instructions on how I would control which version of crosswalk
> is downloaded.
>
> $ crosswalk-pkg .
> Packaging /Library/WebServer/Documents/vg
> Checking host setup
> + Checking host setup for target android
> + Checking for android... ...rs/macbookpro/Library/Android/sdk/tools/android
> + Checking for ant... /Users/macbookpro/apache-ant-1.9.7/bin/ant
> + Checking for java... /usr/bin/java
> *** ERROR: Checking for lzma... null
> + Checking for ANDROID_HOME... /Users/macbookpro/Library/Android/sdk/
> Initializing build dir ...folders/lw/tdlh9kzs0kb75gs5gm962qpr0000gn/T/JeTYKX
> + Copying app template from ...node_modules/crosswalk-app-tools/app-template
> + Loading 'android' platform backend
> + Building against API level android-21
> + Creating com.example.foo [done]
> + Defaulting to download channel stable
> + Looking for latest version in crosswalk/stable
> + Fetching 'stable' versions index [##########]
> + Found version '21.51.546.6' in channel 'stable'
> + Using cached crosswalk-21.51.546.6.zip
> + Extracting crosswalk-21.51.546.6.zip [## ]
> ** WARNING: This tool has not been tested with Crosswalk 21.
> + Extracting crosswalk-21.51.546.6.zip [##########]
> + Project template created at ...0000gn/T/JeTYKX/com.example.foo/prj/android
> Importing web application
> + Source /Library/WebServer/Documents/vg
> + Destination ...tdlh9kzs0kb75gs5gm962qpr0000gn/T/JeTYKX/com.example.foo/app
> Building packages armeabi-v7a,x86
> + Loading 'android' platform backend
> ** WARNING: No usable icons found in manifest.json
> ** WARNING: Using builtin default icon
> + Adding permissions ACCESS_NETWORK_STATE,ACCES_WIFI_STATE,INTERNET
> + Updating java activity for 'debug' configuration
> + Copying app to ...pr0000gn/T/JeTYKX/com.example.foo/prj/android/assets/www
> + Updating theme.xml for display mode (fullscreen: no)
> + Using android:versionCode '20000001'
> + Building armeabi-v7a [aapt...]
> ** WARNING: BUILD FAILED
> /Users/macbookpro/Library/Android/sdk/tools/ant/build.xml:928: The following
> error occurred while executing this line:
> /Users/macbookpro/Library/Android/sdk/tools/ant/build.xml:946: null returned:
> 1
> Total time: 32 seconds
>
> *** ERROR: Building ABI 'armeabi-v7a' failed
> + Logfiles at
> /var/folders/lw/tdlh9kzs0kb75gs5gm962qpr0000gn/T/crosswalk-app-tools-com.example.foo
> /usr/local/lib/node_modules/crosswalk-app-tools/src/crosswalk-pkg:572
> throw new Error("Packaging failed");
> ^
> Error: Packaging failed
> at callback
> (/usr/local/lib/node_modules/crosswalk-app-tools/src/crosswalk-pkg:572:27)
> at Main.<anonymous>
> (/usr/local/lib/node_modules/crosswalk-app-tools/src/Main.js:314:13)
> at PlatformBase.<anonymous>
> (/usr/local/lib/node_modules/crosswalk-app-tools/android/lib/AndroidPlatform.js:1430:13)
> at PlatformBase.<anonymous>
> (/usr/local/lib/node_modules/crosswalk-app-tools/android/lib/AndroidPlatform.js:814:21)
> at ChildProcess.<anonymous>
> (/usr/local/lib/node_modules/crosswalk-app-tools/android/lib/AndroidSDK.js:226:9)
> at emitTwo (events.js:87:13)
> at ChildProcess.emit (events.js:172:7)
> at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
> *********
>
> The log file for the build is verbose but the only error I see is the end:
>
> [aapt] (skipping file '.npmignore' due to ANDROID_AAPT_IGNORE
> pattern '.*') [aapt] (skipping file '.cproject' due to
> ANDROID_AAPT_IGNORE pattern '.*')
>
> [aapt] (skipping file '.project' due to ANDROID_AAPT_IGNORE pattern
> '.*')
>
> [aapt] (skipping file '.npmignore' due to ANDROID_AAPT_IGNORE
> pattern '.*')
>
> [aapt] Unable to add
> '/private/var/folders/lw/tdlh9kzs0kb75gs5gm962qpr0000gn/T/JeTYKX/com.example.foo/prj/android/assets/www/node_modules/grunt-qunit-amd/node_modules/phantomjs/node_modules/npmconf/node_modules/semver/semver.browser.js.gz':
> file already in archive (try '-u'?)
>
> [aapt] ERROR: unable to process assets while packaging
> '/private/var/folders/lw/tdlh9kzs0kb75gs5gm962qpr0000gn/T/JeTYKX/com.example.foo/prj/android/bin/com.example.foo.ap_'
>
> [aapt] ERROR: packaging of
> '/private/var/folders/lw/tdlh9kzs0kb75gs5gm962qpr0000gn/T/JeTYKX/com.example.foo/prj/android/bin/com.example.foo.ap_'
> failed
>
> _______________________________________________
> Crosswalk-help mailing list
> [email protected]
> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help