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
> [email protected] install /home/spaceboyross/Droid.JS/node_modules/sdl
> node-gyp rebuild
make: Entering directory '/home/spaceboyross/Droid.JS/node_modules/sdl/build'
CXX(target) Release/obj.target/libnode_sdl/src/helpers.o
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:12: error: ‘ThrowException’ was not declared in this scope
return ThrowException(MakeSDLException(name));
^~~~~~~~~~~~~~
../src/helpers.cc:17:12: note: suggested alternative: ‘ThrowSDLException’
return ThrowException(MakeSDLException(name));
^~~~~~~~~~~~~~
ThrowSDLException
../src/helpers.cc: In function ‘v8::Local<v8::Value> sdl::MakeSDLException(const char*)’:
../src/helpers.cc:22:30: error: ‘New’ is not a member of ‘v8::String’
String::Concat(String::New(name), String::New(": ")),
^~~
../src/helpers.cc:22:49: error: ‘New’ is not a member of ‘v8::String’
String::Concat(String::New(name), String::New(": ")),
^~~
../src/helpers.cc:23:15: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:3541:24: note: candidate: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
static Local<Object> New(Isolate* isolate);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:3541:24: note: candidate expects 1 argument, 0 provided
../src/helpers.cc:49:26: 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:47: 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:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:51:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:52:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:53:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:9637:16: note: candidate: static v8::Local<v8::Boolean> v8::Boolean::New(v8::Isolate*, bool)
Local<Boolean> Boolean::New(Isolate* isolate, bool value) {
^~~~~~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:9637:16: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:56:26: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("MOUSEMOTION"));
^~~
../src/helpers.cc:56:47: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("MOUSEMOTION"));
^~~
../src/helpers.cc:57:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:58:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:59:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:60:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:61:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:62:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:66:26: 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:47: 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:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:68:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:69:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:70:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:73:26: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("JOYAXISMOTION"));
^~~
../src/helpers.cc:73:47: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("JOYAXISMOTION"));
^~~
../src/helpers.cc:74:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:75:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:76:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:79:26: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("JOYBALLMOTION"));
^~~
../src/helpers.cc:79:47: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("JOYBALLMOTION"));
^~~
../src/helpers.cc:80:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:81:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:82:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:83:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:86:26: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("JOYHATMOTION"));
^~~
../src/helpers.cc:86:47: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("JOYHATMOTION"));
^~~
../src/helpers.cc:87:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:88:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:89:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:93:26: 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:47: 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:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:95:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:98:26: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("QUIT"));
^~~
../src/helpers.cc:98:47: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("QUIT"));
^~~
../src/helpers.cc:101:26: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("UNKNOWN"));
^~~
../src/helpers.cc:101:47: error: ‘New’ is not a member of ‘v8::String’
evt->Set(String::New("type"), String::New("UNKNOWN"));
^~~
../src/helpers.cc:102:26: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966: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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:3541:24: note: candidate: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
static Local<Object> New(Isolate* isolate);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:3541:24: note: candidate expects 1 argument, 0 provided
../src/helpers.cc:111:25: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:112:25: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:113:25: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
../src/helpers.cc:114:25: 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/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
static Local<Number> New(Isolate* isolate, double value);
^~~
/home/spaceboyross/.node-gyp/8.12.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided
make: *** [libnode_sdl.target.mk:123: Release/obj.target/libnode_sdl/src/helpers.o] Error 1
make: Leaving directory '/home/spaceboyross/Droid.JS/node_modules/sdl/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/spaceboyross/.nvm/versions/node/v8.12.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.19.2-arch1-1-ARCH
gyp ERR! command "/home/spaceboyross/.nvm/versions/node/v8.12.0/bin/node" "/home/spaceboyross/.nvm/versions/node/v8.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/spaceboyross/Droid.JS/node_modules/sdl
gyp ERR! node -v v8.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/spaceboyross/.npm/_logs/2018-11-20T22_13_52_575Z-debug.log
The text was updated successfully, but these errors were encountered:
I am getting a similar issue upgrading an entirely different kind of package. It seems like node is generating CPP code that is targets an old node API but the header files are for the new API.
The text was updated successfully, but these errors were encountered: