You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not clear if this is an environment setup issue or if node-sdl is incompatible with node 5.x, I receive the below errors when trying to build. Is it expected that this version of node is supported?
In file included from ../src/helpers.cc:7:0:
../src/helpers.h:282:33: error: expected primary-expression before ‘*’ token
char* BufferData(node::Buffer *b);
^
../src/helpers.h:282:34: error: ‘b’ was not declared in this scope
char* BufferData(node::Buffer *b);
^
../src/helpers.h:283:36: error: expected primary-expression before ‘*’ token
size_t BufferLength(node::Buffer *b);
^
../src/helpers.h:283:37: error: ‘b’ was not declared in this scope
size_t BufferLength(node::Buffer *b);
^
../src/helpers.h:284:49: error: ‘char* sdl::BufferData(v8::Local<v8::Object>)’ redeclared as different kind of symbol
char* BufferData(v8::Local<v8::Object> buf_obj);
^
../src/helpers.h:282:9: note: previous declaration ‘char* sdl::BufferData’
char* BufferData(node::Buffer *b);
^
../src/helpers.h:285:52: error: ‘size_t sdl::BufferLength(v8::Local<v8::Object>)’ redeclared as different kind of symbol
size_t BufferLength(v8::Local<v8::Object> buf_obj);
^
../src/helpers.h:283:10: note: previous declaration ‘size_t sdl::BufferLength’
size_t BufferLength(node::Buffer *b);
^
In file included from ../src/helpers.cc:8:0:
../src/struct_wrappers.h:24:47: error: expected class-name before ‘{’ token
class PointWrapper : public node::ObjectWrap {
^
../src/struct_wrappers.h:32:46: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handle<v8::Value> New(const v8::Arguments& args);
^
../src/struct_wrappers.h:34:75: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
static v8::Handle<v8::Value> GetX(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:35:75: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
static v8::Handle<v8::Value> GetY(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:36:86: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
static void SetX(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:37:86: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
static void SetY(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:38:51: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handle<v8::Value> ToString(const v8::Arguments& args);
^
../src/struct_wrappers.h:45:49: error: ‘Arguments’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> ConstructColor(const v8::Arguments& args);
^
../src/struct_wrappers.h:49:74: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetColorRed(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:50:76: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetColorGreen(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:51:75: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetColorBlue(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:52:76: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetColorAlpha(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:54:85: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
void SetColorRed(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:55:87: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
void SetColorGreen(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:56:86: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
void SetColorBlue(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:57:87: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
void SetColorAlpha(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:61:51: error: ‘Arguments’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> ConstructPalette(const v8::Arguments& args);
^
../src/struct_wrappers.h:65:73: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetNcolors(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:66:72: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetColors(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:72:83: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetDisplayModeFormat(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:73:82: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetDisplayModeWidth(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:74:83: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetDisplayModeHeight(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:75:88: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetDisplayModeRefreshRate(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:82:78: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetFormatFormat(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:83:79: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetFormatPalette(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:84:76: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetFormatBits(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:85:77: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetFormatBytes(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:86:77: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetFormatRmask(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:87:77: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetFormatGmask(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:88:77: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetFormatBmask(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:89:77: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetFormatAmask(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:96:82: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetRendererInfoName(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:97:83: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetRendererInfoFlags(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:98:95: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetRendererInfoNumTextureFormats(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:99:92: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetRendererInfoTextureFormats(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:100:93: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetRendererInfoMaxTextureWidth(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/struct_wrappers.h:101:94: error: ‘AccessorInfo’ in namespace ‘v8’ does not name a type
v8::Handle<v8::Value> GetRendererInfoMaxTextureHeight(v8::Local<v8::String> name, const v8::AccessorInfo& info);
^
../src/helpers.cc: In function ‘v8::Handle<v8::Value> sdl::ThrowSDLException(const char*)’:
../src/helpers.cc:17:49: error: ‘ThrowException’ was not declared in this scope
return ThrowException(MakeSDLException(name));
^
../src/helpers.cc: In function ‘v8::Local<v8::Value> sdl::MakeSDLException(const char*)’:
../src/helpers.cc:22:22: error: ‘New’ is not a member of ‘v8::String’
String::Concat(String::New(name), String::New(": ")),
^
../src/helpers.cc:22:41: error: ‘New’ is not a member of ‘v8::String’
String::Concat(String::New(name), String::New(": ")),
^
../src/helpers.cc:23:7: error: ‘New’ is not a member of ‘v8::String’
String::New(SDL_GetError())
^
../src/helpers.cc: At global scope:
../src/helpers.cc:27:20: error: redefinition of ‘char* sdl::BufferData’
char* BufferData(Buffer *b) {
^
In file included from ../src/helpers.cc:7:0:
../src/helpers.h:282:9: note: ‘char* sdl::BufferData’ previously defined here
char* BufferData(node::Buffer *b);
^
../src/helpers.cc:27:27: error: expected primary-expression before ‘*’ token
char* BufferData(Buffer *b) {
^
../src/helpers.cc:27:28: error: ‘b’ was not declared in this scope
char* BufferData(Buffer *b) {
^
../src/helpers.cc:31:23: error: redefinition of ‘size_t sdl::BufferLength’
size_t BufferLength(Buffer *b) {
^
In file included from ../src/helpers.cc:7:0:
../src/helpers.h:283:10: note: ‘size_t sdl::BufferLength’ previously defined here
size_t BufferLength(node::Buffer *b);
^
../src/helpers.cc:31:30: error: expected primary-expression before ‘*’ token
size_t BufferLength(Buffer *b) {
^
../src/helpers.cc:31:31: error: ‘b’ was not declared in this scope
size_t BufferLength(Buffer *b) {
^
../src/helpers.cc: In function ‘char* sdl::BufferData(v8::Local<v8::Object>)’:
../src/helpers.cc:35:41: error: ‘char* sdl::BufferData(v8::Local<v8::Object>)’ redeclared as different kind of symbol
char* BufferData(Local<Object> buf_obj) {
^
In file included from ../src/helpers.cc:7:0:
../src/helpers.h:282:9: note: previous declaration ‘char* sdl::BufferData’
char* BufferData(node::Buffer *b);
^
../src/helpers.cc: In function ‘size_t sdl::BufferLength(v8::Local<v8::Object>)’:
../src/helpers.cc:39:44: error: ‘size_t sdl::BufferLength(v8::Local<v8::Object>)’ redeclared as different kind of symbol
size_t BufferLength(Local<Object> buf_obj) {
^
In file included from ../src/helpers.cc:7:0:
../src/helpers.h:283:10: note: previous declaration ‘size_t sdl::BufferLength’
size_t BufferLength(node::Buffer *b);
^
../src/helpers.cc: In function ‘v8::Local<v8::Object> sdl::SDLEventToJavascriptObject(const SDL_Event&)’:
../src/helpers.cc:44:37: error: no matching function for call to ‘v8::Object::New()’
Local<Object> evt = Object::New();
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2930:24: note: candidate: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
static Local<Object> New(Isolate* isolate);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2930:24: note: candidate expects 1 argument, 0 provided
../src/helpers.cc:49:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New(event.type == SDL_KEYDOWN ? "KEYDOWN" : "KEYUP"));
^
../src/helpers.cc:49:39: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New(event.type == SDL_KEYDOWN ? "KEYDOWN" : "KEYUP"));
^
../src/helpers.cc:50:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("scancode"), Number::New(event.key.keysym.scancode));
^
../src/helpers.cc:50:80: error: no matching function for call to ‘v8::Number::New(const SDL_Scancode&)’
evt->Set(String::New("scancode"), Number::New(event.key.keysym.scancode));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:51:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("sym"), Number::New(event.key.keysym.sym));
^
../src/helpers.cc:51:70: error: no matching function for call to ‘v8::Number::New(const SDL_Keycode&)’
evt->Set(String::New("sym"), Number::New(event.key.keysym.sym));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:52:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("mod"), Number::New(event.key.keysym.mod));
^
../src/helpers.cc:52:70: error: no matching function for call to ‘v8::Number::New(const Uint16&)’
evt->Set(String::New("mod"), Number::New(event.key.keysym.mod));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:53:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("repeat"), Boolean::New(event.key.repeat > 0 ? true : false));
^
../src/helpers.cc:53:89: error: no matching function for call to ‘v8::Boolean::New(bool)’
evt->Set(String::New("repeat"), Boolean::New(event.key.repeat > 0 ? true : false));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:7593:16: note: candidate: static v8::Local<v8::Boolean> v8::Boolean::New(v8::Isolate*, bool)
Local<Boolean> Boolean::New(Isolate* isolate, bool value) {
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:7593:16: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:56:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("MOUSEMOTION"));
^
../src/helpers.cc:56:39: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("MOUSEMOTION"));
^
../src/helpers.cc:57:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("state"), Number::New(event.motion.state));
^
../src/helpers.cc:57:70: error: no matching function for call to ‘v8::Number::New(const Uint32&)’
evt->Set(String::New("state"), Number::New(event.motion.state));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:58:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("which"), Number::New(event.motion.which));
^
../src/helpers.cc:58:70: error: no matching function for call to ‘v8::Number::New(const Uint32&)’
evt->Set(String::New("which"), Number::New(event.motion.which));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:59:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("x"), Number::New(event.motion.x));
^
../src/helpers.cc:59:62: error: no matching function for call to ‘v8::Number::New(const Sint32&)’
evt->Set(String::New("x"), Number::New(event.motion.x));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:60:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("y"), Number::New(event.motion.y));
^
../src/helpers.cc:60:62: error: no matching function for call to ‘v8::Number::New(const Sint32&)’
evt->Set(String::New("y"), Number::New(event.motion.y));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:61:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("xrel"), Number::New(event.motion.xrel));
^
../src/helpers.cc:61:68: error: no matching function for call to ‘v8::Number::New(const Sint32&)’
evt->Set(String::New("xrel"), Number::New(event.motion.xrel));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:62:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("yrel"), Number::New(event.motion.yrel));
^
../src/helpers.cc:62:68: error: no matching function for call to ‘v8::Number::New(const Sint32&)’
evt->Set(String::New("yrel"), Number::New(event.motion.yrel));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:66:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New(event.type == SDL_MOUSEBUTTONDOWN ? "MOUSEBUTTONDOWN" : "MOUSEBUTTONUP
^
../src/helpers.cc:66:39: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New(event.type == SDL_MOUSEBUTTONDOWN ? "MOUSEBUTTONDOWN" : "MOUSEBUTTONUP
^
../src/helpers.cc:67:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("button"), Number::New(event.button.button));
^
../src/helpers.cc:67:72: error: no matching function for call to ‘v8::Number::New(const Uint8&)’
evt->Set(String::New("button"), Number::New(event.button.button));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:68:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("which"), Number::New(event.button.which));
^
../src/helpers.cc:68:70: error: no matching function for call to ‘v8::Number::New(const Uint32&)’
evt->Set(String::New("which"), Number::New(event.button.which));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:69:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("x"), Number::New(event.button.x));
^
../src/helpers.cc:69:62: error: no matching function for call to ‘v8::Number::New(const Sint32&)’
evt->Set(String::New("x"), Number::New(event.button.x));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:70:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("y"), Number::New(event.button.y));
^
../src/helpers.cc:70:62: error: no matching function for call to ‘v8::Number::New(const Sint32&)’
evt->Set(String::New("y"), Number::New(event.button.y));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:73:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("JOYAXISMOTION"));
^
../src/helpers.cc:73:39: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("JOYAXISMOTION"));
^
../src/helpers.cc:74:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("which"), Number::New(event.jaxis.which));
^
../src/helpers.cc:74:69: error: no matching function for call to ‘v8::Number::New(const SDL_JoystickID&)’
evt->Set(String::New("which"), Number::New(event.jaxis.which));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:75:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("axis"), Number::New(event.jaxis.axis));
^
../src/helpers.cc:75:67: error: no matching function for call to ‘v8::Number::New(const Uint8&)’
evt->Set(String::New("axis"), Number::New(event.jaxis.axis));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:76:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("value"), Number::New(event.jaxis.value));
^
../src/helpers.cc:76:69: error: no matching function for call to ‘v8::Number::New(const Sint16&)’
evt->Set(String::New("value"), Number::New(event.jaxis.value));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:79:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("JOYBALLMOTION"));
^
../src/helpers.cc:79:39: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("JOYBALLMOTION"));
^
../src/helpers.cc:80:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("which"), Number::New(event.jball.which));
^
../src/helpers.cc:80:69: error: no matching function for call to ‘v8::Number::New(const SDL_JoystickID&)’
evt->Set(String::New("which"), Number::New(event.jball.which));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:81:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("ball"), Number::New(event.jball.ball));
^
../src/helpers.cc:81:67: error: no matching function for call to ‘v8::Number::New(const Uint8&)’
evt->Set(String::New("ball"), Number::New(event.jball.ball));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:82:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("xrel"), Number::New(event.jball.xrel));
^
../src/helpers.cc:82:67: error: no matching function for call to ‘v8::Number::New(const Sint16&)’
evt->Set(String::New("xrel"), Number::New(event.jball.xrel));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:83:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("yrel"), Number::New(event.jball.yrel));
^
../src/helpers.cc:83:67: error: no matching function for call to ‘v8::Number::New(const Sint16&)’
evt->Set(String::New("yrel"), Number::New(event.jball.yrel));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:86:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("JOYHATMOTION"));
^
../src/helpers.cc:86:39: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("JOYHATMOTION"));
^
../src/helpers.cc:87:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("which"), Number::New(event.jhat.which));
^
../src/helpers.cc:87:68: error: no matching function for call to ‘v8::Number::New(const SDL_JoystickID&)’
evt->Set(String::New("which"), Number::New(event.jhat.which));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:88:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("hat"), Number::New(event.jhat.hat));
^
../src/helpers.cc:88:64: error: no matching function for call to ‘v8::Number::New(const Uint8&)’
evt->Set(String::New("hat"), Number::New(event.jhat.hat));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:89:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("value"), Number::New(event.jhat.value));
^
../src/helpers.cc:89:68: error: no matching function for call to ‘v8::Number::New(const Uint8&)’
evt->Set(String::New("value"), Number::New(event.jhat.value));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:93:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New(event.type == SDL_JOYBUTTONDOWN ? "JOYBUTTONDOWN" : "JOYBUTTONUP"));
^
../src/helpers.cc:93:39: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New(event.type == SDL_JOYBUTTONDOWN ? "JOYBUTTONDOWN" : "JOYBUTTONUP"));
^
../src/helpers.cc:94:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("which"), Number::New(event.jbutton.which));
^
../src/helpers.cc:94:71: error: no matching function for call to ‘v8::Number::New(const SDL_JoystickID&)’
evt->Set(String::New("which"), Number::New(event.jbutton.which));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:95:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("button"), Number::New(event.jbutton.button));
^
../src/helpers.cc:95:73: error: no matching function for call to ‘v8::Number::New(const Uint8&)’
evt->Set(String::New("button"), Number::New(event.jbutton.button));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:98:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("QUIT"));
^
../src/helpers.cc:98:39: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("QUIT"));
^
../src/helpers.cc:101:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("UNKNOWN"));
^
../src/helpers.cc:101:39: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("UNKNOWN"));
^
../src/helpers.cc:102:18: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("typeCode"), Number::New(event.type));
^
../src/helpers.cc:102:65: error: no matching function for call to ‘v8::Number::New(const Uint32&)’
evt->Set(String::New("typeCode"), Number::New(event.type));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc: In function ‘v8::Local<v8::Object> sdl::SDLDisplayModeToJavascriptObject(const SDL_DisplayMode&)’:
../src/helpers.cc:110:40: error: no matching function for call to ‘v8::Object::New()’
Local<Object> jsMode = Object::New();
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2930:24: note: candidate: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
static Local<Object> New(Isolate* isolate);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2930:24: note: candidate expects 1 argument, 0 provided
../src/helpers.cc:111:17: error: ‘New’ is not a member of ‘v8::String’
jsMode->Set(String::New("format"), Number::New(mode.format));
^
../src/helpers.cc:111:63: error: no matching function for call to ‘v8::Number::New(const Uint32&)’
jsMode->Set(String::New("format"), Number::New(mode.format));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:112:17: error: ‘New’ is not a member of ‘v8::String’
jsMode->Set(String::New("w"), Number::New(mode.w));
^
../src/helpers.cc:112:53: error: no matching function for call to ‘v8::Number::New(const int&)’
jsMode->Set(String::New("w"), Number::New(mode.w));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:113:17: error: ‘New’ is not a member of ‘v8::String’
jsMode->Set(String::New("h"), Number::New(mode.h));
^
../src/helpers.cc:113:53: error: no matching function for call to ‘v8::Number::New(const int&)’
jsMode->Set(String::New("h"), Number::New(mode.h));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:114:17: error: ‘New’ is not a member of ‘v8::String’
jsMode->Set(String::New("refreshRate"), Number::New(mode.refresh_rate));
^
../src/helpers.cc:114:74: error: no matching function for call to ‘v8::Number::New(const int&)’
jsMode->Set(String::New("refreshRate"), Number::New(mode.refresh_rate));
^
In file included from ../src/helpers.cc:1:0:
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^
/home/jacob/.node-gyp/5.3.0/include/node/v8.h:2483:24: note: candidate expects 2 arguments, 1 provided
libnode_sdl.target.mk:114: recipe for target 'Release/obj.target/libnode_sdl/src/helpers.o' failed
make: *** [Release/obj.target/libnode_sdl/src/helpers.o] Error 1
make: Leaving directory '/home/jacob/Code/node-sdl/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.2.0-19-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/jacob/Code/node-sdl
gyp ERR! node -v v5.3.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN EPACKAGEJSON [email protected] No license field.
npm ERR! Linux 4.2.0-19-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v5.3.0
npm ERR! npm v3.3.12
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sdl package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls sdl
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/jacob/Code/node-sdl/npm-debug.log
The text was updated successfully, but these errors were encountered:
I'm not clear if this is an environment setup issue or if
node-sdl
is incompatible with node 5.x, I receive the below errors when trying to build. Is it expected that this version of node is supported?The text was updated successfully, but these errors were encountered: