문제

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