Build Blockly-Games on Window: 日本語付き

https://www.catch.jp:443/wiki/editedit.php?Build_Blockly-Games_Win

Programing > Programing/Blockly2014 > Build_Blockly-Games_for_Windows

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

このドキュメントでは、 WindowsでBlockly-Gamesを導入/構築する方法を説明します。

ビルドには、Windows7を使いました。必要なツールも多岐にわたります。

ネットで調べたけど、英語でもほとんど情報が見つからなかったので、英語のメモを付けておきます。

2014-10-27

Dependencies 必要なもの

Download

Download source of Blockly-Games. ソースコードをダウンロードします。

Edit Makefile

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 ビルド

Run these commands on Cygwin.

1.Build deps

cd blockly-games/
make deps

2.edit build.xml

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

make en

Option. Build all Languages

Need many hours.

make languages

Option. Build one Game

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 : 動作確認

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

Reference : 参考


  トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2017-06-24 (土) 23:59:07 (2491d)