[[Programing/Blockly]] >  Build_Blockly-Games_for_Windows
[[Programing]] > [[Programing/Blockly2014]] >  Build_Blockly-Games_for_Windows

#title(Build Blockly-Games on Window: ܸդ)

This instruction is how to install and build Blockly-Games on Windows with Japanese coments.

ΥɥȤǤϡ WindowsBlockly-GamesƳ/ۤˡޤ

ӥɤˤϡWindows7Ȥޤɬפʥġ¿ˤ錄ޤ

ͥåȤĴ٤ɡѸǤۤȤɾ󤬸ĤʤäΤǡѸΥդƤޤ

2014-10-27

#contents

* Dependencies ɬפʤ [#vec6d812]

- Git : for download source-code.
- Cygwin https://www.cygwin.com/
-- include Python 2.7
-- Add "Devel" - "make"
-- Add "Devel" - "git-svn"
- JDK(Java SE Development Kit) : http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
-- Set the environment variables for Windows : WindowsδĶѿꤹ
-- JAVA_HOME : (JDK Path)
-- path : (JDK Path)\bin
- Apache Ant : http://ant.apache.org/
-- Set the environment variables for Windows: WindowsδĶѿꤹ
-- JAVA_HOME : (ANT Path)
-- path : (ANT Path)\bin

* Download [#u8d30b6f]

Download source of Blockly-Games. ɤɤޤ

- git clone https://code.google.com/p/blockly-games/
- https://code.google.com/p/blockly-games/source/checkout

* Edit Makefile [#yb30934f]

change path from googlecode to github.

old

 svn checkout http://blockly.googlecode.com/svn/trunk/core $(JS_READ_ONLY)/blockly/core
 svn checkout http://blockly.googlecode.com/svn/trunk/blocks $(JS_READ_ONLY)/blockly/blocks
 svn checkout http://blockly.googlecode.com/svn/trunk/generators $(JS_READ_ONLY)/blockly/generators
 svn checkout http://blockly.googlecode.com/svn/trunk/msg/js $(JS_READ_ONLY)/blockly/msg-js

New

 svn checkout https://github.com/google/blockly/trunk/core $(JS_READ_ONLY)/blockly/core
 svn checkout https://github.com/google/blockly/trunk/blocks $(JS_READ_ONLY)/blockly/blocks
 svn checkout https://github.com/google/blockly/trunk/generators $(JS_READ_ONLY)/blockly/generators
 svn checkout https://github.com/google/blockly/trunk/msg/js $(JS_READ_ONLY)/blockly/msg-js

* Build ӥ [#e5319b98]

Run these commands on Cygwin.

** 1.Build deps [#k5a1a5ee]

 cd blockly-games/
 make deps

** 2.edit build.xml [#zfbfbee7]

If this works, great! But it will probably die with this error: ⤷⡢ʥ顼Ф

 [javac] Compiling 375 source files to...

In this case you need to edit closure-templates-read-only/build.xm , and replace some text like this.

ξ硢closure-templates-read-only/build.xmԽơʲοִޤ

 "1.6" -> "1.7"

It is depend JDK version, maybe.

֤JavaΥСˤäơѹѤ?

and run "make deps" again.

** 3.Build English [#l5b9e1d6]

 make en

** Option. Build all Languages [#s4a94d1f]

Need many hours.

 make languages

** Option. Build one Game [#fed6e217]

 make index-en
 make puzzle-en
 make maze-en
 make bird-en
 make turtle-en
 make movie-en
 make pond-docs-en
 make pond-basic-en
 make pond-advanced-en

* Test Locally : ưǧ [#x79f2881]

  Open blockly-games/appengine/index.html?lang=en

* Reference :  [#d1a23dd0]

- https://code.google.com/p/blockly-games/wiki/Build

ȥå   ʬ Хåå   ñ측 ǽ   إ   ǽRSS