russtheaerialist-retired-projects / node-spi

A NodeJS interface to the SPI bus on embedded linux machines
ISC License
95 stars 32 forks source link

Building on windows #28

Open claytongulick opened 7 years ago

claytongulick commented 7 years ago

Currently unable to build on windows, I get this gyp error:

..\src\spi_binding.cc(22): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory

I understand that the lib won't function properly on windows, but it looks like the fake_spi.h was added to support building on other platforms with a mock for testing/development.

Is there a way to make it build on win? Thanks!

claytongulick commented 7 years ago

Does this work? https://github.com/RussTheAerialist/node-spi/pull/29