node-tempi

Nodejs addon to manage Tempi graphs

npm install node-tempi
2 downloads in the last week
4 downloads in the last month

node-tempi

nodejs addon for Tempi.

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Authors

  • Alexandre Quessy

compiling

For now, you must install Tempi from its source. Clond the Git repository from the URL specified on https://code.sat.qc.ca/redmine/projects/tempi and then checkout the develop branch, compile it, install it and run ldconfig. See Tempi's README file for instructions. Then, you can continue with the following instructions.

On Debian or Ubuntu GNU/Linux::

sudo apt-get install nodejs-dev nodejs npm sudo npm install -g node-gyp

On Mac OS X::

You first need to modify your common.gypi file to remove the -fno-rtti option: Replace line: 'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ], with: 'cflags_cc!': [ '-fno-rtti', '-fno-exceptions' ],

as well as: 'GCC_ENABLE_CPP_RTTI': 'NO',
with:       'GCC_ENABLE_CPP_RTTI': 'YES',

sudo port install nodejs-devel npm sudo npm install -g node-gyp

Then, do this::

node-gyp configure node-gyp build npm install

Running the prototype

Do this::

node examples/example1.js

clean:

Do this::

node-gyp clean

Debugging

Do this::

node-gyp rebuild gdb --args node example1.js

And then, in GDB:

r

npm loves you