Node-gyp is a cross-platform command-line tool written in Node.js for compiling native addon modules for Node.js. I am trying to get my node program to run some C++ I've written. Node-gyp seems to make this process easier as in this example, which I was able to run by doing node-gyp configure followed by node-gyp build and then running with node test.js

I'm still having trouble understanding how to set up the binding.cc and binding.gyp files. Does anyone know whats going on or know of any good guides/documentation?

有帮助吗?

解决方案

Addons documentation page and node-addon-examples linked from that page should be a good start. Also watch this slides on basics of binary modules (it uses older node-waf as a build tool though)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top