Open JacenBoy opened 3 years ago
I can reproduce the error. Seems that this project is not mainained anymore. I will try to find a a solution for this, although mi knowledge of C is null :)
Take a look here: https://github.com/apihlaja/node-irsdk/issues/86#issuecomment-627500181
Probably that solves your problem. It did with another previous version of node, which showed similar errors.
There is one error and one warning. To fix the error I changed IrSdkBindingHelpers.cpp:52
to Nan::Set(arr, i, convertTelemetryValueToObject(var, i));
. The warning is still there but the project compiled and it's working!
You still have to change the line 52 on IrSdkBindingHelpers.cpp in the node_modules/node-irsdk/src/cpp/
from
arr->Set(i, convertTelemetryValueToObject(var, i));
to
Nan::Set(arr, i, convertTelemetryValueToObject(var, i));
Then the rebuild should work without errors.
You can also take a look at PR #93 which I have created based on Martins findings
When trying to install on Node v14, the build process errors.
I tested on a fresh Windows installation, and the build process completes without issue on Node v8, but errors once upgraded to Node v14.