Skip to content

Instantly share code, notes, and snippets.

@zcmgyu
Created January 25, 2022 08:30
Show Gist options
  • Save zcmgyu/a1590fdd9262097055386143e0f6d3c9 to your computer and use it in GitHub Desktop.
Save zcmgyu/a1590fdd9262097055386143e0f6d3c9 to your computer and use it in GitHub Desktop.
ERR! install electron-rebuild failed and return Error Command failed: electron-rebuild rebuild --jobs max
ERR! install - Searching dependency tree
ERR! install In file included from ../cc/opencv4nodejs.cc:1:
ERR! install In file included from /Users/hc499/.electron-gyp/11.5.0/include/node/node.h:67:
ERR! install In file included from /Users/hc499/.electron-gyp/11.5.0/include/node/v8.h:30:
ERR! install /Users/hc499/.electron-gyp/11.5.0/include/node/v8-internal.h:418:38: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?
ERR! install !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
ERR! install ~~~~~^~~~~~~~~~~
ERR! install remove_cv
ERR! install /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:710:50: note: 'remove_cv' declared here
ERR! install template <class _Tp> struct _LIBCPP_TEMPLATE_VIS remove_cv
ERR! install ^
ERR! install In file included from ../cc/opencv4nodejs.cc:1:
ERR! install In file included from /Users/hc499/.electron-gyp/11.5.0/include/node/node.h:67:
ERR! install In file included from /Users/hc499/.electron-gyp/11.5.0/include/node/v8.h:23:
ERR! install /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:2644:9: warning: destructor called on non-final 'FF::Arg<FF::ObjectWrapTemplate<Point2, cv::Point_<double>>::ArrayWithCastConverter<cv::Point_<float>>>' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
ERR! install __get_elem()->~_Tp();
ERR! install ^
ERR! install /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:2619:14: note: in instantiation of member function 'std::__shared_ptr_emplace<FF::Arg<FF::ObjectWrapTemplate<Point2, cv::Point_<double>>::ArrayWithCastConverter<cv::Point_<float>>>, std::allocator<FF::Arg<FF::ObjectWrapTemplate<Point2, cv::Point_<double>>::ArrayWithCastConverter<cv::Point_<float>>>>>::__on_zero_shared' requested here
ERR! install explicit __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
ERR! install ^
ERR! install /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:3385:55: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<FF::Arg<FF::ObjectWrapTemplate<Point2, cv::Point_<double>>::ArrayWithCastConverter<cv::Point_<float>>>, std::allocator<FF::Arg<FF::ObjectWrapTemplate<Point2, cv::Point_<double>>::ArrayWithCastConverter<cv::Point_<float>>>>>::__shared_ptr_emplace<>' requested here
ERR! install ::new ((void*)_VSTD::addressof(*__guard.__get())) _ControlBlock(__a, _VSTD::forward<_Args>(__args)...);
ERR! install ^
ERR! install /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:3394:19: note: in instantiation of function template specialization 'std::allocate_shared<FF::Arg<FF::ObjectWrapTemplate<Point2, cv::Point_<double>>::ArrayWithCastConverter<cv::Point_<float>>>, std::allocator<FF::Arg<FF::ObjectWrapTemplate<Point2, cv::Point_<double>>::ArrayWithCastConverter<cv::Point_<float>>>>, void>' requested here
ERR! install return _VSTD::allocate_shared<_Tp>(allocator<_Tp>(), _VSTD::forward<_Args>(__args)...);
ERR! install ^
ERR! install /Users/hc499/Documents/LongWorkSpace/Dockyard/research/workdir/opencv4nodejs/node_modules/native-node-utils/src/BindingBase.h:98:47: note: in instantiation of function template specialization 'std::make_shared<FF::Arg<FF::ObjectWrapTemplate<Point2, cv::Point_<double>>::ArrayWithCastConverter<cv::Point_<float>>>, void>' requested here
ERR! install std::shared_ptr<Arg<Converter>> val = std::make_shared<Arg<Converter>>();
ERR! install ^
ERR! install ../cc/calib3d/calib3dBindings.h:892:22: note: in instantiation of function template specialization 'FF::BindingBase::req<FF::ObjectWrapTemplate<Point2, cv::Point_<double>>::ArrayWithCastConverter<cv::Point_<float>>>' requested here
ERR! install auto srcPoints = req<Point2::ArrayWithCastConverter<cv::Point2f>>();
ERR! install ^
ERR! install /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:2644:24: note: qualify call to silence this warning
ERR! install __get_elem()->~_Tp();
ERR! install ^
ERR! install /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:2644:9: warning: destructor called on non-final 'FF::Arg<FF::AbstractConverter<FF::InstanceConverterImpl<Mat, cv::Mat>>>' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
ERR! install __get_elem()->~_Tp();
ERR! install ^
ERR! install /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:2619:14: note: in instantiation of member function 'std::__shared_ptr_emplace<FF::Arg<FF::AbstractConverter<FF::InstanceConverterImpl<Mat, cv::Mat>>>, std::allocator<FF::Arg<FF::AbstractConverter<FF::InstanceConverterImpl<Mat, cv::Mat>>>>>::__on_zero_shared' requested here
ERR! install explicit __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
ERR! install ^
ERR! install /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:3385:55: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<FF::Arg<FF::AbstractConverter<FF::InstanceConverterImpl<Mat, cv::Mat>>>, std::allocator<FF::Arg<FF::AbstractConverter<FF::InstanceConverterImpl<Mat, cv::Mat>>>>>::__shared_ptr_emplace<>' requested here
ERR! install ::new ((void*)_VSTD::addressof(*__guard.__get())) _ControlBlock(__a, _VSTD::forward<_Args>(__args)...);
ERR! install ^
ERR! install /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:3394:19: note: in instantiation of function template specialization 'std::allocate_shared<FF::Arg<FF::AbstractConverter<FF::InstanceConverterImpl<Mat, cv::Mat>>>, std::allocator<FF::Arg<FF::AbstractConverter<FF::InstanceConverterImpl<Mat, cv::Mat>>>>, void>' requested here
ERR! install return _VSTD::allocate_shared<_Tp>(allocator<_Tp>(), _VSTD::forward<_Args>(__args)...);
ERR! install ^
ERR! install /Users/hc499/Documents/LongWorkSpace/Dockyard/research/workdir/opencv4nodejs/node_modules/native-node-utils/src/BindingBase.h:98:47: note: in instantiation of function template specialization 'std::make_shared<FF::Arg<FF::AbstractConverter<FF::InstanceConverterImpl<Mat, cv::Mat>>>, void>' requested here
ERR! install std::shared_ptr<Arg<Converter>> val = std::make_shared<Arg<Converter>>();
ERR! install ^
ERR! install ../cc/calib3d/calib3dBindings.h:893:25: note: in instantiation of function template specialization 'FF::BindingBase::req<FF::AbstractConverter<FF::InstanceConverterImpl<Mat, cv::Mat>>>' requested here
ERR! install auto cameraMatrix = req<Mat::Converter>();
ERR! install ^
ERR! install /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:2644:24: note: qualify call to silence this warning
ERR! install __get_elem()->~_Tp();
ERR! install ^
ERR! install /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:2644:9: warning: destructor called on non-final 'FF::NamedValue<FF::ObjectWrapTemplate<Point2, cv::Point_<double>>::ArrayWithCastConverter<cv::Point_<float>>>' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
ERR! install __get_elem()->~_Tp();
ERR! install ^
ERR! install /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:2619:14: note: in instantiation of member function 'std::__shared_ptr_emplace<FF::NamedValue<FF::ObjectWrapTemplate<Point2, cv::Point_<double>>::ArrayWithCastConverter<cv::Point_<float>>>, std::allocator<FF::NamedValue<FF::ObjectWrapTemplate<Point2, cv::Point_<double>>::ArrayWithCastConverter<cv::Point_<float>>>>>::__on_zero_shared' requested here
ERR! install explicit __shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
ERR! install ^
ERR! install /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:3385:55: note: in instantiation of function template specialization 'std::__shared_ptr_emplace<FF::NamedValue<FF::ObjectWrapTemplate<Point2, cv::Point_<double>>::ArrayWithCastConverter<cv::Point_<float>>>, std::allocator<FF::NamedValue<FF::ObjectWrapTemplate<Point2, cv::Point_<double>>::ArrayWithCastConverter<cv::Point_<float>>>>>::__shared_ptr_emplace<std::string &>' requested here
ERR! install ::new ((void*)_VSTD::addressof(*__guard.__get())) _ControlBlock(__a, _VSTD::forward<_Args>(__args)...);
ERR! install ^
ERR! install /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:3394:19: note: in instantiation of function template specialization 'std::allocate_shared<FF::NamedValue<FF::ObjectWrapTemplate<Point2, cv::Point_<double>>::ArrayWithCastConverter<cv::Point_<float>>>, std::allocator<FF::NamedValue<FF::ObjectWrapTemplate<Point2, cv::Point_<double>>::ArrayWithCastConverter<cv::Point_<float>>>>, std::string &, void>' requested here
ERR! install return _VSTD::allocate_shared<_Tp>(allocator<_Tp>(), _VSTD::forward<_Args>(__args)...);
ERR! install ^
ERR! install /Users/hc499/Documents/LongWorkSpace/Dockyard/research/workdir/opencv4nodejs/node_modules/native-node-utils/src/BindingBase.h:112:54: note: in instantiation of function template specialization 'std::make_shared<FF::NamedValue<FF::ObjectWrapTemplate<Point2, cv::Point_<double>>::ArrayWithCastConverter<cv::Point_<float>>>, std::string &, void>' requested here
ERR! install std::shared_ptr<NamedValue<Converter>> val = std::make_shared<NamedValue<Converter>>(name);
ERR! install ^
ERR! install ../cc/calib3d/calib3dBindings.h:895:23: note: in instantiation of function template specialization 'FF::BindingBase::ret<FF::ObjectWrapTemplate<Point2, cv::Point_<double>>::ArrayWithCastConverter<cv::Point_<float>>>' requested here
ERR! install auto destPoints = ret<Point2::ArrayWithCastConverter<cv::Point2f>>("destPoints");
ERR! install ^
ERR! install /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:2644:24: note: qualify call to silence this warning
ERR! install __get_elem()->~_Tp();
ERR! install ^
ERR! install 3 warnings and 1 error generated.
ERR! install make: *** [Release/obj.target/opencv4nodejs/cc/opencv4nodejs.o] Error 1
ERR! install ✖ Rebuild Failed
ERR! install
ERR! install An unhandled error occurred inside electron-rebuild
ERR! install node-gyp failed to rebuild '/Users/hc499/Documents/LongWorkSpace/Dockyard/research/workdir/opencv4nodejs'.
ERR! install For more information, rerun with the DEBUG environment variable set to "electron-rebuild".
ERR! install
ERR! install Error: `make` failed with exit code: 2
ERR! install
ERR! install
ERR! install
ERR! install Error: node-gyp failed to rebuild '/Users/hc499/Documents/LongWorkSpace/Dockyard/research/workdir/opencv4nodejs'.
ERR! install For more information, rerun with the DEBUG environment variable set to "electron-rebuild".
ERR! install
ERR! install Error: `make` failed with exit code: 2
ERR! install
ERR! install
ERR! install at NodeGyp.rebuildModule (/Users/hc499/Documents/LongWorkSpace/Dockyard/research/workdir/opencv-electron/plain-js/node_modules/electron-rebuild/lib/src/module-type/node-gyp.js:117:19)
ERR! install at processTicksAndRejections (internal/process/task_queues.js:95:5)
ERR! install at async ModuleRebuilder.rebuildNodeGypModule (/Users/hc499/Documents/LongWorkSpace/Dockyard/research/workdir/opencv-electron/plain-js/node_modules/electron-rebuild/lib/src/module-rebuilder.js:94:9)
ERR! install at async ModuleRebuilder.rebuild (/Users/hc499/Documents/LongWorkSpace/Dockyard/research/workdir/opencv-electron/plain-js/node_modules/electron-rebuild/lib/src/module-rebuilder.js:124:14)
ERR! install at async Rebuilder.rebuildModuleAt (/Users/hc499/Documents/LongWorkSpace/Dockyard/research/workdir/opencv-electron/plain-js/node_modules/electron-rebuild/lib/src/rebuild.js:145:13)
ERR! install at async Rebuilder.rebuild (/Users/hc499/Documents/LongWorkSpace/Dockyard/research/workdir/opencv-electron/plain-js/node_modules/electron-rebuild/lib/src/rebuild.js:108:17)
ERR! install at async /Users/hc499/Documents/LongWorkSpace/Dockyard/research/workdir/opencv-electron/plain-js/node_modules/electron-rebuild/lib/src/cli.js:154:9
ERR! install return code: 255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment