Open MoffKalast opened 4 years ago
Error still in Ubuntu 20, with node v17.3.0 and npm v8.3.0.
Works for me on Ubuntu 20.04.3 LTS, node v16.13.2, npm 8.1.2.
Does not work on Ubuntu 20.04.4 LTS, node v14.18.2, npm 6.14.15. There's a lot of atrocious C++ junk in the error messages that I refuse to understand but it looks like this is the first error:
../src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/binding.cc:30:38: error: no matching function for call to ‘v8::Value::Int32Value()’
30 | ao->channels = info[1]->Int32Value(); /* channels */
and this is the second one:
../src/binding.cc: At global scope:
../src/binding.cc:104:17: error: variable or field ‘Initialize’ declared void
104 | void Initialize(Handle<Object> target) {
| ^~~~~~
../src/binding.cc:104:17: error: ‘Handle’ was not declared in this scope
../src/binding.cc:104:30: error: expected primary-expression before ‘>’ token
104 | void Initialize(Handle<Object> target) {
| ^
../src/binding.cc:104:32: error: ‘target’ was not declared in this scope
104 | void Initialize(Handle<Object> target) {
| ^~~~~~
Upgrading npm to 8.13.1 seems to have solved the problem, though. So perhaps this should be noted in the README
As you can see in the log below, node-gyp seems to fail at compiling the native part of the library. There seems to be a very excessive amount of warnings and errors that make me wonder if gyp somehow has an extremely old incompatible version of gcc or something.
This is running on Ubuntu 16.04 LTS.
Node: v12.13.1 ARMv7 Npm: v6.12.1