Win10 Cockpit Simulator build error - i2c.cc can't include sys/ioctl.h


#1

When doing the npm install of the cloned openrov-cockpit, it couldn’t find the sys\ioctl.h file included by i2c.cc.

How do I tell npm install, MSBuild.exe, where the included sys\ioctl.h file is?


Did:
git clone https://github.com/OpenROV/openrov-cockpit.git

set NODE_ENV=production
set npm_config_shrinkwrap=true
node install

It was using :
MSBuild.exe C:\Program Files (x86)\Microsoft Visual Studio 14.0>
Verion 14.0.24720.0

Went fine until the following error in the cmd window:
i2c.cc
win_delay_load_hook.cc
…\src\i2c.cc(7): fatal error C1083: Cannot open include file: ‘sys/ioctl.h’: No such file or directory […\openrov-cockpit\node_
modules\i2c\build\i2c.vcxproj]
gyp ERR! build error

Probably some newbie mistake, but I’d like to get familiar with the Cockpit before the Trident ships.

Thanks


Error compiling: i2c.cc fatal error!