justadudewhohacks/opencv4nodejs

Install Error node-gyp ?

Misoss opened this issue · 4 comments

  1. I installed CMake & Node-gyp already
  2. I tried to install opencv4nodejs via $ npm i opencv4nodejs /AND/ $ node ./install/install.js
  3. I got the below error.

Plateform

RaspberryPI

Raspberry Pi 2 Model B Rev 1.1
Raspbian GNU/Linux 10 (buster)
node v16.13.1
npm v8.3.0
cmake v3.16.3
node-gyp@8.4.1
opencv4nodejs@5.6.0

Error Message

ERR! gyp info it worked if it ends with ok
gyp info using node-gyp@8.4.1
gyp info using node@16.13.1 | linux | arm
gyp info find Python using Python version 3.7.3 found at "/usr/bin/python3"
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args   '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/opencv4nodejs/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/root/.cache/node-gyp/16.13.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/root/.cache/node-gyp/16.13.1',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/16.13.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/usr/local/lib/node_modules/opencv4nodejs',
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 spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build', '--jobs', 4 ]
In file included from /usr/include/c++/8/vector:69,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/core/HistAxes.h:4,
                 from ../cc/core/HistAxes.cc:5:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const double&}; _Tp = double; _Alloc = std::allocator<double>]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<double, std::allocator<double> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:64,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/core/HistAxes.h:4,
                 from ../cc/core/HistAxes.cc:5:
/usr/include/c++/8/bits/stl_vector.h: In static member function ‘static bool FF::AbstractConverter<ConverterImpl>::unwrapTo(FF::AbstractConverter<ConverterImpl>::Type*, v8::Local<v8::Value>) [with ConverterImpl = FF::ArrayConverterImpl<FF::DoubleConverterImpl, double>]’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~
../cc/core/Mat.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Mat::New(Nan::NAN_METHOD_ARGS_TYPE)’:
../cc/core/Mat.cc:185:36: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
       if (numCols != -1 && numCols != colArray->Length()) {
                            ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/lib/node_modules/opencv4nodejs/node_modules/opencv-build/opencv/build/include/opencv2/ml.hpp:1967,
                 from ../cc/machinelearning/machinelearning.h:3,
                 from ../cc/opencv4nodejs.cc:25:
/usr/local/lib/node_modules/opencv4nodejs/node_modules/opencv-build/opencv/build/include/opencv2/ml/ml.inl.hpp: In function ‘int cv::ml::simulatedAnnealingSolver(SimulatedAnnealingSolverSystem&, double, double, double, size_t, double*, cv::RNG&)’:
/usr/local/lib/node_modules/opencv4nodejs/node_modules/opencv-build/opencv/build/include/opencv2/ml/ml.inl.hpp:55: note: -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
     return exchange;
 
In file included from ../cc/opencv4nodejs.cc:1:
../cc/opencv4nodejs.cc: At global scope:
/root/.cache/node-gyp/16.13.1/include/node/node.h:821:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
       (node::addon_register_func) (regfunc),                          \
                                           ^
/root/.cache/node-gyp/16.13.1/include/node/node.h:855:3: note: in expansion of macro ‘NODE_MODULE_X’
   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
   ^~~~~~~~~~~~~
../cc/opencv4nodejs.cc:138: note: in expansion of macro ‘NODE_MODULE’
 NODE_MODULE(opencv4nodejs, init)
 
In file included from /usr/include/c++/8/vector:69,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/core/coreUtils.h:1,
                 from ../cc/core/Mat.h:1,
                 from ../cc/core/core.h:1,
                 from ../cc/core/core.cc:1:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const cv::Point_<double>&}; _Tp = cv::Point_<double>; _Alloc = std::allocator<cv::Point_<double> >]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<cv::Point_<double> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<cv::Point_<double>*, std::vector<cv::Point_<double> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<cv::Point_<double> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<cv::Point_<double>*, std::vector<cv::Point_<double> > >’} changed in GCC 7.1
In file included from /usr/include/c++/8/vector:64,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/core/coreUtils.h:1,
                 from ../cc/core/Mat.h:1,
                 from ../cc/core/core.h:1,
                 from ../cc/core/core.cc:1:
/usr/include/c++/8/bits/stl_vector.h: In static member function ‘static bool FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::unwrap(FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::Type*, v8::Local<v8::Value>) [with ElementConverterImpl = FF::InstanceConverterImpl<Point2, cv::Point_<double> >; ElementCastType = cv::Point_<double>]’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<cv::Point_<double>*, std::vector<cv::Point_<double> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:69,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/core/coreUtils.h:1,
                 from ../cc/core/Mat.h:1,
                 from ../cc/core/core.h:1,
                 from ../cc/core/core.cc:1:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const cv::Point3_<double>&}; _Tp = cv::Point3_<double>; _Alloc = std::allocator<cv::Point3_<double> >]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<cv::Point3_<double> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<cv::Point3_<double>*, std::vector<cv::Point3_<double> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:64,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/core/coreUtils.h:1,
                 from ../cc/core/Mat.h:1,
                 from ../cc/core/core.h:1,
                 from ../cc/core/core.cc:1:
/usr/include/c++/8/bits/stl_vector.h: In static member function ‘static bool FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::unwrap(FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::Type*, v8::Local<v8::Value>) [with ElementConverterImpl = FF::InstanceConverterImpl<Point3, cv::Point3_<double> >; ElementCastType = cv::Point3_<double>]’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<cv::Point3_<double>*, std::vector<cv::Point3_<double> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:69,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/core/coreUtils.h:1,
                 from ../cc/core/Mat.h:1,
                 from ../cc/core/core.h:1,
                 from ../cc/core/core.cc:1:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const cv::Vec<double, 2>&}; _Tp = cv::Vec<double, 2>; _Alloc = std::allocator<cv::Vec<double, 2> >]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<cv::Vec<double, 2> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<cv::Vec<double, 2>*, std::vector<cv::Vec<double, 2> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:64,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/core/coreUtils.h:1,
                 from ../cc/core/Mat.h:1,
                 from ../cc/core/core.h:1,
                 from ../cc/core/core.cc:1:
/usr/include/c++/8/bits/stl_vector.h: In static member function ‘static bool FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::unwrap(FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::Type*, v8::Local<v8::Value>) [with ElementConverterImpl = FF::InstanceConverterImpl<Vec2, cv::Vec<double, 2> >; ElementCastType = cv::Vec<double, 2>]’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<cv::Vec<double, 2>*, std::vector<cv::Vec<double, 2> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:69,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/core/coreUtils.h:1,
                 from ../cc/core/Mat.h:1,
                 from ../cc/core/core.h:1,
                 from ../cc/core/core.cc:1:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const cv::Vec<double, 3>&}; _Tp = cv::Vec<double, 3>; _Alloc = std::allocator<cv::Vec<double, 3> >]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<cv::Vec<double, 3> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<cv::Vec<double, 3>*, std::vector<cv::Vec<double, 3> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:64,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/core/coreUtils.h:1,
                 from ../cc/core/Mat.h:1,
                 from ../cc/core/core.h:1,
                 from ../cc/core/core.cc:1:
/usr/include/c++/8/bits/stl_vector.h: In static member function ‘static bool FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::unwrap(FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::Type*, v8::Local<v8::Value>) [with ElementConverterImpl = FF::InstanceConverterImpl<Vec3, cv::Vec<double, 3> >; ElementCastType = cv::Vec<double, 3>]’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<cv::Vec<double, 3>*, std::vector<cv::Vec<double, 3> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:69,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/core/coreUtils.h:1,
                 from ../cc/core/Mat.h:1,
                 from ../cc/core/core.h:1,
                 from ../cc/core/core.cc:1:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const cv::Vec<double, 4>&}; _Tp = cv::Vec<double, 4>; _Alloc = std::allocator<cv::Vec<double, 4> >]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<cv::Vec<double, 4> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<cv::Vec<double, 4>*, std::vector<cv::Vec<double, 4> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:64,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/core/coreUtils.h:1,
                 from ../cc/core/Mat.h:1,
                 from ../cc/core/core.h:1,
                 from ../cc/core/core.cc:1:
/usr/include/c++/8/bits/stl_vector.h: In static member function ‘static bool FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::unwrap(FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::Type*, v8::Local<v8::Value>) [with ElementConverterImpl = FF::InstanceConverterImpl<Vec4, cv::Vec<double, 4> >; ElementCastType = cv::Vec<double, 4>]’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<cv::Vec<double, 4>*, std::vector<cv::Vec<double, 4> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:69,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/core/coreUtils.h:1,
                 from ../cc/core/Mat.h:1,
                 from ../cc/core/core.h:1,
                 from ../cc/core/core.cc:1:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const cv::Vec<double, 6>&}; _Tp = cv::Vec<double, 6>; _Alloc = std::allocator<cv::Vec<double, 6> >]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<cv::Vec<double, 6> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<cv::Vec<double, 6>*, std::vector<cv::Vec<double, 6> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:64,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/core/coreUtils.h:1,
                 from ../cc/core/Mat.h:1,
                 from ../cc/core/core.h:1,
                 from ../cc/core/core.cc:1:
/usr/include/c++/8/bits/stl_vector.h: In static member function ‘static bool FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::unwrap(FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::Type*, v8::Local<v8::Value>) [with ElementConverterImpl = FF::InstanceConverterImpl<Vec6, cv::Vec<double, 6> >; ElementCastType = cv::Vec<double, 6>]’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<cv::Vec<double, 6>*, std::vector<cv::Vec<double, 6> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:69,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/imgproc/imgproc.cc:1:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const cv::Point_<double>&}; _Tp = cv::Point_<double>; _Alloc = std::allocator<cv::Point_<double> >]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<cv::Point_<double> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<cv::Point_<double>*, std::vector<cv::Point_<double> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<cv::Point_<double> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<cv::Point_<double>*, std::vector<cv::Point_<double> > >’} changed in GCC 7.1
In file included from /usr/include/c++/8/vector:64,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/imgproc/imgproc.cc:1:
/usr/include/c++/8/bits/stl_vector.h: In static member function ‘static bool FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::unwrap(FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::Type*, v8::Local<v8::Value>) [with ElementConverterImpl = FF::InstanceConverterImpl<Point2, cv::Point_<double> >; ElementCastType = cv::Point_<double>]’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<cv::Point_<double>*, std::vector<cv::Point_<double> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:69,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/imgproc/imgproc.cc:1:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const cv::Point3_<double>&}; _Tp = cv::Point3_<double>; _Alloc = std::allocator<cv::Point3_<double> >]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<cv::Point3_<double> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<cv::Point3_<double>*, std::vector<cv::Point3_<double> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:64,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/imgproc/imgproc.cc:1:
/usr/include/c++/8/bits/stl_vector.h: In static member function ‘static bool FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::unwrap(FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::Type*, v8::Local<v8::Value>) [with ElementConverterImpl = FF::InstanceConverterImpl<Point3, cv::Point3_<double> >; ElementCastType = cv::Point3_<double>]’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<cv::Point3_<double>*, std::vector<cv::Point3_<double> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:69,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/calib3d/calib3d.cc:1:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const cv::Point_<double>&}; _Tp = cv::Point_<double>; _Alloc = std::allocator<cv::Point_<double> >]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<cv::Point_<double> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<cv::Point_<double>*, std::vector<cv::Point_<double> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:64,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/calib3d/calib3d.cc:1:
/usr/include/c++/8/bits/stl_vector.h: In static member function ‘static bool FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::unwrap(FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::Type*, v8::Local<v8::Value>) [with ElementConverterImpl = FF::InstanceConverterImpl<Point2, cv::Point_<double> >; ElementCastType = cv::Point_<double>]’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<cv::Point_<double>*, std::vector<cv::Point_<double> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:69,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/calib3d/calib3d.cc:1:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const cv::Point3_<double>&}; _Tp = cv::Point3_<double>; _Alloc = std::allocator<cv::Point3_<double> >]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<cv::Point3_<double> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<cv::Point3_<double>*, std::vector<cv::Point3_<double> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:64,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/calib3d/calib3d.cc:1:
/usr/include/c++/8/bits/stl_vector.h: In static member function ‘static bool FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::unwrap(FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::Type*, v8::Local<v8::Value>) [with ElementConverterImpl = FF::InstanceConverterImpl<Point3, cv::Point3_<double> >; ElementCastType = cv::Point3_<double>]’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<cv::Point3_<double>*, std::vector<cv::Point3_<double> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:69,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/calib3d/calib3d.cc:1:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const double&}; _Tp = double; _Alloc = std::allocator<double>]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<double, std::allocator<double> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:64,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/calib3d/calib3d.cc:1:
/usr/include/c++/8/bits/stl_vector.h: In static member function ‘static bool FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::unwrap(FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::Type*, v8::Local<v8::Value>) [with ElementConverterImpl = FF::DoubleConverterImpl; ElementCastType = double]’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:69,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/calib3d/MatCalib3d.cc:1:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const double&}; _Tp = double; _Alloc = std::allocator<double>]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<double, std::allocator<double> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:64,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/calib3d/MatCalib3d.cc:1:
/usr/include/c++/8/bits/stl_vector.h: In static member function ‘static bool FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::unwrap(FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::Type*, v8::Local<v8::Value>) [with ElementConverterImpl = FF::DoubleConverterImpl; ElementCastType = double]’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:69,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/calib3d/MatCalib3d.cc:1:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const cv::Point_<double>&}; _Tp = cv::Point_<double>; _Alloc = std::allocator<cv::Point_<double> >]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<cv::Point_<double> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<cv::Point_<double>*, std::vector<cv::Point_<double> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:64,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/calib3d/MatCalib3d.cc:1:
/usr/include/c++/8/bits/stl_vector.h: In static member function ‘static bool FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::unwrap(FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::Type*, v8::Local<v8::Value>) [with ElementConverterImpl = FF::InstanceConverterImpl<Point2, cv::Point_<double> >; ElementCastType = cv::Point_<double>]’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<cv::Point_<double>*, std::vector<cv::Point_<double> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~


In file included from /usr/include/c++/8/vector:69,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/objdetect/DetectionROI.cc:1:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const double&}; _Tp = double; _Alloc = std::allocator<double>]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<double, std::allocator<double> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<double, std::allocator<double> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > >’} changed in GCC 7.1


In file included from /usr/include/c++/8/vector:64,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/objdetect/DetectionROI.cc:1:
/usr/include/c++/8/bits/stl_vector.h: In static member function ‘static Nan::NAN_SETTER_RETURN_TYPE DetectionROI::confidences_setter(v8::Local<v8::String>, v8::Local<v8::Value>, Nan::NAN_SETTER_ARGS_TYPE)’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~


In file included from /usr/include/c++/8/vector:69,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/objdetect/HOGDescriptor.cc:1:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const cv::DetectionROI&}; _Tp = cv::DetectionROI; _Alloc = std::allocator<cv::DetectionROI>]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<cv::DetectionROI>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<cv::DetectionROI*, std::vector<cv::DetectionROI> >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~

In file included from /usr/include/c++/8/vector:64,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/objdetect/HOGDescriptor.cc:1:
/usr/include/c++/8/bits/stl_vector.h: In static member function ‘static bool FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::unwrap(FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::Type*, v8::Local<v8::Value>) [with ElementConverterImpl = FF::InstanceConverterImpl<DetectionROI, cv::DetectionROI>; ElementCastType = cv::DetectionROI]’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<cv::DetectionROI*, std::vector<cv::DetectionROI> >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~

In file included from /usr/include/c++/8/vector:69,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/objdetect/HOGDescriptor.cc:1:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const double&}; _Tp = double; _Alloc = std::allocator<double>]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<double, std::allocator<double> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~

In file included from /usr/include/c++/8/vector:64,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/objdetect/HOGDescriptor.cc:1:
/usr/include/c++/8/bits/stl_vector.h: In static member function ‘static bool FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::unwrap(FF::ArrayConverterImpl<ElementConverterImpl, ElementCastType>::Type*, v8::Local<v8::Value>) [with ElementConverterImpl = FF::DoubleConverterImpl; ElementCastType = double]’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~

In file included from /usr/include/c++/8/vector:69,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/face/FacemarkLBFParams.cc:1:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const double&}; _Tp = double; _Alloc = std::allocator<double>]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<double, std::allocator<double> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~

In file included from /usr/include/c++/8/vector:64,
                 from /root/.cache/node-gyp/16.13.1/include/node/v8.h:27,
                 from /root/.cache/node-gyp/16.13.1/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:58,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/utils.h:3,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/AbstractConverter.h:1,
                 from /usr/local/lib/node_modules/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:1,
                 from ../cc/macros.h:1,
                 from ../cc/opencv_modules.h:1,
                 from ../cc/face/FacemarkLBFParams.cc:1:
/usr/include/c++/8/bits/stl_vector.h: In static member function ‘static Nan::NAN_SETTER_RETURN_TYPE FacemarkLBFParams::radius_m_setter(v8::Local<v8::String>, v8::Local<v8::Value>, Nan::NAN_SETTER_ARGS_TYPE)’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~
gyp info ok

just tried on a raspberry pi 400,
it takes around 1hour:

cmake version 3.18.4
node version v16.13.2
npm version 8.1.2

proof of build

Your example actually works for me too (about 3hrs of compilation on RPi2).
I don't understand why it works with pnpm install @u4/opencv4nodejs and not with npm i opencv4nodejs ?

I tried to integrate this into my project, the compile also works, but I have an error during the execution

pi@raspberrypi: $ node server.js 
/home/pi/Dev/test_project/node_modules/opencv4nodejs/lib/cv.js:47
    throw err
    ^

Error: Cannot find module '/home/pi/Dev/test_project/node_modules/opencv4nodejs/build/Release/opencv4nodejs'
Require stack:
- /home/pi/Dev/test_project/node_modules/opencv4nodejs/lib/cv.js
- /home/pi/Dev/test_project/node_modules/opencv4nodejs/lib/opencv4nodejs.js
- /home/pi/Dev/test_project/server.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/pi/Dev/test_project/node_modules/opencv4nodejs/lib/cv.js:40:8)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/pi/Dev/test_project/node_modules/opencv4nodejs/lib/cv.js',
    '/home/pi/Dev/test_project/node_modules/opencv4nodejs/lib/opencv4nodejs.js',
    '/home/pi/Dev/test_project/server.js'
  ]
}

I have some RPi2 in stock, but 3 hours... it's too much for me.

I use pnpm because it's faster.
and I use @u4/opencv4nodejs because it's my fork.

just replace opencv4nodejs by @u4/opencv4nodejs and it should work.

yes I understand that it is a bit long, lol

after the change i got an error
Error: No build found in /home/pi/Dev/test_project/node_modules/.pnpm/@u4+opencv-build@0.4.3/node_modules/@u4/opencv-build you should launch opencv-build-npm once
I don't know why I had to rebuild a second time, and it took much less time about 30min-45min;

pi@raspberrypi:~/Dev/test_project/node_modules/@u4/opencv4nodejs $ node install.js rebuild

now it's OK

Thanks for your help