doc:dev_blockly
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:dev_blockly [2014/11/09 17:02] – admin | doc:dev_blockly [2015/01/04 15:09] (current) – admin | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ===== Install emscripten ===== | ===== Install emscripten ===== | ||
| - | Under Ubuntu 14.04 that's easy: Just install | + | The package under Ubuntu 14.04 is too old (1.10), but we'll need 1.12.1 to have the fastcomp compiler active. The older version generates a ' |
| - | sudo apt-get install | + | So download the [[http:// |
| | | ||
| ===== Compile Luac as javascript binary ===== | ===== Compile Luac as javascript binary ===== | ||
| Line 26: | Line 26: | ||
| CC= emcc | CC= emcc | ||
| + | | ||
| + | make a note of the compiler flags, which are used (e.g. '' | ||
| + | |||
| + | Make sure **not** to use the -DLUA_USE_POSIX directive, because it makes the compiler to use _setjmp/ | ||
| + | |||
| | | ||
| comment the LIBS directive, as it seems not to be used and creates a warning | comment the LIBS directive, as it seems not to be used and creates a warning | ||
| Line 40: | Line 45: | ||
| | | ||
| emcc: | emcc: | ||
| - | $(MAKE) comp MYCFLAGS=-DLUA_USE_POSIX | + | $(MAKE) comp MYCFLAGS= |
| Line 52: | Line 57: | ||
| build luac.js | build luac.js | ||
| - | emcc -o luac.js | + | emcc -O2 -Wall |
| test it | test it | ||
| Line 62: | Line 68: | ||
| and load it via local webserver ('' | and load it via local webserver ('' | ||
| + | |||
| + | |||
| + | ===== Create own blockly Content ===== | ||
| + | |||
| + | cp blockly_compressed.js blockly_uncompressed.js lua_compressed.js ../ | ||
| + | |||
doc/dev_blockly.1415548970.txt.gz · Last modified: 2014/11/09 17:02 by admin
