Giter Site home page Giter Site logo

native-node-utils's People

Contributors

justadudewhohacks avatar ksachdeva avatar oyyd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

native-node-utils's Issues

can't compile with node12

When compiling [email protected] on a macOS Mojave Version 10.14.4 for Nodejs 12.1.0 I get a list of errors in native-node-utils

> [email protected] install /Users/user/Desktop/Privat/code/face/node_modules/face-recognition
> node-gyp rebuild

  CXX(target) Release/obj.target/facerec/cc/index.o
In file included from ../cc/index.cc:2:
In file included from ../cc/utils.h:1:
In file included from /Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/Converters.h:1:
/Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/TypeConverters.h:25:28: error:
      too few arguments to function call, single argument 'context' was not
      specified
                return jsVal->Int32Value();
                       ~~~~~~~~~~~~~~~~~ ^
/Users/user/.node-gyp/12.1.0/include/node/v8.h:2569:3: note:
      'Int32Value' declared here
  V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
  ^
/Users/user/.node-gyp/12.1.0/include/node/v8config.h:347:31: note:
      expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
In file included from ../cc/index.cc:2:
In file included from ../cc/utils.h:1:
In file included from /Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/Converters.h:1:
/Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/TypeConverters.h:43:29: error:
      too few arguments to function call, single argument 'context' was not
      specified
                return jsVal->Uint32Value();
                       ~~~~~~~~~~~~~~~~~~ ^
/Users/user/.node-gyp/12.1.0/include/node/v8.h:2567:3: note:
      'Uint32Value' declared here
  V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
  ^
/Users/user/.node-gyp/12.1.0/include/node/v8config.h:347:31: note:
      expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
In file included from ../cc/index.cc:2:
In file included from ../cc/utils.h:1:
In file included from /Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/Converters.h:1:
/Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/TypeConverters.h:60:36: error:
      too few arguments to function call, single argument 'context' was not
      specified
                return (float)jsVal->NumberValue();
                              ~~~~~~~~~~~~~~~~~~ ^
/Users/user/.node-gyp/12.1.0/include/node/v8.h:2564:3: note:
      'NumberValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
  ^
/Users/user/.node-gyp/12.1.0/include/node/v8config.h:347:31: note:
      expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
In file included from ../cc/index.cc:2:
In file included from ../cc/utils.h:1:
In file included from /Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/Converters.h:1:
/Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/TypeConverters.h:78:17: error:
      no matching member function for call to 'BooleanValue'
                return jsVal->BooleanValue();
                       ~~~~~~~^~~~~~~~~~~~
/Users/user/.node-gyp/12.1.0/include/node/v8.h:2559:8: note: candidate
      function not viable: requires single argument 'isolate', but no arguments
      were provided
  bool BooleanValue(Isolate* isolate) const;
       ^
/Users/user/.node-gyp/12.1.0/include/node/v8.h:2562:51: note: candidate
      function not viable: requires single argument 'context', but no arguments
      were provided
                V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
                                                  ^
In file included from ../cc/index.cc:2:
In file included from ../cc/utils.h:1:
In file included from /Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/Converters.h:1:
/Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/TypeConverters.h:95:29: error:
      too few arguments to function call, single argument 'context' was not
      specified
                return jsVal->NumberValue();
                       ~~~~~~~~~~~~~~~~~~ ^
/Users/user/.node-gyp/12.1.0/include/node/v8.h:2564:3: note:
      'NumberValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
  ^
/Users/user/.node-gyp/12.1.0/include/node/v8config.h:347:31: note:
      expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
In file included from ../cc/index.cc:2:
In file included from ../cc/utils.h:1:
In file included from /Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/Converters.h:1:
/Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/TypeConverters.h:113:36: error:
      too few arguments to function call, single argument 'context' was not
      specified
                return (float)jsVal->NumberValue();
                              ~~~~~~~~~~~~~~~~~~ ^
/Users/user/.node-gyp/12.1.0/include/node/v8.h:2564:3: note:
      'NumberValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
  ^
/Users/user/.node-gyp/12.1.0/include/node/v8config.h:347:31: note:
      expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
In file included from ../cc/index.cc:2:
In file included from ../cc/utils.h:1:
In file included from /Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/Converters.h:1:
/Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/TypeConverters.h:131:46: error:
      no matching member function for call to 'ToString'
                return std::string(*Nan::Utf8String(jsVal->ToString()));
                                                    ~~~~~~~^~~~~~~~
/Users/user/.node-gyp/12.1.0/include/node/v8.h:2528:44: note: candidate
      function not viable: requires single argument 'context', but no arguments
      were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                           ^
/Users/user/.node-gyp/12.1.0/include/node/v8.h:2544:35: note: candidate
      function not viable: requires single argument 'isolate', but no arguments
      were provided
                    Local<String> ToString(Isolate* isolate) const);
                                  ^
In file included from ../cc/index.cc:2:
In file included from ../cc/utils.h:1:
In file included from /Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/Converters.h:2:
In file included from /Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/ArrayConverters.h:2:
/Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/InstanceConverter.h:18:48: error:
      no matching member function for call to 'ToObject'
                return Nan::ObjectWrap::Unwrap<Clazz>(jsVal->ToObject())...
                                                      ~~~~~~~^~~~~~~~
/Users/user/.node-gyp/12.1.0/include/node/v8.h:2532:44: note: candidate
      function not viable: requires single argument 'context', but no arguments
      were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/user/.node-gyp/12.1.0/include/node/v8.h:2546:35: note: candidate
      function not viable: requires single argument 'isolate', but no arguments
      were provided
                    Local<Object> ToObject(Isolate* isolate) const);
                                  ^
In file included from ../cc/index.cc:2:
In file included from ../cc/utils.h:1:
In file included from /Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/Converters.h:2:
In file included from /Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/ArrayConverters.h:2:
/Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/InstanceConverter.h:22:48: error:
      no matching member function for call to 'ToObject'
                return Nan::ObjectWrap::Unwrap<Clazz>(jsVal->ToObject())...
                                                      ~~~~~~~^~~~~~~~
/Users/user/.node-gyp/12.1.0/include/node/v8.h:2532:44: note: candidate
      function not viable: requires single argument 'context', but no arguments
      were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/user/.node-gyp/12.1.0/include/node/v8.h:2546:35: note: candidate
      function not viable: requires single argument 'isolate', but no arguments
      were provided
                    Local<Object> ToObject(Isolate* isolate) const);
                                  ^
In file included from ../cc/index.cc:2:
In file included from ../cc/utils.h:1:
In file included from /Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/Converters.h:2:
/Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/ArrayConverters.h:21:41: warning:
      'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
      if (!Converter::assertType(jsArr->Get(i))) {
                                        ^
/Users/user/.node-gyp/12.1.0/include/node/v8.h:3416:3: note: 'Get' has
      been explicitly marked deprecated here
  V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(uint32_t index));
  ^
/Users/user/.node-gyp/12.1.0/include/node/v8config.h:322:29: note:
      expanded from macro 'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../cc/index.cc:2:
In file included from ../cc/utils.h:1:
In file included from /Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/Converters.h:2:
/Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/ArrayConverters.h:33:54: warning:
      'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
  ...CastType obj = (CastType)Converter::unwrap(jsArr->Get(i));
                                                       ^
/Users/user/.node-gyp/12.1.0/include/node/v8.h:3416:3: note: 'Get' has
      been explicitly marked deprecated here
  V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(uint32_t index));
  ^
/Users/user/.node-gyp/12.1.0/include/node/v8config.h:322:29: note:
      expanded from macro 'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../cc/index.cc:2:
In file included from ../cc/utils.h:1:
In file included from /Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/Converters.h:2:
/Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/ArrayConverters.h:76:72: warning:
      'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
  ...(ArrayConverterType<Converter, T, CastType>::unwrap(&vec, jsArr->Get(i))) {
                                                                      ^
/Users/user/.node-gyp/12.1.0/include/node/v8.h:3416:3: note: 'Get' has
      been explicitly marked deprecated here
  V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(uint32_t index));
  ^
/Users/user/.node-gyp/12.1.0/include/node/v8config.h:322:29: note:
      expanded from macro 'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../cc/index.cc:2:
In file included from ../cc/utils.h:1:
In file included from /Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/Converters.h:2:
/Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/ArrayConverters.h:73:21: warning:
      comparison of integers of different signs: 'int' and 'uint32_t'
      (aka 'unsigned int') [-Wsign-compare]
                for (int i = 0; i < jsArr->Length(); i++) {
                                ~ ^ ~~~~~~~~~~~~~~~
/Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/ArrayConverters.h:87:21: warning:
      comparison of integers of different signs: 'int' and 'uint32_t'
      (aka 'unsigned int') [-Wsign-compare]
                for (int i = 0; i < jsArr->Length(); i++) {
                                ~ ^ ~~~~~~~~~~~~~~~
In file included from ../cc/index.cc:2:
In file included from ../cc/utils.h:1:
In file included from /Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/Converters.h:2:
In file included from /Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/ArrayConverters.h:2:
/Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/InstanceConverter.h:26:92: error:
      too few arguments to function call, single argument 'context' was not
      specified
  ...jsObj = Nan::NewInstance(Nan::New(Clazz::constructor)->GetFunction()).To...
                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/AbstractConverter.h:36:25: note:
      in instantiation of member function 'InstanceConverterType<Rect,
      dlib::rectangle>::wrap' requested here
                return ConverterType::wrap(val);
                                      ^
/Users/user/Desktop/Privat/code/face/node_modules/native-node-utils/src/AbstractConverter.h:60:25: note:
      in instantiation of member function
      'SingleTypeConverter<InstanceConverterType<Rect, dlib::rectangle>,
      dlib::rectangle>::wrap' requested here
                return ConverterType::wrap(val);
                                      ^
../cc/MmodRect.h:16:46: note: in instantiation of member function
      'AbstractConverter<SingleTypeConverter<InstanceConverterType<Rect,
      dlib::rectangle>, dlib::rectangle>, dlib::rectangle>::wrap' requested here
                info.GetReturnValue().Set(Rect::Converter::wrap(Converte...
                                                           ^
/Users/user/.node-gyp/12.1.0/include/node/v8.h:5947:3: note:
      'GetFunction' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
  ^
/Users/user/.node-gyp/12.1.0/include/node/v8config.h:347:31: note:
      expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
5 warnings and 10 errors generated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.