I am pleased to announce the release of LiveCoding, a software allowing you to write sketches in Javascript and modify them at run time.
The whole project (include source code and some embryo documentation) is hosted @ http://code.google.com/p/oflivecoding.It is released for the moment only for Mac, Windows version is on its way,some minor glitches to be fixed. The software runs on top of two addons: ofxJavascript and ofxOsc(it’s possible to type and send sketches from a remote machine). ofxJavascript is a general purpose addon for openframeworks that allows to embed Mozilla Javascript engine (called Spidermonkey). It’s possible to load, compile, evaluate scripts from C++. Several openframeworks core functionalities are already accessible from Javascript (image, fonts, OpenGL), some more bindings are to come.
Hi, nothing is happening when you hit ctrl + ‘e’ ? (no dialog box, etc …)
LiveCoding should open the default program that is associated with .js files. May be Windows tries to execute the js files directly I guess. Try to associate an editor (Notepad2 is good, for example) with your .js files
LiveCoding using OF is really cool idea, and I enjoyed ofliveCoding!
Since i want to use ofxFBOTexture and ofxffglplugin with ofliveCoding, i tried to re-compile ofliveCoding.
But so far I’ve got bunch of errors (all related to ofxJavaScript)…
my env:
OSX 10.6.3, Xcode 3.2, OF v0.061 x-code FAT (10.6).
/../../../addons/ofxJavascript/src/js/ofxJSGlobalFunc.cpp:6: error:
'JSClass' does not name a type
../../../addons/ofxJavascript/src/js/ofxJSGlobalFunc.cpp:17: error:
expected constructor, destructor, or type conversion before '*' token
../../../addons/ofxJavascript/src/js/ofxJSGlobalFunc.cpp:30: error:
'ofxJSGlobalFunc' has not been declared
../../../addons/ofxJavascript/src/js/ofxJSGlobalFunc.cpp:30: error:
variable or field 'JSDestructor' declared void
../../../addons/ofxJavascript/src/js/ofxJSGlobalFunc.cpp:30: error:
'JSContext' was not declared in this scope
../../../addons/ofxJavascript/src/js/ofxJSGlobalFunc.cpp:30: error:
'cx' was not declared in this scope
../../../addons/ofxJavascript/src/js/ofxJSGlobalFunc.cpp:30: error:
'JSObject' was not declared in this scope
../../../addons/ofxJavascript/src/js/ofxJSGlobalFunc.cpp:30: error:
'obj' was not declared in this scope
../../../addons/ofxJavascript/src/js/ofxJSGlobalFunc.cpp:36: error:
expected constructor, destructor, or type conversion before '*' token
Do i need any extra setting?
i tried to compile with “…/…/…/addons/ofxJavascript/libs/javascript/include/” on Header Seach Path, but no luck.