# HG changeset patch # User Thinker K.F. Li # Date 1283486012 -28800 # Node ID 7a312cd3e26f048b063462f0c7cebb1b462a03a6 # Parent 5aca6024b14758c9e47a97ddd67938bb7316b7f0 Rename nodejs/README.svg to nodejs/INSTALL.txt diff -r 5aca6024b147 -r 7a312cd3e26f nodejs/INSTALL.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nodejs/INSTALL.txt Fri Sep 03 11:53:32 2010 +0800 @@ -0,0 +1,24 @@ +svg.js: +=============== + +The sample code to load an SVG file. It requires the libxmljs, which is +available at http://github.com/polotek/libxmljs/tree/refactor. Please +copy the libxmljs.node to the objs/default if you want to test the +libxmljs+mbfly without installing them into the system. The path can be +defined by the NODE_PATH environment variable. + +(1) Compile MadButterfly with nodejs support + ~user/MadButterfly$ ./configure --enable-nodejs; make + +(2) Compile libxmljs + ~user/MadButterfly/nodejs$ git clone http://github.com/polotek/libxmljs.git + ~user/MadButterfly/nodejs$ cd libxmljs; make; cd .. + +(3) Copy the libxmljs.node to the nodejs build directory + ~user/MadButterfly/nodejs$ cp libxmljs/libjsxml.node objs/default +(4) Set the path + ~user/MadButterfly/nodejs$ export NODE_PATH=objs/default + +(5) Execute testsvg.js + ~user/MadButterfly/nodejs$ node testsvg.js + diff -r 5aca6024b147 -r 7a312cd3e26f nodejs/README.svg --- a/nodejs/README.svg Thu Sep 02 11:00:30 2010 +0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -svg.js: -=============== - -The sample code to load an SVG file. It requires the libxmljs, which is -available at http://github.com/polotek/libxmljs/tree/refactor. Please -copy the libxmljs.node to the objs/default if you want to test the -libxmljs+mbfly without installing them into the system. The path can be -defined by the NODE_PATH environment variable. - -(1) Compile MadButterfly with nodejs support - ~user/MadButterfly$ ./configure --enable-nodejs; make - -(2) Compile libxmljs - ~user/MadButterfly/nodejs$ git clone http://github.com/polotek/libxmljs.git - ~user/MadButterfly/nodejs$ cd libxmljs; make; cd .. - -(3) Copy the libxmljs.node to the nodejs build directory - ~user/MadButterfly/nodejs$ cp libxmljs/libjsxml.node objs/default -(4) Set the path - ~user/MadButterfly/nodejs$ export NODE_PATH=objs/default - -(5) Execute testsvg.js - ~user/MadButterfly/nodejs$ node testsvg.js -