kiriapurv / node-camera

Access and stream web camera in nodejs using opencv and websockets.
MIT License
145 stars 47 forks source link

Addon only works for node v0.10? #3

Closed jas0n1ee closed 8 years ago

jas0n1ee commented 8 years ago

I try to compile the code with node version 0.10, 0.12, 4.1.2, and only 0.10 works. Since node changes the addon api quite often, why node use NAN instead?

kiriapurv commented 8 years ago

I didn't know about nan when I wrote node-camera, and v8 changes affected as much as 3-4 lines of code, anyways its good idea to switch to nan for future development. For now you can use iojs branch for 0.11 < node-version < 4.x, and I have pushed latest changes for 4.x in node-4.x branch

jas0n1ee commented 8 years ago

👍👍👍