Open nmussy opened 4 years ago
Same here with node v14.0.0. Errors for building https://github.com/parro-it/libui-node/issues/142:
../node_modules/nbind/include/nbind/v8/BindWrapper.h:139:8: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘MarkIndependent’
../node_modules/nbind/include/nbind/v8/BindWrapper.h:216:63: error: no matching function for call to ‘v8::Value::Uint32Value()’
../node_modules/nbind/include/nbind/v8/BindWrapper.h:217:19: error: ‘Handle’ is not a member of ‘v8’
../node_modules/nbind/include/nbind/v8/BindWrapper.h:217:38: error: expected primary-expression before ‘>’ token
../node_modules/nbind/include/nbind/v8/BindWrapper.h:217:41: error: ‘::Cast’ has not been declared
../node_modules/nbind/include/nbind/v8/BindingType.h:52:18: error: no matching function for call to ‘v8::Value::ToObject()’
../node_modules/nbind/include/nbind/v8/BindingType.h:96:18: error: no matching function for call to ‘v8::Value::ToObject()’
../node_modules/nbind/include/nbind/v8/BindingType.h:173:40: error: no matching function for call to ‘v8::Value::BooleanValue()’
../node_modules/nbind/include/nbind/v8/BindingType.h:173:40: error: no matching function for call to ‘v8::Value::NumberValue()’
../node_modules/nbind/include/nbind/v8/BindingType.h:173:40: error: no matching function for call to ‘v8::Value::Uint32Value()’
../node_modules/nbind/include/nbind/v8/BindingType.h:173:40: error: no matching function for call to ‘v8::Value::Int32Value()’
../node_modules/nbind/include/nbind/v8/External.h:77:9: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘MarkIndependent’
../node_modules/nbind/include/nbind/v8/External.h:112:80: error: no matching function for call to ‘v8::Value::ToObject()’
../node_modules/nbind/include/nbind/v8/BindingStd.h:128:37: error: no matching function for call to ‘v8::Value::ToString()’
../node_modules/nbind/include/nbind/v8/Buffer.h:33:43: error: no matching function for call to ‘v8::Value::ToObject()’
../node_modules/nbind/include/nbind/v8/Caller.h: In function ‘v8::Local<v8::Value> nbind::makeTypeError(NanArgs&, uint32_t, const void* const*, bool*)’:
../node_modules/nbind/include/nbind/v8/Caller.h:23:47: error: no matching function for call to ‘v8::Value::ToObject()’
../node_modules/nbind/include/nbind/v8/Caller.h:28:59: error: no matching function for call to ‘v8::Array::Set(uint32_t&, Nan::imp::FactoryBase<v8::Boolean>::return_t)’
../node_modules/nbind/include/nbind/v8/Caller.h:32:71: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Array>&)’
../node_modules/nbind/include/nbind/signature/SignatureParam.h:16:9: error: ‘Handle’ is not a member of ‘v8’
../node_modules/nbind/include/nbind/signature/SignatureParam.h:16:28: error: expected primary-expression before ‘>’ token
../node_modules/nbind/include/nbind/signature/SignatureParam.h:16:31: error: ‘::Cast’ has not been declared
../node_modules/nbind/include/nbind/v8/ValueObj.h:114:30: error: no matching function for call to ‘v8::Value::ToObject()’
../node_modules/nbind/include/nbind/v8/Int64.h:14:30: error: no matching function for call to ‘v8::Value::ToObject()’
../node_modules/nbind/include/nbind/v8/Int64.h:54:47: error: no matching function for call to ‘v8::Value::Uint32Value()’
../node_modules/nbind/include/nbind/v8/Int64.h:64:47: error: no matching function for call to ‘v8::Value::Uint32Value()’
../node_modules/nbind/include/nbind/v8/Int64.h:65:40: error: no matching function for call to ‘v8::Value::BooleanValue()’
../node_modules/nbind/include/nbind/v8/Int64.h:140:47: error: no matching function for call to ‘v8::Value::Uint32Value()’
../node_modules/nbind/include/nbind/v8/Int64.h:141:70: error: no matching function for call to ‘v8::Value::Uint32Value()’
../node_modules/nbind/include/nbind/v8/Int64.h:151:47: error: no matching function for call to ‘v8::Value::Uint32Value()’
../node_modules/nbind/include/nbind/v8/Int64.h:152:70: error: no matching function for call to ‘v8::Value::Uint32Value()’
../node_modules/nbind/include/nbind/v8/Int64.h:153:40: error: no matching function for call to ‘v8::Value::BooleanValue()’
../node_modules/nbind/include/nbind/v8/Int64.h:175:46: error: no matching function for call to ‘v8::Value::NumberValue()’
✘ jessica.mulein@Jessicas-MBP ~ npm install -g npm
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
+ npm@6.14.5
updated 1 package in 6.434s
jessica.mulein@Jessicas-MBP ~ npm install -g libui-node
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
> libui-node@0.2.1 install /usr/local/lib/node_modules/libui-node
> libui-download && autogypi && npm run build
Downloaded zip: /Users/jessica.mulein/.libui/libui-shared-osx-x64-alpha3.5-master-008.tar.gz
Libui binaries extracted to: /usr/local/lib/node_modules/libui-node
> libui-node@0.2.1 build /usr/local/lib/node_modules/libui-node
> node-gyp configure build
COPY Release/obj.target/nbind/geni/symbols.txt
CXX(target) Release/obj.target/nbind/node_modules/nbind/src/common.o
In file included from ../node_modules/nbind/src/common.cc:4:
In file included from ../node_modules/nbind/include/nbind/nbind.h:8:
In file included from ../node_modules/nbind/include/nbind/noconflict.h:8:
In file included from ../node_modules/nbind/include/nbind/BindDefiner.h:11:
In file included from ../node_modules/nbind/include/nbind/api.h:71:
../node_modules/nbind/include/nbind/v8/BindWrapper.h:139:8: error: no member named 'MarkIndependent' in 'Nan::Persistent<v8::Object,
v8::NonCopyablePersistentTraits<v8::Object> >'
ref->MarkIndependent();
~~~ ^
../node_modules/nbind/include/nbind/v8/BindWrapper.h:216:63: error: too few arguments to function call, single argument 'context' was not specified
auto flags = static_cast<TypeFlags>(nanArgs[1]->Uint32Value());
~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8.h:2863:3: note: 'Uint32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8config.h:422:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../node_modules/nbind/src/common.cc:4:
In file included from ../node_modules/nbind/include/nbind/nbind.h:8:
In file included from ../node_modules/nbind/include/nbind/noconflict.h:8:
In file included from ../node_modules/nbind/include/nbind/BindDefiner.h:11:
In file included from ../node_modules/nbind/include/nbind/api.h:71:
../node_modules/nbind/include/nbind/v8/BindWrapper.h:217:38: error: expected '(' for function-style cast or type construction
void *ptr = v8::Handle<v8::External>::Cast(nanArgs[0])->Value();
~~~~~~~~~~~~^
../node_modules/nbind/include/nbind/v8/BindWrapper.h:217:19: error: no member named 'Handle' in namespace 'v8'
void *ptr = v8::Handle<v8::External>::Cast(nanArgs[0])->Value();
~~~~^
../node_modules/nbind/include/nbind/v8/BindWrapper.h:217:41: error: no member named 'Cast' in the global namespace
void *ptr = v8::Handle<v8::External>::Cast(nanArgs[0])->Value();
~~^
../node_modules/nbind/include/nbind/v8/BindWrapper.h:217:19: error: 'handle_' is a private member of 'node::ObjectWrap'
void *ptr = v8::Handle<v8::External>::Cast(nanArgs[0])->Value();
^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/node_object_wrap.h:127:30: note: declared private here
v8::Persistent<v8::Object> handle_;
^
In file included from ../node_modules/nbind/src/common.cc:4:
In file included from ../node_modules/nbind/include/nbind/nbind.h:8:
In file included from ../node_modules/nbind/include/nbind/noconflict.h:8:
In file included from ../node_modules/nbind/include/nbind/BindDefiner.h:11:
In file included from ../node_modules/nbind/include/nbind/api.h:72:
../node_modules/nbind/include/nbind/v8/BindingType.h:52:18: error: too few arguments to function call, single argument 'context' was not specified
arg->ToObject(),
~~~~~~~~~~~~~ ^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8.h:2819:3: note: 'ToObject' declared here
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8config.h:422:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../node_modules/nbind/src/common.cc:4:
In file included from ../node_modules/nbind/include/nbind/nbind.h:8:
In file included from ../node_modules/nbind/include/nbind/noconflict.h:8:
In file included from ../node_modules/nbind/include/nbind/BindDefiner.h:11:
In file included from ../node_modules/nbind/include/nbind/api.h:72:
../node_modules/nbind/include/nbind/v8/BindingType.h:96:18: error: too few arguments to function call, single argument 'context' was not specified
arg->ToObject(),
~~~~~~~~~~~~~ ^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8.h:2819:3: note: 'ToObject' declared here
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8config.h:422:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../node_modules/nbind/src/common.cc:4:
In file included from ../node_modules/nbind/include/nbind/nbind.h:8:
In file included from ../node_modules/nbind/include/nbind/noconflict.h:8:
In file included from ../node_modules/nbind/include/nbind/BindDefiner.h:11:
In file included from ../node_modules/nbind/include/nbind/api.h:72:
../node_modules/nbind/include/nbind/v8/BindingType.h:187:1: error: too few arguments to function call, single argument 'isolate' was not specified
DEFINE_NATIVE_BINDING_TYPE(bool, IsBoolean, BooleanValue, v8::Boolean);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8.h:2855:3: note: 'BooleanValue' declared here
bool BooleanValue(Isolate* isolate) const;
^
In file included from ../node_modules/nbind/src/common.cc:4:
In file included from ../node_modules/nbind/include/nbind/nbind.h:8:
In file included from ../node_modules/nbind/include/nbind/noconflict.h:8:
In file included from ../node_modules/nbind/include/nbind/BindDefiner.h:11:
In file included from ../node_modules/nbind/include/nbind/api.h:72:
../node_modules/nbind/include/nbind/v8/BindingType.h:189:1: error: too few arguments to function call, single argument 'context' was not specified
DEFINE_NATIVE_BINDING_TYPE(double, IsNumber, NumberValue, v8::Number);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8.h:2858:3: note: 'NumberValue' declared here
V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8config.h:422:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../node_modules/nbind/src/common.cc:4:
In file included from ../node_modules/nbind/include/nbind/nbind.h:8:
In file included from ../node_modules/nbind/include/nbind/noconflict.h:8:
In file included from ../node_modules/nbind/include/nbind/BindDefiner.h:11:
In file included from ../node_modules/nbind/include/nbind/api.h:72:
../node_modules/nbind/include/nbind/v8/BindingType.h:190:1: error: too few arguments to function call, single argument 'context' was not specified
DEFINE_NATIVE_BINDING_TYPE(float, IsNumber, NumberValue, v8::Number);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8.h:2858:3: note: 'NumberValue' declared here
V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8config.h:422:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../node_modules/nbind/src/common.cc:4:
In file included from ../node_modules/nbind/include/nbind/nbind.h:8:
In file included from ../node_modules/nbind/include/nbind/noconflict.h:8:
In file included from ../node_modules/nbind/include/nbind/BindDefiner.h:11:
In file included from ../node_modules/nbind/include/nbind/api.h:72:
../node_modules/nbind/include/nbind/v8/BindingType.h:192:1: error: too few arguments to function call, single argument 'context' was not specified
DEFINE_NATIVE_BINDING_TYPE(unsigned int, IsNumber, Uint32Value, v8::Uint32);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8.h:2863:3: note: 'Uint32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8config.h:422:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../node_modules/nbind/src/common.cc:4:
In file included from ../node_modules/nbind/include/nbind/nbind.h:8:
In file included from ../node_modules/nbind/include/nbind/noconflict.h:8:
In file included from ../node_modules/nbind/include/nbind/BindDefiner.h:11:
In file included from ../node_modules/nbind/include/nbind/api.h:72:
../node_modules/nbind/include/nbind/v8/BindingType.h:193:1: error: too few arguments to function call, single argument 'context' was not specified
DEFINE_NATIVE_BINDING_TYPE(unsigned short, IsNumber, Uint32Value, v8::Uint32);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8.h:2863:3: note: 'Uint32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8config.h:422:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../node_modules/nbind/src/common.cc:4:
In file included from ../node_modules/nbind/include/nbind/nbind.h:8:
In file included from ../node_modules/nbind/include/nbind/noconflict.h:8:
In file included from ../node_modules/nbind/include/nbind/BindDefiner.h:11:
In file included from ../node_modules/nbind/include/nbind/api.h:72:
../node_modules/nbind/include/nbind/v8/BindingType.h:194:1: error: too few arguments to function call, single argument 'context' was not specified
DEFINE_NATIVE_BINDING_TYPE(unsigned char, IsNumber, Uint32Value, v8::Uint32);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8.h:2863:3: note: 'Uint32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8config.h:422:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../node_modules/nbind/src/common.cc:4:
In file included from ../node_modules/nbind/include/nbind/nbind.h:8:
In file included from ../node_modules/nbind/include/nbind/noconflict.h:8:
In file included from ../node_modules/nbind/include/nbind/BindDefiner.h:11:
In file included from ../node_modules/nbind/include/nbind/api.h:72:
../node_modules/nbind/include/nbind/v8/BindingType.h:196:1: error: too few arguments to function call, single argument 'context' was not specified
DEFINE_NATIVE_BINDING_TYPE(signed int, IsNumber, Int32Value, v8::Int32);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8.h:2866:3: note: 'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8config.h:422:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../node_modules/nbind/src/common.cc:4:
In file included from ../node_modules/nbind/include/nbind/nbind.h:8:
In file included from ../node_modules/nbind/include/nbind/noconflict.h:8:
In file included from ../node_modules/nbind/include/nbind/BindDefiner.h:11:
In file included from ../node_modules/nbind/include/nbind/api.h:72:
../node_modules/nbind/include/nbind/v8/BindingType.h:197:1: error: too few arguments to function call, single argument 'context' was not specified
DEFINE_NATIVE_BINDING_TYPE(signed short, IsNumber, Int32Value, v8::Int32);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8.h:2866:3: note: 'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8config.h:422:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../node_modules/nbind/src/common.cc:4:
In file included from ../node_modules/nbind/include/nbind/nbind.h:8:
In file included from ../node_modules/nbind/include/nbind/noconflict.h:8:
In file included from ../node_modules/nbind/include/nbind/BindDefiner.h:11:
In file included from ../node_modules/nbind/include/nbind/api.h:72:
../node_modules/nbind/include/nbind/v8/BindingType.h:198:1: error: too few arguments to function call, single argument 'context' was not specified
DEFINE_NATIVE_BINDING_TYPE(signed char, IsNumber, Int32Value, v8::Int32);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8.h:2866:3: note: 'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8config.h:422:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../node_modules/nbind/src/common.cc:4:
In file included from ../node_modules/nbind/include/nbind/nbind.h:8:
In file included from ../node_modules/nbind/include/nbind/noconflict.h:8:
In file included from ../node_modules/nbind/include/nbind/BindDefiner.h:11:
In file included from ../node_modules/nbind/include/nbind/api.h:72:
../node_modules/nbind/include/nbind/v8/BindingType.h:200:1: error: too few arguments to function call, single argument 'context' was not specified
DEFINE_NATIVE_BINDING_TYPE(char, IsNumber, Int32Value, v8::Int32);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8.h:2866:3: note: 'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^
/Users/jessica.mulein/Library/Caches/node-gyp/14.2.0/include/node/v8config.h:422:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../node_modules/nbind/src/common.cc:4:
In file included from ../node_modules/nbind/include/nbind/nbind.h:8:
In file included from ../node_modules/nbind/include/nbind/noconflict.h:8:
In file included from ../node_modules/nbind/include/nbind/BindDefiner.h:11:
In file included from ../node_modules/nbind/include/nbind/api.h:78:
../node_modules/nbind/include/nbind/v8/External.h:77:9: error: no member named 'MarkIndependent' in 'Nan::Persistent<v8::Object,
v8::NonCopyablePersistentTraits<v8::Object> >'
weak.MarkIndependent();
~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/nbind/node_modules/nbind/src/common.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/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 19.4.0
gyp ERR! command "/usr/local/Cellar/node/14.2.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /usr/local/lib/node_modules/libui-node
gyp ERR! node -v v14.2.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! libui-node@0.2.1 build: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the libui-node@0.2.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jessica.mulein/.npm/_logs/2020-05-18T11_14_08_563Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! libui-node@0.2.1 install: `libui-download && autogypi && npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the libui-node@0.2.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jessica.mulein/.npm/_logs/2020-05-18T11_14_08_883Z-debug.log
I was having issues with the npm published version. Building off the master branch works for Node v12:
But I get errors when attempting to build with Node v13: