peterbraden / node-opencv

OpenCV Bindings for node.js
MIT License
4.37k stars 857 forks source link

gyp failed to build with "no matching member function for call to 'NewInstance'" #643

Closed d3v-null closed 5 years ago

d3v-null commented 5 years ago

Hi there, I tried following the instructions and couldn't get it to build with yarn add opencv There is a very long build output with lots of deprecation warnings, but some errors that stood out were:

../src/Matrix.cc:500:53: error: no matching member function for call to 'NewInstance'
      Nan::New(Matrix::constructor)->GetFunction()->NewInstance();
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4108:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4105:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
                                           ^

../src/Matrix.cc:672:62: error: no matching member function for call to 'NewInstance'
  v8::Local < v8::Object > actualBuffer = bufferConstructor->NewInstance(3,
                                          ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
../src/Matrix.cc:708:61: error: no matching member function for call to 'NewInstance'
    v8::Local<v8::Object> actualBuffer = bufferConstructor->NewInstance(3, constructorArgs);
                                         ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
../src/Matrix.cc:1222:27: error: no matching member function for call to 'ToInt32'
  int flipCode = info[0]->ToInt32()->Value();
                 ~~~~~~~~~^~~~~~~
../src/Matrix.cc:1466:81: error: no matching member function for call to 'NewInstance'
  Local<Object> conts_to_return= Nan::New(Contour::constructor)->GetFunction()->NewInstance();
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
../src/Matrix.cc:1662:26: error: no matching member function for call to 'ToNumber'
  float angle = info[0]->ToNumber()->Value();
                ~~~~~~~~~^~~~~~~~
Full output:
yarn add opencv
yarn add v1.12.3
warning ../../../package.json: No license field
[1/4] 🔍  Resolving packages...
warning opencv > node-pre-gyp > hawk > hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.
warning opencv > node-pre-gyp > hawk > sntp > hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.
warning opencv > node-pre-gyp > hawk > cryptiles@2.0.5: This version is no longer maintained. Please upgrade to the latest version.
warning opencv > node-pre-gyp > hawk > boom@2.10.1: This version is no longer maintained. Please upgrade to the latest version.
warning opencv > node-pre-gyp > hawk > cryptiles > boom@2.10.1: This version is no longer maintained. Please upgrade to the latest version.
warning opencv > node-pre-gyp > hawk > boom > hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
error /Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build
Arguments:
Directory: /Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.6.39
node-pre-gyp info using node@11.5.0 | darwin | x64
node-pre-gyp info check checked for "/Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv/build/opencv/v6.0.0/Release/node-v67-darwin-x64/opencv.node" (not found)
node-pre-gyp http GET https://node-opencv.s3.amazonaws.com/opencv/v6.0.0/Release/node-v67-darwin-x64.tar.gz
node-pre-gyp http 403 https://node-opencv.s3.amazonaws.com/opencv/v6.0.0/Release/node-v67-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(403): https://node-opencv.s3.amazonaws.com/opencv/v6.0.0/Release/node-v67-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for opencv@6.0.0 and node@11.5.0 (node-v67 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball https://node-opencv.s3.amazonaws.com/opencv/v6.0.0/Release/node-v67-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(undefined): https://node-opencv.s3.amazonaws.com/opencv/v6.0.0/Release/node-v67-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for opencv@6.0.0 and node@11.5.0 (node-v67 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http Connection closed while downloading tarball file
gypgyp  info it worked if it ends with ok
info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@11.5.0 | darwin | x64
gyp info using node-gyp@3.8.0
gyp info using node@11.5.0 | darwin | x64
gyp info gypok
 info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@11.5.0 | darwin | x64
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@11.5.0 | darwin | x64
gyp info spawngyp /usr/bin/python
 info spawn /usr/bin/python
gyp info spawn args [ '/usr/local/Cellar/node/11.5.0/libexec/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp gypinfo  spawn argsinfo   'binding.gyp',
 gypspawn args  [ '/usr/local/Cellar/node/11.5.0/libexec/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
infogyp  spawn args   '-f',
infogyp  spawn argsinfo   'binding.gyp',
 spawn argsgyp   'make',
 gypinfo  info spawn argsspawn args   '-f',
   '-I',
gypgyp  infoinfo spawn args    '/Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv/build/config.gypi',
spawn argsgyp   'make',
 infogyp  spawn args   '-I',
infogyp  spawn argsinfo   '-I',
 gypspawn args   '/usr/local/Cellar/node/11.5.0/libexec/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
 gypinfo  infospawn args    '/Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv/build/config.gypi',
spawn argsgyp   '-I',
 gyp infoinfo  spawn argsspawn args   '-I',
   '/Users/derwent/.node-gyp/11.5.0/include/node/common.gypi',
gypgyp  infoinfo  spawn args   '-Dlibrary=shared_library',
spawn argsgyp    '/usr/local/Cellar/node/11.5.0/libexec/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
infogyp  infospawn args    '-Dvisibility=default',
spawn argsgyp    '-I',
info gypspawn args   '-Dnode_root_dir=/Users/derwent/.node-gyp/11.5.0',
 gyp infoinfo  spawn args   '-Dnode_gyp_dir=/usr/local/Cellar/node/11.5.0/libexec/lib/node_modules/npm/node_modules/node-gyp',
spawn argsgyp    '/Users/derwent/.node-gyp/11.5.0/include/node/common.gypi',
info spawn argsgyp   '-Dnode_lib_file=/Users/derwent/.node-gyp/11.5.0/<(target_arch)/node.lib',
gyp  infoinfo spawn args    '-Dmodule_root_dir=/Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv',
gypspawn args info   '-Dlibrary=shared_library',
 spawn argsgyp   '-Dnode_engine=v8',
gyp  infoinfo spawn args    '--depth=.',
gypspawn args info   '-Dvisibility=default',
 spawn argsgyp   '--no-parallel',
gyp  infoinfo spawn args    '--generator-output',
spawn argsgyp    '-Dnode_root_dir=/Users/derwent/.node-gyp/11.5.0',
info gypspawn args    'build',
infogyp spawn args    '-Dnode_gyp_dir=/usr/local/Cellar/node/11.5.0/libexec/lib/node_modules/npm/node_modules/node-gyp',
gypinfo  infospawn args    '-Goutput_dir=.' ]
spawn args   '-Dnode_lib_file=/Users/derwent/.node-gyp/11.5.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info ok
gyp info ok
gypgyp  info infoit worked if it ends with  ok
it worked if it ends with ok
gyp gypinfo  usinginfo node-gyp@3.8.0
 using node-gyp@3.8.0
gyp infogyp  usinginfo node@11.5.0 | darwin | x64
 using node@11.5.0 | darwin | x64
gypgyp info  infospawn  make
spawn make
gypgyp  infoinfo  spawn argsspawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
 [ 'BUILDTYPE=Release', '-C', 'build' ]
  CXX(target) Release/obj.target/opencv/src/init.o
  CXX(target) Release/obj.target/opencv/src/init.o
rm: ./Release/.deps/Release/obj.target/opencv/src/init.o.d.raw: No such file or directory
make: *** [Release/obj.target/opencv/src/init.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/Cellar/node/11.5.0/libexec/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/usr/local/Cellar/node/11.5.0/bin/node" "/usr/local/Cellar/node/11.5.0/libexec/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv/build/opencv/v6.0.0/Release/node-v67-darwin-x64/opencv.node" "--module_name=opencv" "--module_path=/Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv/build/opencv/v6.0.0/Release/node-v67-darwin-x64"
gyp ERR! cwd /Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv
gyp ERR! node -v v11.5.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
  CXX(target) Release/obj.target/opencv/src/Matrix.o
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp build --fallback-to-build --module=/Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv/build/opencv/v6.0.0/Release/node-v67-darwin-x64/opencv.node --module_name=opencv --module_path=/Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv/build/opencv/v6.0.0/Release/node-v67-darwin-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess. (/Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:978:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
node-pre-gyp ERR! System Darwin 18.2.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/11.5.0/bin/node" "/Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv
node-pre-gyp ERR! node -v v11.5.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp build --fallback-to-build --module=/Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv/build/opencv/v6.0.0/Release/node-v67-darwin-x64/opencv.node --module_name=opencv --module_path=/Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv/build/opencv/v6.0.0/Release/node-v67-darwin-x64' (1)
../src/Matrix.cc:130:31: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    mat = new Matrix(info[0]->IntegerValue(), info[1]->IntegerValue());
                              ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:130:56: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    mat = new Matrix(info[0]->IntegerValue(), info[1]->IntegerValue());
                                                       ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:133:31: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    mat = new Matrix(info[0]->IntegerValue(), info[1]->IntegerValue(),
                              ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:133:56: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    mat = new Matrix(info[0]->IntegerValue(), info[1]->IntegerValue(),
                                                       ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:134:18: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
        info[2]->IntegerValue());
                 ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:137:31: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    mat = new Matrix(info[0]->IntegerValue(), info[1]->IntegerValue(),
                              ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:137:56: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    mat = new Matrix(info[0]->IntegerValue(), info[1]->IntegerValue(),
                                                       ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:138:18: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
        info[2]->IntegerValue(), info[3]->ToObject());
                 ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:138:43: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
        info[2]->IntegerValue(), info[3]->ToObject());
                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:140:62: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Matrix *other = Nan::ObjectWrap::Unwrap(info[0]->ToObject());
                                                             ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:141:22: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    int x = info[1]->IntegerValue();
                     ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:142:22: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    int y = info[2]->IntegerValue();
                     ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:143:22: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    int w = info[3]->IntegerValue();
                     ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:144:22: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    int h = info[4]->IntegerValue();
                     ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:175:45: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    mat.setTo(cv::Scalar(scalarObj->Get(0)->IntegerValue(),
                                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:176:28: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
        scalarObj->Get(1)->IntegerValue(),
                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:177:28: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
        scalarObj->Get(2)->IntegerValue()));
                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:179:45: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    mat.setTo(cv::Scalar(scalarObj->Get(0)->IntegerValue(),
                                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:180:28: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
        scalarObj->Get(1)->IntegerValue()));
                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:182:45: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    mat.setTo(cv::Scalar(scalarObj->Get(0)->IntegerValue()));
                                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:221:20: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int y = info[0]->IntegerValue();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:222:20: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int x = info[1]->IntegerValue();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:227:42: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Local < Object > objColor = info[2]->ToObject();
                                         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:231:37: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
          (uchar) objColor->Get(0)->IntegerValue();
                                    ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:233:37: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
          (uchar) objColor->Get(1)->IntegerValue();
                                    ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:235:37: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
          (uchar) objColor->Get(2)->IntegerValue();
                                    ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:237:61: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
      self->mat.at(y, x) = (uchar) objColor->Get(0)->IntegerValue();
                                                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:239:40: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    info.GetReturnValue().Set(info[2]->ToObject());
                                       ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:263:20: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int i = info[0]->IntegerValue();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:264:20: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int j = info[1]->IntegerValue();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:273:20: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int i = info[0]->IntegerValue();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:274:20: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int j = info[1]->IntegerValue();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:275:25: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double val = info[2]->NumberValue();
                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:279:44: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    self->mat.at(i, j)[info[3]->NumberValue()] = val;
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:335:59: error: no matching member function for call to 'NewInstance'
  v8::Local actualBuffer = bufferConstructor->NewInstance(3, constructorArgs);
                                       ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4108:44: note: candidate function not viable: requires single argument 'context', but 2 arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4105:44: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
../src/Matrix.cc:357:29: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    double alpha = info[0]->NumberValue();
                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:358:25: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    int beta = info[1]->IntegerValue();
                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:379:27: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
      int diff = info[0]->IntegerValue();
                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:416:33: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
    type = getNormType(info[2]->Uint32Value());
                                ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:420:22: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    dtype = info[3]->IntegerValue();
                     ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:423:25: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double min = info[0]->NumberValue();
                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:424:25: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double max = info[1]->NumberValue();
                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:431:62: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Matrix *mmask = Nan::ObjectWrap::Unwrap(info[4]->ToObject());
                                                             ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:459:61: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    src2 = Nan::ObjectWrap::Unwrap(info[infoCount]->ToObject());
                                                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:465:45: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
    normType = getNormType(info[infoCount]->Uint32Value());
                                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:471:70: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Matrix *mmask = Nan::ObjectWrap::Unwrap(info[infoCount]->ToObject());
                                                                     ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:500:53: error: no matching member function for call to 'NewInstance'
      Nan::New(Matrix::constructor)->GetFunction()->NewInstance();
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4108:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4105:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
../src/Matrix.cc:514:22: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    int x = info[0]->IntegerValue();
                     ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:515:22: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    int y = info[1]->IntegerValue();
                     ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:516:26: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    int width = info[2]->IntegerValue();
                         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:517:27: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    int height = info[3]->IntegerValue();
                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:522:55: error: no matching member function for call to 'NewInstance'
        Nan::New(Matrix::constructor)->GetFunction()->NewInstance();
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4108:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4105:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
../src/Matrix.cc:536:20: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int y = info[0]->IntegerValue();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:551:20: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int y = info[0]->IntegerValue();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:569:20: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int x = info[0]->IntegerValue();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:583:20: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int x = info[0]->IntegerValue();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:640:67: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
          options->Get(Nan::New("ext").ToLocalChecked())->ToString());
                                                                  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToString() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:639:29: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
      v8::String::Utf8Value str(
                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:646:75: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
          options->Get(Nan::New("jpegQuality").ToLocalChecked())->IntegerValue();
                                                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:652:78: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
          options->Get(Nan::New("pngCompression").ToLocalChecked())->IntegerValue();
                                                                             ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:672:62: error: no matching member function for call to 'NewInstance'
  v8::Local < v8::Object > actualBuffer = bufferConstructor->NewInstance(3,
                                          ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4108:44: note: candidate function not viable: requires single argument 'context', but 2 arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4105:44: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
../src/Matrix.cc:708:61: error: no matching member function for call to 'NewInstance'
    v8::Local actualBuffer = bufferConstructor->NewInstance(3, constructorArgs);
                                         ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4108:44: note: candidate function not viable: requires single argument 'context', but 2 arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4105:44: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
../src/Matrix.cc:716:15: warning: 'Call' is deprecated [-Wdeprecated-declarations]
    callback->Call(2, argv);
              ^
../../nan/nan.h:1673:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local
  ^
../../nan/nan.h:103:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../src/Matrix.cc:745:67: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
          options->Get(Nan::New("ext").ToLocalChecked())->ToString());
                                                                  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToString() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:744:29: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
      v8::String::Utf8Value str(
                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2991:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:751:75: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
          options->Get(Nan::New("jpegQuality").ToLocalChecked())->IntegerValue();
                                                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:757:78: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
          options->Get(Nan::New("pngCompression").ToLocalChecked())->IntegerValue();
                                                                             ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:788:70: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
          options->Get(Nan::New("center").ToLocalChecked())->ToObject();
                                                                     ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:789:64: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
      x = center->Get(Nan::New("x").ToLocalChecked())->Uint32Value();
                                                               ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:790:64: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
      y = center->Get(Nan::New("y").ToLocalChecked())->Uint32Value();
                                                               ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:793:88: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
      Local < Object > axes = options->Get(Nan::New("axes").ToLocalChecked())->ToObject();
                                                                                       ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:794:70: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
      width = axes->Get(Nan::New("width").ToLocalChecked())->Uint32Value();
                                                                     ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:795:72: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
      height = axes->Get(Nan::New("height").ToLocalChecked())->Uint32Value();
                                                                       ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:798:81: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
      thickness = options->Get(Nan::New("thickness").ToLocalChecked())->Uint32Value();
                                                                                ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:801:73: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
      angle = options->Get(Nan::New("angle").ToLocalChecked())->NumberValue();
                                                                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:804:83: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
      startAngle = options->Get(Nan::New("startAngle").ToLocalChecked())->NumberValue();
                                                                                  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:807:79: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
      endAngle = options->Get(Nan::New("endAngle").ToLocalChecked())->NumberValue();
                                                                              ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:810:79: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
      lineType = options->Get(Nan::New("lineType").ToLocalChecked())->Uint32Value();
                                                                              ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:813:73: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
      shift = options->Get(Nan::New("shift").ToLocalChecked())->Uint32Value();
                                                                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:817:69: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
          options->Get(Nan::New("color").ToLocalChecked())->ToObject();
                                                                    ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:821:18: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
    x = info[0]->Uint32Value();
                 ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:822:18: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
    y = info[1]->Uint32Value();
                 ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:823:22: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
    width = info[2]->Uint32Value();
                     ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:824:23: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
    height = info[3]->Uint32Value();
                      ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:827:44: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
      Local < Object > objColor = info[4]->ToObject();
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:831:18: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    if (info[5]->IntegerValue())
                 ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:832:28: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
      thickness = info[5]->IntegerValue();
                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:844:36: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Local < Object > xy = info[0]->ToObject();
                                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:845:46: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Local < Object > width_height = info[1]->ToObject();
                                             ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:850:44: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
      Local < Object > objColor = info[2]->ToObject();
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:854:25: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    int x = xy->Get(0)->IntegerValue();
                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:855:25: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    int y = xy->Get(1)->IntegerValue();
                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:857:39: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    int width = width_height->Get(0)->IntegerValue();
                                      ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:858:40: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    int height = width_height->Get(1)->IntegerValue();
                                       ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:862:18: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    if (info[3]->IntegerValue())
                 ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:863:28: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
      thickness = info[3]->IntegerValue();
                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:876:37: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Local < Object > xy1 = info[0]->ToObject();
                                    ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:877:37: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Local < Object > xy2 = info[1]->ToObject();
                                    ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:882:44: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
      Local < Object > objColor = info[2]->ToObject();
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:886:27: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    int x1 = xy1->Get(0)->IntegerValue();
                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:887:27: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    int y1 = xy1->Get(1)->IntegerValue();
                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:889:27: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    int x2 = xy2->Get(0)->IntegerValue();
                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:890:27: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    int y2 = xy2->Get(1)->IntegerValue();
                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:894:18: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    if (info[3]->IntegerValue())
                 ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:895:28: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
      thickness = info[3]->IntegerValue();
                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:907:65: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Local < Array > polyArray = Local < Array > ::Cast(info[0]->ToObject());
                                                                ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:912:72: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
      Local singlePoly = Local ::Cast(polyArray->Get(i)->ToObject());
                                                                       ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:917:70: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
        Local point = Local ::Cast(singlePoly->Get(j)->ToObject());
                                                                     ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:918:43: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
        polygons[i][j].x = point->Get(0)->IntegerValue();
                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:919:43: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
        polygons[i][j].y = point->Get(1)->IntegerValue();
                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:925:41: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
      Local objColor = info[1]->ToObject();
                                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:986:15: warning: 'Call' is deprecated [-Wdeprecated-declarations]
    callback->Call(2, argv);
              ^
../../nan/nan.h:1673:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local
  ^
../../nan/nan.h:103:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../src/Matrix.cc:1018:20: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int w = info[0]->Uint32Value();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1019:20: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int h = info[1]->Uint32Value();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1020:45: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int type = (info.Length() > 2) ? info[2]->IntegerValue() : CV_64FC1;
                                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1022:70: error: no matching member function for call to 'NewInstance'
  Local im_h = Nan::New(Matrix::constructor)->GetFunction()->NewInstance();
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4108:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4105:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
../src/Matrix.cc:1033:20: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int w = info[0]->Uint32Value();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1034:20: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int h = info[1]->Uint32Value();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1035:45: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int type = (info.Length() > 2) ? info[2]->IntegerValue() : CV_64FC1;
                                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1037:70: error: no matching member function for call to 'NewInstance'
  Local im_h = Nan::New(Matrix::constructor)->GetFunction()->NewInstance();
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4108:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4105:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
../src/Matrix.cc:1048:20: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int w = info[0]->Uint32Value();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1049:20: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int h = info[1]->Uint32Value();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1050:45: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int type = (info.Length() > 2) ? info[2]->IntegerValue() : CV_64FC1;
                                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1052:70: error: no matching member function for call to 'NewInstance'
  Local im_h = Nan::New(Matrix::constructor)->GetFunction()->NewInstance();
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4108:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4105:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
../src/Matrix.cc:1103:36: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Local array = info[0]->ToObject();
                                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1110:25: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    ksize = cv::Size(x->NumberValue(), y->NumberValue());
                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1110:43: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    ksize = cv::Size(x->NumberValue(), y->NumberValue());
                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1126:22: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    ksize = info[0]->IntegerValue();
                     ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1154:20: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
      d = info[0]->IntegerValue();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1155:29: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
      sigmaColor = info[1]->NumberValue();
                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1156:29: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
      sigmaSpace = info[2]->NumberValue();
                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1158:31: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
        borderType = info[3]->IntegerValue();
                              ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1175:25: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int ddepth = info[0]->IntegerValue();
                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1176:25: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int xorder = info[1]->IntegerValue();
                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1177:25: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int yorder = info[2]->IntegerValue();
                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1180:43: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  if (info.Length() > 3) ksize = info[3]->IntegerValue();
                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1182:43: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  if (info.Length() > 4) scale = info[4]->NumberValue();
                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1184:43: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  if (info.Length() > 5) delta = info[5]->NumberValue();
                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1186:48: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  if (info.Length() > 6) borderType = info[6]->IntegerValue();
                                               ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1191:53: error: no matching member function for call to 'NewInstance'
      Nan::New(Matrix::constructor)->GetFunction()->NewInstance();
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4108:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4105:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
../src/Matrix.cc:1205:53: error: no matching member function for call to 'NewInstance'
      Nan::New(Matrix::constructor)->GetFunction()->NewInstance();
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4108:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4105:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
../src/Matrix.cc:1222:27: error: no matching member function for call to 'ToInt32'
  int flipCode = info[0]->ToInt32()->Value();
                 ~~~~~~~~~^~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2531:43: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const;
                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2544:30: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
                Local ToInt32(Isolate* isolate) const);
                             ^
../src/Matrix.cc:1224:79: error: no matching member function for call to 'NewInstance'
  Local img_to_return = Nan::New(Matrix::constructor)->GetFunction()->NewInstance();
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4108:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4105:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
../src/Matrix.cc:1241:79: error: no matching member function for call to 'NewInstance'
  Local img_to_return = Nan::New(Matrix::constructor)->GetFunction()->NewInstance();
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4108:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4105:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
../src/Matrix.cc:1244:20: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int x = info[0]->IntegerValue();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1245:20: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int y = info[1]->IntegerValue();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1246:20: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int w = info[2]->IntegerValue();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1247:20: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int h = info[3]->IntegerValue();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1258:23: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int line = info[0]->Uint32Value();
                      ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1273:59: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  Matrix *src1 = Nan::ObjectWrap::Unwrap(info[0]->ToObject());
                                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1274:59: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  Matrix *src2 = Nan::ObjectWrap::Unwrap(info[1]->ToObject());
                                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1284:59: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  Matrix *src1 = Nan::ObjectWrap::Unwrap(info[0]->ToObject());
                                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1285:59: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  Matrix *src2 = Nan::ObjectWrap::Unwrap(info[2]->ToObject());
                                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1287:26: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  float alpha = info[1]->NumberValue();
                         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1288:25: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  float beta = info[3]->NumberValue();
                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1305:59: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  Matrix *src1 = Nan::ObjectWrap::Unwrap(info[0]->ToObject());
                                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1306:59: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  Matrix *src2 = Nan::ObjectWrap::Unwrap(info[1]->ToObject());
                                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1309:61: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Matrix *mask = Nan::ObjectWrap::Unwrap(info[2]->ToObject());
                                                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1322:58: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  Matrix *dst = Nan::ObjectWrap::Unwrap(info[0]->ToObject());
                                                         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1324:61: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Matrix *mask = Nan::ObjectWrap::Unwrap(info[1]->ToObject());
                                                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1337:59: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  Matrix *src1 = Nan::ObjectWrap::Unwrap(info[0]->ToObject());
                                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1338:59: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  Matrix *src2 = Nan::ObjectWrap::Unwrap(info[1]->ToObject());
                                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1340:61: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Matrix *mask = Nan::ObjectWrap::Unwrap(info[2]->ToObject());
                                                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1410:28: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int lowThresh = info[0]->NumberValue();
                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1411:29: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int highThresh = info[1]->NumberValue();
                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1422:25: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int niters = info[0]->NumberValue();
                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1426:69: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Matrix *kernelMatrix = Nan::ObjectWrap::Unwrap(info[1]->ToObject());
                                                                    ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1439:25: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int niters = info[0]->NumberValue();
                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1443:69: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Matrix *kernelMatrix = Nan::ObjectWrap::Unwrap(info[1]->ToObject());
                                                                    ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1458:46: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    if (info[0]->IsNumber()) mode = info[0]->IntegerValue();
                                             ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1462:47: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    if (info[1]->IsNumber()) chain = info[1]->IntegerValue();
                                              ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1466:81: error: no matching member function for call to 'NewInstance'
  Local conts_to_return= Nan::New(Contour::constructor)->GetFunction()->NewInstance();
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4108:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4105:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
../src/Matrix.cc:1479:61: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  Contour *cont = Nan::ObjectWrap::Unwrap(info[0]->ToObject());
                                                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1480:22: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int pos = info[1]->NumberValue();
                     ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1484:39: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Local objColor = info[2]->ToObject();
                                      ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1488:52: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int thickness = info.Length() < 4 ? 1 : info[3]->NumberValue();
                                                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1498:61: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  Contour *cont = Nan::ObjectWrap::Unwrap(info[0]->ToObject());
                                                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1502:39: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Local objColor = info[1]->ToObject();
                                      ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1506:52: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int thickness = info.Length() < 3 ? 1 : info[2]->NumberValue();
                                                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1539:49: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double rho = info.Length() < 1 ? 1 : info[0]->NumberValue();
                                                ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1540:59: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double theta = info.Length() < 2 ? CV_PI/180 : info[1]->NumberValue();
                                                          ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1541:53: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int threshold = info.Length() < 3 ? 80 : info[2]->Uint32Value();
                                                    ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1542:60: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double minLineLength = info.Length() < 4 ? 30 : info[3]->NumberValue();
                                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1543:57: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double maxLineGap = info.Length() < 5 ? 10 : info[4]->NumberValue();
                                                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1571:48: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double dp = info.Length() < 1 ? 1 : info[0]->NumberValue();
                                               ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1572:53: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double minDist = info.Length() < 2 ? 1 : info[1]->NumberValue();
                                                    ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1573:63: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double higherThreshold = info.Length() < 3 ? 100 : info[2]->NumberValue();
                                                              ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1574:68: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double accumulatorThreshold = info.Length() < 4 ? 100 : info[3]->NumberValue();
                                                                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1575:52: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int minRadius = info.Length() < 5 ? 0 : info[4]->Uint32Value();
                                                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1576:52: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int maxRadius = info.Length() < 6 ? 0 : info[5]->Uint32Value();
                                                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1604:39: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  cv::Scalar color = cv::Scalar(valB->IntegerValue(), valG->IntegerValue(),
                                      ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1604:61: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  cv::Scalar color = cv::Scalar(valB->IntegerValue(), valG->IntegerValue(),
                                                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1605:13: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
      valR->IntegerValue());
            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1610:38: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  return cv::Point(objPoint->Get(0)->IntegerValue(),
                                     ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1611:25: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
      objPoint->Get(1)->IntegerValue());
                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1621:45: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  Local < Object > point = objRect->Get(0)->ToObject();
                                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1622:44: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  Local < Object > size = objRect->Get(1)->ToObject();
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1624:29: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  result.x = point->Get(0)->IntegerValue();
                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1625:29: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  result.y = point->Get(1)->IntegerValue();
                            ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1626:32: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  result.width = size->Get(0)->IntegerValue();
                               ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1627:33: warning: 'IntegerValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  result.height = size->Get(1)->IntegerValue();
                                ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2570:3: note: 'IntegerValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1635:20: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int x = info[0]->Uint32Value();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1636:20: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int y = info[1]->Uint32Value();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1644:78: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int interpolation = (info.Length() < 3) ? (int)cv::INTER_LINEAR : info[2]->Uint32Value();
                                                                             ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1662:26: error: no matching member function for call to 'ToNumber'
  float angle = info[0]->ToNumber()->Value();
                ~~~~~~~~~^~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2519:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal ToNumber(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2536:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
                Local ToNumber(Isolate* isolate) const);
                              ^
../src/Matrix.cc:1692:16: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
      info[1]->Uint32Value();
               ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1694:16: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
      info[2]->Uint32Value();
               ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1712:26: error: no matching member function for call to 'ToNumber'
  float angle = info[0]->ToNumber()->Value();
                ~~~~~~~~~^~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2519:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal ToNumber(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2536:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
                Local ToNumber(Isolate* isolate) const);
                              ^
../src/Matrix.cc:1713:20: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int x = info[1]->Uint32Value();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1714:20: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int y = info[2]->Uint32Value();
                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1715:58: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double scale = info[3]->IsUndefined() ? 1.0 : info[3]->NumberValue();
                                                         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1718:53: error: no matching member function for call to 'NewInstance'
      Nan::New(Matrix::constructor)->GetFunction()->NewInstance();
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4108:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4105:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
../src/Matrix.cc:1733:64: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  Matrix *rotMatrix = Nan::ObjectWrap::Unwrap(info[0]->ToObject());
                                                               ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1736:68: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int dstRows = info[1]->IsUndefined() ? self->mat.rows : info[1]->Uint32Value();
                                                                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1737:68: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int dstCols = info[2]->IsUndefined() ? self->mat.cols : info[2]->Uint32Value();
                                                                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1769:42: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Local args_lowerb = info[0]->ToObject();
                                         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1770:42: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    Local args_upperb = info[1]->ToObject();
                                         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local ToObject() const);
         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1788:23: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int dtop = info[0]->Uint32Value();
                      ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1789:26: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int dbottom = info[1]->Uint32Value();
                         ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1790:24: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int dleft = info[2]->Uint32Value();
                       ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1791:25: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
  int dright = info[3]->Uint32Value();
                        ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1818:31: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double threshold = info[0]->NumberValue();
                              ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1819:28: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double maxVal = info[1]->NumberValue();
                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1882:53: error: no matching member function for call to 'NewInstance'
      Nan::New(Matrix::constructor)->GetFunction()->NewInstance();
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4108:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4105:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
../src/Matrix.cc:1894:28: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double maxVal = info[0]->NumberValue();
                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1895:36: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double adaptiveMethod = info[1]->NumberValue();
                                   ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1896:35: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double thresholdType = info[2]->NumberValue();
                                  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1897:31: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double blockSize = info[3]->NumberValue();
                              ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1898:23: warning: 'NumberValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
  double C = info[4]->NumberValue();
                      ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:2569:3: note: 'NumberValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", double NumberValue() const);
  ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/Matrix.cc:1901:53: error: no matching member function for call to 'NewInstance'
      Nan::New(Matrix::constructor)->GetFunction()->NewInstance();
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4108:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
/Users/derwent/.node-gyp/11.5.0/include/node/v8.h:4105:44: note: candidate function not viable: requires 3 arguments, but 0 were provided
  V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(
                                           ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
211 warnings and 20 errors generated.
make: *** [Release/obj.target/opencv/src/Matrix.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/Cellar/node/11.5.0/libexec/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/usr/local/Cellar/node/11.5.0/bin/node" "/usr/local/Cellar/node/11.5.0/libexec/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv/build/opencv/v6.0.0/Release/node-v67-darwin-x64/opencv.node" "--module_name=opencv" "--module_path=/Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv/build/opencv/v6.0.0/Release/node-v67-darwin-x64"
gyp ERR! cwd /Users/derwent/Documents/GitHub/JS-Telecortex-2/node_modules/opencv
gyp ERR! node -v v11.5.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

            
        
    
            
d3v-null commented 5 years ago

Fixed this by using yarn add peterbraden/node-opencv instead,