pkrumins / node-png

A nodejs C++ module that given a buffer with RGB or RGBA values creates a PNG image (in memory).
http://www.catonmat.net
194 stars 54 forks source link

Cannot build under Windows 10 - node 0.12.7 - node-gyp 3.3.1 #51

Open jamesjessian opened 8 years ago

jamesjessian commented 8 years ago

Various build errors. Full log of the build errors is attached. Any help appreciated, thanks.

node-png - build dump.txt

jamesjessian commented 8 years ago

Errors include:

..\src\common.cpp(10): error C2248: 'v8::HandleScope::HandleScope': cannot access protected member declared in  class 'v8::HandleScope'
..\src\common.cpp(11): error C2039: 'New': is not a member of 'v8::String'
..\src\common.cpp(17): error C3861: 'ThrowException': identifier not found 
fixed_png_stack.h(9): error C2039: 'ObjectWrap': is not a
member of 'node' (compiling source file ..\src\fixed_png_stack.cpp)module.cpp 
fixed_png_stack.h(25): error C2143: syntax error: missing
',' before '&' (compiling source file ..\src\fixed_png_stack.cpp) 
jamesjessian commented 8 years ago

I've cloned the "node-v12" branch of https://github.com/Garciat/node-png.git instead, which compiles OK.

sayantan94 commented 7 years ago

It even fails in the node-v12 branch , which version of node are you in ?