Turn http://my.oschina.net/zhongwenhao/blog/369465
The environment is built on Windows, Mac systems can learn from
1. Installing Nodejs and Ruby
http://nodejs.org/
I downloaded the node-v0.10.35-x64.msi.
https://www.ruby-lang.org/en/
install 1.9.3 version, 2.0 version of the said to have a problem, do not know whether the bug fix, anyway I did not try!
When you install Ruby, tick add to path, and if unchecked, manually add the installation root to Path
Reference:
C:\Ruby193\bin
2, Installation PhoneGap
http://phonegap.com/install/
Open the command line and enter the command:
NPM install-g PhoneGap
3, installation Cordova
http://cordova.apache.org/
sudo npm install-g Cordova
4. Install Ant
http://ant.apache.org/
Reference configuration:
Ant_home c:/apache-ant-1.8.1path c:/apache-ant-1.8.1/binclasspath c:/apache-ant-1.8.1/lib
5. Installing the JDK
Http://www.oracle.com/technetwork/java/javase/downloads/index.html
For JDK installation please refer to:
http://my.oschina.net/zhongwenhao/blog/303821
6. Installing Sencha cmd
http://www.sencha.com/products/sencha-cmd/
Installation directory cannot have Chinese, space
Add installation root to path when installation is complete
Reference
C:\Sencha_cmd2\Sencha\Cmd\5.1.0.26
7, this article to build the Android environment as an example to install the SDK
Http://developer.android.com/sdk/index.html
I downloaded the Android Studio development tool (for future development), the installation process will prompt you to install the SDK, you can also find in the page only download the SDK link;
My SDK installation path is:
D:\androidstudio\sdk
After the installation is complete, add the following three paths to the path
D:\androidstudio\sdk\platform-tools;d:\androidstudio\sdk\tools;d:\androidstudio\sdk\platforms
8. Verify that the installation is correct:
Verify Nodejs, Ruby, PhoneGap Cordova, ANT,JDK, Sencha cmd
Validation of the SDK installation:
Installation is complete, you can start to develop, small partners! PS: Mom than, seemingly installed more, but there is no way ah
Download Sencha Touch Development Kit
http://www.sencha.com/products/touch/
I downloaded is: touch-2.4.1 version drops, I put in the D disk, JXGL is the project name, followed by the project after the creation of the path to store!
To build the project:
Add PHONEGAP support for the generated project, and if you want to use Cordova, switch phonegap directly to Cordova!
If the command executes successfully, the PHONEGAP directory will be added to the project root directory, so you can use Sencha Touch and PhoneGap!
I'm using a tomcat server that I just saw when I was building the Sencha project, I put the resulting project in Tomcat's WebApps directory, and after starting the Tomcat server, I used the browser to access the generated project directly: http://localhost:8080/jxgl/
In this way, the environment is built.
If you have English, please refer to the official documentation:
Http://docs.sencha.com/cmd/5.x/cordova_phonegap.html
phonegap+cordova+senchatouch-01-Environment Construction