Mercurial > MadButterfly
comparison nodejs/README.svg @ 702:78a01b0d3fc9
Rename README to README.svg
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 11 Aug 2010 20:27:08 +0800 |
parents | nodejs/README@4ca7a7ad7364 |
children | efcbcb750d63 |
comparison
equal
deleted
inserted
replaced
701:4ca7a7ad7364 | 702:78a01b0d3fc9 |
---|---|
1 svg.js: | |
2 =============== | |
3 | |
4 The sample code to load an SVG file. It requires the libxml, which is | |
5 available at http://github.com/polotek/libxmljs/tree/refactor. Please | |
6 copy the libxmljs.node to the objs/default if you want to test the | |
7 libxml+mbfly without installing them into the system. The path can be | |
8 defined by the NODE_PATH environment variable. | |
9 | |
10 (1) Compile MadButterfly with nodejs support | |
11 ~user/MadButterfly$ ./configure --enable-nodejs; make | |
12 | |
13 (2) Compile libxml | |
14 ~user/MadButterfly/nodejs$ git clone http://github.com/polotek/libxmljs.git | |
15 ~user/MadButterfly/nodejs$ cd libxml; make; cd .. | |
16 | |
17 (3) Copy the libxml.node to the nodejs build directory | |
18 ~user/MadButterfly/nodejs$ cp libxml/libxml.node objs/default | |
19 (4) Set the path | |
20 ~user/MadButterfly/nodejs$ export NODE_PATH=objs/default | |
21 | |
22 (5) Execute svg.js | |
23 ~user/MadButterfly/nodejs$ node svg.js | |
24 |