# HG changeset patch # User Thinker K.F. Li # Date 1281669205 -28800 # Node ID efcbcb750d63b6c13e90e85dd74649e8e2bb6070 # Parent d950487bd9f98519c74882257dbc8d4d350ae511 Fix typos in nodejs/README.svg diff -r d950487bd9f9 -r efcbcb750d63 nodejs/README.svg --- a/nodejs/README.svg Fri Aug 13 11:10:49 2010 +0800 +++ b/nodejs/README.svg Fri Aug 13 11:13:25 2010 +0800 @@ -1,21 +1,21 @@ svg.js: =============== -The sample code to load an SVG file. It requires the libxml, which is +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 -libxml+mbfly without installing them into the system. The path can be +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 libxml +(2) Compile libxmljs ~user/MadButterfly/nodejs$ git clone http://github.com/polotek/libxmljs.git - ~user/MadButterfly/nodejs$ cd libxml; make; cd .. + ~user/MadButterfly/nodejs$ cd libxmljs; make; cd .. -(3) Copy the libxml.node to the nodejs build directory - ~user/MadButterfly/nodejs$ cp libxml/libxml.node objs/default +(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