fivdi / i2c-bus

I2C serial bus access with Node.js
MIT License
348 stars 57 forks source link

3.0.0 wont build #44

Closed farfromrefug closed 6 years ago

farfromrefug commented 6 years ago

I can't build 3.0.0 I get those errors:

In file included from ../src/i2c.cc:96:0:
../src/./readbyte.cc: In member function 'virtual void ReadByteWorker::HandleOKCallback()':
../src/./readbyte.cc:34:29: error: 'async_resource' was not declared in this scope
     callback->Call(2, argv, async_resource);

I don't see where async_resource is defined

fivdi commented 6 years ago

async_resource is defined in here in nan.h.

Can you post the command that was used to install i2c-bus please?

fivdi commented 6 years ago

In addition to posting the command used to install i2c-bus please post the complete output of that command.

farfromrefug commented 6 years ago

Thanks now i found why! I use yarn which did not update the nan version. I was still in 2.7.0 That will fix the build