mercredi 2 juillet 2014

sencha cmd and cordova

Hi, I'm starting to get into the world of touch and want to deploy via cordova.

I am going through the example documentation but keep getting an error. My setup is :-


Ubuntu 12.04.4 LTS

Sencha Cmd v5.0.0.160

Touch 2.3.1

Cordova 3.5.0-0.2.4

java version "1.7.0_60"

Java(TM) SE Runtime Environment (build 1.7.0_60-b19)

Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)


Commands and output are below. Any help would be appreciated. Thanks in advance.



Code:



sencha -sdk /home/me/sencha_touch/touch-2.3.1 generate app MyApp .
//cd /var/www/myApp
sencha cordova init [com.example.MyApp]


//create a config.xml file in the root directory


<?xml version='1.0' encoding='utf-8'?>
<widget id="com.example.MyApp" version="0.0.1" xmlns="http://ift.tt/18Fk3Vk" xmlns:cdv="http://ift.tt/1cHnIYX">
<name>MyApp</name>
<description>
test touch app
</description>
<author email="myemail@gmail.com" href="">
myemail
</author>
<content src="index.html" />
<access origin="*" />
</widget>


//edit cordova.local.properties
cordova.platforms=android


//Emulate app


sencha app build -run native


Sencha Cmd v5.0.0.160
[INF] Processing Build Descriptor : default
[INF] Loading app json manifest...
[INF] Concatenating output to file /var/www/myApp/build/temp/native/MyApp/sencha-compiler/cmd-packages.js
[INF] Concatenating output to file /var/www/myApp/build/temp/native/MyApp/__core.files
[INF] Concatenating output to file /var/www/myApp/build/temp/native/MyApp/__manifest
[INF] Concatenating output to file /var/www/myApp/build/temp/native/MyApp/__class.metadata
[INF] Appending concatenated output to file /var/www/myApp/build/temp/native/MyApp/__class.metadata
[INF] Appending concatenated output to file /var/www/myApp/build/temp/native/MyApp/__class.metadata
[INF] Appending concatenated output to file /var/www/myApp/build/temp/native/MyApp/__class.metadata
[INF] Concatenating output to file /var/www/myApp/build/temp/native/MyApp/__override.files
[INF] Appending content to /var/www/myApp/bootstrap.json
[INF] Compressing data with YuiJavascriptCompressor
[INF] Concatenating output to file /var/www/myApp/cordova/www/app.js
[INF] merging resources into /var/www/myApp/cordova/www/resources
[INF] merged 0 resources into /var/www/myApp/cordova/www/resources
[INF] merging resources into /var/www/myApp/cordova/www
[INF] merged 0 resources into /var/www/myApp/cordova/www
[INF] executing compass using system installed ruby runtime
[INF] Copying page resources to /var/www/myApp/cordova/www
[INF] Writing content to /var/www/myApp/cordova/www/app.json
[INF] Writing content to /var/www/myApp/cordova/www/microloader.js
[INF] Appending content to /var/www/myApp/cordova/www/microloader.js
[INF] Building output markup to /var/www/myApp/cordova/www/index.html
[ERR] The following error occurred while executing this line:
/var/www/myApp/.sencha/app/build-impl.xml:427: The following error occurred while executing this line:
/var/www/myApp/.sencha/app/cordova-impl.xml:118: The following error occurred while executing this line:
jar:file:/home/gez/sencha_touch/Sencha/Cmd/5.0.0.160/sencha.jar!/com/sencha/ant/antlib.xml:608: shellscript returned: 1


//Package Debug App


sencha app build native


Sencha Cmd v5.0.0.160
[INF] Processing Build Descriptor : default
[INF] Loading app json manifest...
[INF] Concatenating output to file /var/www/myApp/build/temp/native/MyApp/sencha-compiler/cmd-packages.js
[INF] Concatenating output to file /var/www/myApp/build/temp/native/MyApp/__core.files
[INF] Concatenating output to file /var/www/myApp/build/temp/native/MyApp/__manifest
[INF] Concatenating output to file /var/www/myApp/build/temp/native/MyApp/__class.metadata
[INF] Appending concatenated output to file /var/www/myApp/build/temp/native/MyApp/__class.metadata
[INF] Appending concatenated output to file /var/www/myApp/build/temp/native/MyApp/__class.metadata
[INF] Appending concatenated output to file /var/www/myApp/build/temp/native/MyApp/__class.metadata
[INF] Concatenating output to file /var/www/myApp/build/temp/native/MyApp/__override.files
[INF] Appending content to /var/www/myApp/bootstrap.json
[INF] Compressing data with YuiJavascriptCompressor
[INF] Concatenating output to file /var/www/myApp/cordova/www/app.js
[INF] merging resources into /var/www/myApp/cordova/www/resources
[INF] merged 0 resources into /var/www/myApp/cordova/www/resources
[INF] merging resources into /var/www/myApp/cordova/www
[INF] merged 0 resources into /var/www/myApp/cordova/www
[INF] executing compass using system installed ruby runtime
[INF] Copying page resources to /var/www/myApp/cordova/www
[INF] Writing content to /var/www/myApp/cordova/www/app.json
[INF] Writing content to /var/www/myApp/cordova/www/microloader.js
[INF] Appending content to /var/www/myApp/cordova/www/microloader.js
[INF] Building output markup to /var/www/myApp/cordova/www/index.html
[ERR] The following error occurred while executing this line:
/var/www/myApp/.sencha/app/build-impl.xml:427: The following error occurred while executing this line:
/var/www/myApp/.sencha/app/cordova-impl.xml:118: The following error occurred while executing this line:
jar:file:/home/gez/sencha_touch/Sencha/Cmd/5.0.0.160/sencha.jar!/com/sencha/ant/antlib.xml:608: shellscript returned: 1




1 commentaire:

  1. got same error, in same lines. Windows 8.1 building for Android. Sencha Cmd version 5

    RépondreSupprimer