justadudewhohacks / justadudewhohacks/opencv4nodejs
error: conversion from ‘FF::ObjectWrapTemplate<HOGDescriptor, std::shared_ptr<cv::HOGDescriptor> >::ConstructorBase::__lambda0’ to non-scalar type ‘std::function<void(HOGDescriptor*)>’ requested
- Dominant language
- C++
- Stars
- 5.1k
- Forks
- 826
- PR merge metrics
- No merged PRs in 30d
Description
In file included from /var/w/fangzenan/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:10:0,
from ../cc/macros.h:1,
from ../cc/opencv_modules.h:1,
from ../cc/objdetect/objdetect.cc:1:
/var/w/fangzenan/opencv4nodejs/node_modules/native-node-utils/src/ObjectWrap.h: In constructor ‘FF::ObjectWrapTemplate >::ConstructorBase::ConstructorBase()’:
/var/w/fangzenan/opencv4nodejs/node_modules/native-node-utils/src/ObjectWrap.h:130:9: error: conversion from ‘FF::ObjectWrapTemplate >::ConstructorBase::__lambda0’ to non-scalar type ‘std::function’ requested
class ConstructorBase : public BindingBase, public ISyncWorker {
^
In file included from ../cc/objdetect/objdetect.cc:7:0:
../cc/objdetect/HOGDescriptor.h: In constructor ‘HOGDescriptor::Constructor::Constructor(Nan::NAN_METHOD_ARGS_TYPE)’:
../cc/objdetect/HOGDescriptor.h:86:47: note: synthesized method ‘FF::ObjectWrapTemplate >::ConstructorBase::ConstructorBase()’ first required here
Constructor(Nan::NAN_METHOD_ARGS_TYPE info) {
^
In file included from /var/w/fangzenan/opencv4nodejs/node_modules/native-node-utils/src/NativeNodeUtils.h:10:0,
from ../cc/macros.h:1,
from ../cc/opencv_modules.h:1,
from ../cc/objdetect/HOGDescriptor.cc:1:
/var/w/fangzenan/opencv4nodejs/node_modules/native-node-utils/src/ObjectWrap.h: In constructor ‘FF::ObjectWrapTemplate >::ConstructorBase::ConstructorBase()’:
/var/w/fangzenan/opencv4nodejs/node_modules/native-node-utils/src/ObjectWrap.h:130:9: error: conversion from ‘FF::ObjectWrapTemplate >::ConstructorBase::__lambda0’ to non-scalar type ‘std::function’ requested
class ConstructorBase : public BindingBase, public ISyncWorker {
^
In file included from ../cc/objdetect/HOGDescriptor.cc:5:0:
../cc/objdetect/HOGDescriptor.h: In constructor ‘HOGDescriptor::Constructor::Constructor(Nan::NAN_METHOD_ARGS_TYPE)’:
../cc/objdetect/HOGDescriptor.h:86:47: note: synthesized method ‘FF::ObjectWrapTemplate >::ConstructorBase::ConstructorBase()’ first required here
Constructor(Nan::NAN_METHOD_ARGS_TYPE info) {
^
make: *** [Release/obj.target/opencv4nodejs/cc/objdetect/objdetect.o] Error 1
make: *** Waiting for unfinished jobs....
Contributor guide
Research direction
The failure is reported in node_modules/native-node-utils/src/ObjectWrap.h:130 and is reached from cc/objdetect/objdetect.cc and cc/objdetect/HOGDescriptor.cc via cc/objdetect/HOGDescriptor.h. Reproduce the native build, inspect the reported constructor conversion, and confirm completion when the opencv4nodejs build succeeds without this compiler error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, nodejs
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100