Cockpit Simulator on Win10 - i2c.cc - error C1083: Cannot open include file: '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?

I see it over in C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcpackages\IntelliSense\iOS\OSS\musl-1.1.10\include\sys\ioctl.h

I tried to follow the Readme instructions:
…\openrov-cockpit\Readme.md
…\openrov-cockpit\docs\DEV-HOWTO.md

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

set NODE_ENV=production
set npm_config_shrinkwrap=true
node install

Went fine until the following error in the cmd window:

Building the projects in this solution one at a time. To enable parallel build, please add the “/m” switch.
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

Versions:

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

npm version
{ npm: ‘3.10.10’,
ares: ‘1.10.1-DEV’,
http_parser: ‘2.7.0’,
icu: ‘57.1’,
modules: ‘48’,
node: ‘6.9.4’,
openssl: ‘1.0.2j’,
uv: ‘1.9.1’,
v8: ‘5.1.281.89’,
zlib: ‘1.2.8’ }

I can send the npm-debug.log if needed.

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

Thanks