justadudewhohacks / justadudewhohacks/opencv4nodejs
macOS big sur electron-rebuild error
- Dominant language
- C++
- Stars
- 5.1k
- Forks
- 826
- PR merge metrics
- No merged PRs in 30d
Description
# Error Message
```
> electron-rebuild -w opencv4nodejs
⠏ Building module: opencv4nodejs, Completed: 0gyp info find Python using Python version 3.9.6 found at "/usr/local/opt/python@3.9/bin/python3.9"
⠋ Building module: opencv4nodejs, Completed: 0gyp info spawn /usr/local/opt/python@3.9/bin/python3.9
gyp info spawn args [
gyp info spawn args '/Users/bucai/ME/wwwroot/ai-electron/node_modules/electron-rebuild/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 '/Users/bucai/ME/wwwroot/ai-electron/node_modules/opencv4nodejs/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/bucai/ME/wwwroot/ai-electron/node_modules/electron-rebuild/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/bucai/.electron-gyp/12.0.6/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/bucai/.electron-gyp/12.0.6',
gyp info spawn args '-Dnode_gyp_dir=/Users/bucai/ME/wwwroot/ai-electron/node_modules/electron-rebuild/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/bucai/.electron-gyp/12.0.6/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/bucai/ME/wwwroot/ai-electron/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 ]
⠧ Building module: opencv4nodejs, Completed: 0gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/opencv4nodejs/cc/opencv4nodejs.o
⠹ Building module: opencv4nodejs, Completed: 0In file included from ../cc/opencv4nodejs.cc:1:
In file included from /Users/bucai/.electron-gyp/12.0.6/include/node/node.h:67:
In file included from /Users/bucai/.electron-gyp/12.0.6/include/node/v8.h:30:
/Users/bucai/.electron-gyp/12.0.6/include/node/v8-internal.h:452:38: error: no template named 'remove_cv_t' in namespace 'std';
did you mean 'remove_cv'?
!std::is_same>::value>::Perform(data);
~~~~~^~~~~~~~~~~
remove_cv
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:697:50: note:
'remove_cv' declared here
template struct _LIBCPP_TEMPLATE_VIS remove_cv
^
⠹ Building module: opencv4nodejs, Completed: 0In file included from ../cc/opencv4nodejs.cc:1:
In file included from /Users/bucai/.electron-gyp/12.0.6/include/node/node.h:67:
In file included from /Users/bucai/.electron-gyp/12.0.6/include/node/v8.h:23:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3607:5: warning:
destructor called on non-final 'FF::Arg
>::ArrayWithCastConverter > >' that has virtual functions but non-virtual destructor
[-Wdelete-non-abstract-non-virtual-dtor]
__data_.second().~_Tp();
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3566:5: note:
in instantiation of member function 'std::__1::__shared_ptr_emplace >::ArrayWithCastConverter > >,
std::__1::allocator >::ArrayWithCastConverter
> > > >::__on_zero_shared' requested here
__shared_ptr_emplace(_Alloc __a)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4405:26: note:
in instantiation of member function 'std::__1::__shared_ptr_emplace >::ArrayWithCastConverter > >,
std::__1::allocator >::ArrayWithCastConverter
> > > >::__shared_ptr_emplace' requested here
::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
^
/Users/bucai/ME/wwwroot/ai-electron/node_modules/native-node-utils/src/BindingBase.h:98:47: note: in instantiation of function
template specialization 'std::__1::make_shared
>::ArrayWithCastConverter > >>' requested here
std::shared_ptr> val = std::make_shared>();
^
../cc/calib3d/calib3dBindings.h:892:22: note: in instantiation of function template specialization
'FF::BindingBase::req >::ArrayWithCastConverter > >'
requested here
auto srcPoints = req>();
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3607:23: note:
qualify call to silence this warning
__data_.second().~_Tp();
^
⠸ Building module: opencv4nodejs, Completed: 0/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3607:5: warning:
destructor called on non-final 'FF::Arg > >' that has
virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
__data_.second().~_Tp();
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3566:5: note:
in instantiation of member function
'std::__1::__shared_ptr_emplace > >,
std::__1::allocator > > > >::__on_zero_shared'
requested here
__shared_ptr_emplace(_Alloc __a)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4405:26: note:
in instantiation of member function
'std::__1::__shared_ptr_emplace > >,
std::__1::allocator > > > >::__shared_ptr_emplace'
requested here
::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
^
/Users/bucai/ME/wwwroot/ai-electron/node_modules/native-node-utils/src/BindingBase.h:98:47: note: in instantiation of function
template specialization
'std::__1::make_shared > >>' requested here
std::shared_ptr> val = std::make_shared>();
^
../cc/calib3d/calib3dBindings.h:893:25: note: in instantiation of function template specialization
'FF::BindingBase::req > >' requested here
auto cameraMatrix = req();
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3607:23: note:
qualify call to silence this warning
__data_.second().~_Tp();
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3607:5: warning:
destructor called on non-final 'FF::NamedValue
>::ArrayWithCastConverter > >' that has virtual functions but non-virtual destructor
[-Wdelete-non-abstract-non-virtual-dtor]
__data_.second().~_Tp();
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3573:9: note:
in instantiation of member function 'std::__1::__shared_ptr_emplace >::ArrayWithCastConverter > >,
std::__1::allocator
>::ArrayWithCastConverter > > > >::__on_zero_shared' requested here
__shared_ptr_emplace(_Alloc __a, _Args&& ...__args)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4405:26: note:
in instantiation of function template specialization
'std::__1::__shared_ptr_emplace
>::ArrayWithCastConverter > >, std::__1::allocator >::ArrayWithCastConverter > > > >::__shared_ptr_emplace
&>' requested here
::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
^
/Users/bucai/ME/wwwroot/ai-electron/node_modules/native-node-utils/src/BindingBase.h:112:54: note: in instantiation of function
template specialization 'std::__1::make_shared
>::ArrayWithCastConverter > >, std::__1::basic_string &>' requested here
std::shared_ptr> val = std::make_shared>(name);
^
../cc/calib3d/calib3dBindings.h:895:23: note: in instantiation of function template specialization
'FF::BindingBase::ret >::ArrayWithCastConverter > >'
requested here
auto destPoints = ret>("destPoints");
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3607:23: note:
qualify call to silence this warning
__data_.second().~_Tp();
^
⠴ Building module: opencv4nodejs, Completed: 03 warnings and 1 error generated.
make: *** [Release/obj.target/opencv4nodejs/cc/opencv4nodejs.o] Error 1
✖ Rebuild Failed
An unhandled error occurred inside electron-rebuild
node-gyp failed to rebuild '/Users/bucai/ME/wwwroot/ai-electron/node_modules/opencv4nodejs'.
Error: `make` failed with exit code: 2
Error: node-gyp failed to rebuild '/Users/bucai/ME/wwwroot/ai-electron/node_modules/opencv4nodejs'.
Error: `make` failed with exit code: 2
at ModuleRebuilder.rebuildNodeGypModule (/Users/bucai/ME/wwwroot/ai-electron/node_modules/electron-rebuild/lib/src/module-rebuilder.js:193:19)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
```
# Manual Build - Environment Information
*OpenCV version :
*With OpenCV-contrib?* (extra modules): I don't know
*OS*: MacOSX 11.2.3 (20D91)
*g++ --version:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.27)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bi
Contributor guide
Assessment
This issue has not been assessed yet.